Updated Shipyard queue manager

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-06-19 20:12:32 +02:00
commit 2bc1fdee62
7 changed files with 455 additions and 260 deletions

View file

@ -9,6 +9,8 @@ class Legacies
public static $request = null;
public static $response = null;
protected static $_now = null;
public static function registerListener($event, $listener)
{
if (!isset(self::$_listeners[$event])) {
@ -72,4 +74,12 @@ class Legacies
{
return 'fr_FR';
}
public static function now()
{
if (self::$_now === null) {
self::$_now = time();
}
return self::$_now;
}
}