Lines Matching defs:param
43 * @param string $event name used by the event
44 * @param string $advise BEFORE|AFTER
45 * @param object $obj scope for the method be executed on, NULL for global function or callable
46 * @param string|callable $method event handler function
47 * @param mixed $param data passed to the event handler
48 * @param int $seq sequence number for ordering hook execution (ascending)
50 public function register_hook($event, $advise, $obj, $method, $param = null, $seq = 0)
54 $this->hooks[$event . '_' . $advise][$seq][] = [$obj, $method, $param];
64 * @param Event $event
65 * @param string $advise BEFORE or AFTER
75 [$obj, $method, $param] = $hook;
78 $method($event, $param);
80 $obj->$method($event, $param);
95 * @param string $name Name of the event
96 * @param string $advise BEFORE, AFTER or empty