TYPO3 CMS  TYPO3_6-2
EventCallback.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $object;
26 
30  protected $method;
31 
35  protected $targetArguments;
36 
44  public function __construct($object, $method, array $targetArguments = array()) {
45  $this->object = $object;
46  $this->method = $method;
47  $this->targetArguments = $targetArguments;
48  $this->targetArguments['target'] = $object;
49  }
50 
59  public function execute(array $callerArguments = array(), $caller, $eventName) {
60  return call_user_func_array(array($this->object, $this->method), array($callerArguments, $this->targetArguments, $caller, $eventName));
61  }
62 
63 }
__construct($object, $method, array $targetArguments=array())
execute(array $callerArguments=array(), $caller, $eventName)