<?php /** * Event dispatcher * * @package Requests\EventDispatcher */ namespace WpOrg\Requests; /** * Event dispatcher * * @package Requests\EventDispatcher */ interface HookManager { /** * 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 */ public function register($hook, $callback, $priority = 0); /** * Dispatch a message * * @param string $hook Hook name * @param array $parameters Parameters to pass to callbacks * @return boolean Successfulness */ public function dispatch($hook, $parameters = []); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Auth | Folder | 0555 |
|
|
Cookie | Folder | 0555 |
|
|
Exception | Folder | 0555 |
|
|
Proxy | Folder | 0555 |
|
|
Response | Folder | 0555 |
|
|
Transport | Folder | 0555 |
|
|
Utility | Folder | 0555 |
|
|
Auth.php | File | 860 B | 0644 |
|
Autoload.php | File | 9.12 KB | 0644 |
|
Capability.php | File | 652 B | 0644 |
|
Cookie.php | File | 15.03 KB | 0644 |
|
Exception.php | File | 1.09 KB | 0644 |
|
HookManager.php | File | 709 B | 0644 |
|
Hooks.php | File | 2.96 KB | 0644 |
|
IdnaEncoder.php | File | 12.14 KB | 0644 |
|
Ipv6.php | File | 5.51 KB | 0644 |
|
Iri.php | File | 28.93 KB | 0644 |
|
Port.php | File | 1.47 KB | 0644 |
|
Proxy.php | File | 867 B | 0644 |
|
Requests.php | File | 33.2 KB | 0644 |
|
Response.php | File | 4.18 KB | 0644 |
|
Session.php | File | 8.89 KB | 0644 |
|
Ssl.php | File | 5.3 KB | 0644 |
|
Transport.php | File | 1.51 KB | 0644 |
|