* Version: 1.0
* Date: 2012-09-18
* Author: Pádraic <padraic.brady.at.gmail.com>
* Status: Under Discussion
* First Published at: http://wiki.php.net/rfc/escaper
var timeoutId = 0; | |
var timeouts = {}; | |
var worker = new Worker("/static/timeout-worker.js"); | |
worker.addEventListener("message", function(evt) { | |
var data = evt.data, | |
id = data.id, | |
fn = timeouts[id].fn, | |
args = timeouts[id].args; |
<?php | |
namespace Common\Service; | |
use Doctrine\ORM\EntityManager; | |
use DoctrineModule\Service\AbstractFactory; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
class EntityManagerFactory extends AbstractFactory | |
{ |
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
tests | |
composer.lock | |
composer.phar | |
vendor |
/* The MIT License (MIT) | |
* Copyright (c) 2012 Carl Eriksson | |
* | |
* Permission is hereby granted, free of charge, to any person obtaininga | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction,including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the Software | |
* is furnished to do so, subject to the following conditions: | |
* |
<?php | |
include '../vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
// config | |
$config = new \Doctrine\ORM\Configuration(); |
* Version: 1.0
* Date: 2012-09-18
* Author: Pádraic <padraic.brady.at.gmail.com>
* Status: Under Discussion
* First Published at: http://wiki.php.net/rfc/escaper