| [ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
Event dispatcher
| File Size: | 33 lines (1 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Interface: HookManager - X-Ref
Event dispatcher| register($hook, $callback, $priority = 0) X-Ref |
| Register a callback for a hook param: string $hook Hook name param: callable $callback Function/method to call on event param: int $priority Priority number. <0 is executed earlier, >0 is executed later |
| dispatch($hook, $parameters = []) X-Ref |
| Dispatch a message param: string $hook Hook name param: array $parameters Parameters to pass to callbacks return: boolean Successfulness |
| Generated: Wed Nov 5 05:10:36 2025 | Cross-referenced by PHPXref 0.7.1 |