コード例 #1
0
ファイル: lmbActiveRecord.class.php プロジェクト: redic/limb
 /**
  *  Registers global listener of specified type
  *  @param integer call back type
  *  @param object call back object
  */
 static function registerGlobalCallback($type, $callback)
 {
     self::$_global_listeners[$type][] = lmbDelegate::objectify($callback);
 }
コード例 #2
0
 static function registerErrorHandler()
 {
     $delegate = func_get_args();
     set_error_handler(array(lmbDelegate::objectify($delegate), 'invoke'));
 }
コード例 #3
0
 /**
  * Add a delegate to be invoked
  *
  * @param mixed $delegate
  */
 function add($delegate)
 {
     $this->delegates[] = lmbDelegate::objectify($delegate);
 }