Lines Matching defs:advise
44 * @param string $advise BEFORE|AFTER
50 public function register_hook($event, $advise, $obj, $method, $param = null, $seq = 0)
53 $doSort = !isset($this->hooks[$event . '_' . $advise][$seq]);
54 $this->hooks[$event . '_' . $advise][$seq][] = [$obj, $method, $param];
57 ksort($this->hooks[$event . '_' . $advise]);
65 * @param string $advise BEFORE or AFTER
67 public function process_event($event, $advise = '')
70 $evt_name = $event->name . ($advise ? '_' . $advise : '_BEFORE');
92 * When $advise is empty, both BEFORE and AFTER events will be considered,
96 * @param string $advise BEFORE, AFTER or empty
99 public function hasHandlerForEvent($name, $advise = '')
101 if ($advise) {
102 return isset($this->hooks[$name . '_' . $advise]);