Lines Matching +full:- +full:- +full:name +full:- +full:only
34 if ($plugin instanceof PluginInterface) $plugin->register($this);
43 * @param string $event name used by the event
53 $doSort = !isset($this->hooks[$event . '_' . $advise][$seq]);
54 $this->hooks[$event . '_' . $advise][$seq][] = [$obj, $method, $param];
57 ksort($this->hooks[$event . '_' . $advise]);
70 $evt_name = $event->name . ($advise ? '_' . $advise : '_BEFORE');
72 if (!empty($this->hooks[$evt_name])) {
73 foreach ($this->hooks[$evt_name] as $sequenced_hooks) {
80 $obj->$method($event, $param);
83 if (!$event->mayPropagate()) return;
93 * otherwise only the given advisory is checked
95 * @param string $name Name of the event
99 public function hasHandlerForEvent($name, $advise = '') argument
102 return isset($this->hooks[$name . '_' . $advise]);
105 return isset($this->hooks[$name . '_BEFORE']) || isset($this->hooks[$name . '_AFTER']);
117 return $this->hooks;