/** * Class constructor requires the class and method of the hook. * * @param $class * @param $method * @param array|null $args */ public function __construct($class, $method, array $args = null) { $this->_name = get_parent_class($class); $this->_class = $class; $this->_method = $method; parent::__construct($args); }
/** * The Enlight_Event_EventArgs class constructor expects the name of the event. * * @param $name * @param array|null $args */ public function __construct(array $args = array()) { parent::__construct($args); }
/** * The Enlight_Event_EventArgs class constructor expects the name of the event. * * @param $name * @param array|null $args */ public function __construct($name, array $args = null) { $this->_name = $name; parent::__construct($args); }