1 | <?php |
||
16 | class HookRegistry { |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $handlers = array(); |
||
22 | |||
23 | /** |
||
24 | * @since 1.0 |
||
25 | * |
||
26 | * @param array $configuration |
||
27 | */ |
||
28 | public function __construct( $configuration ) { |
||
31 | |||
32 | /** |
||
33 | * @since 1.0 |
||
34 | */ |
||
35 | public function register() { |
||
40 | |||
41 | /** |
||
42 | * @since 1.0 |
||
43 | */ |
||
44 | public function deregister() { |
||
56 | |||
57 | /** |
||
58 | * @since 1.0 |
||
59 | * |
||
60 | * @param string $name |
||
61 | * |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public function isRegistered( $name ) { |
||
67 | |||
68 | /** |
||
69 | * @since 1.0 |
||
70 | * |
||
71 | * @param string $name |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getHandlers( $name ) { |
||
78 | |||
79 | /** |
||
80 | * @since 1.0 |
||
81 | * |
||
82 | * @param array &$config |
||
83 | */ |
||
84 | public static function onBeforeConfigCompletion( &$config ) { |
||
96 | |||
97 | private function registerCallbackHandlers( $configuration ) { |
||
120 | |||
121 | } |
||
122 |