4
* Abstract Class for Callback Events.
6
* @author Time.ly Network Inc.
10
* @subpackage AI1EC.Event
12
abstract class Ai1ec_Event_Callback_Abstract {
15
* @var Ai1ec_Registry_Object The Object registry.
17
protected $_registry = null;
20
* @var string The registry method name defined in the class map.
22
protected $_registry_name = null;
25
* @var string The method invoked by the current callback.
27
protected $_method = null;
30
* Initiate callback objects.
32
* @param Ai1ec_Registry_Object $registry Registry object.
33
* @param string $path Registry method name defined in the class map.
34
* @param string $method Method invoked by the currect callback.
36
* @return void Constructor does not return.
38
public function __construct(
39
Ai1ec_Registry_Object $registry,
43
$this->_registry = $registry;
44
$this->_registry_name = $path;
45
$this->_method = $method;
49
* Invoke the method added to the current callback.
51
* @return mixed Value returned by the current method.
53
public function run() {
54
$argv = func_get_args();
55
return $this->_registry->dispatch(
56
$this->_registry_name,
b'\\ No newline at end of file'