Beispiel #1
0
 /**
  * Binds a callback functio to a System Event
  */
 public static function bindSysEvent($name, $callback)
 {
     if (!isset(self::$sysEvents)) {
         self::$sysEvents = array();
     }
     if (!isset(self::$sysEvents[$name])) {
         self::$sysEvents[$name] = array();
     }
     if (is_callable($callback)) {
         self::$sysEvents[$name][] = $callback;
     }
 }