MediaWiki
REL1_39
StaticHookRegistry.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\HookContainer
;
4
9
class
StaticHookRegistry
implements
HookRegistry
{
11
private
$globalHooks;
12
14
private
$extensionHooks;
15
17
private
$deprecatedHooks;
18
27
public
function
__construct
(
28
array $globalHooks = [],
29
array $extensionHooks = [],
30
array $deprecatedHooksArray = []
31
) {
32
$this->globalHooks = $globalHooks;
33
$this->extensionHooks = $extensionHooks;
34
$this->deprecatedHooks =
new
DeprecatedHooks
( $deprecatedHooksArray );
35
}
36
37
public
function
getGlobalHooks
() {
38
return
$this->globalHooks;
39
}
40
41
public
function
getExtensionHooks
() {
42
return
$this->extensionHooks;
43
}
44
48
public
function
getDeprecatedHooks
() {
49
return
$this->deprecatedHooks;
50
}
51
}
MediaWiki\HookContainer\DeprecatedHooks
Definition
DeprecatedHooks.php:27
MediaWiki\HookContainer\StaticHookRegistry
This is a simple immutable HookRegistry which can be used to set up a local HookContainer in tests an...
Definition
StaticHookRegistry.php:9
MediaWiki\HookContainer\StaticHookRegistry\getDeprecatedHooks
getDeprecatedHooks()
Definition
StaticHookRegistry.php:48
MediaWiki\HookContainer\StaticHookRegistry\getGlobalHooks
getGlobalHooks()
Get the current contents of the $wgHooks variable or a mocked substitute.
Definition
StaticHookRegistry.php:37
MediaWiki\HookContainer\StaticHookRegistry\getExtensionHooks
getExtensionHooks()
Get the current contents of the Hooks attribute in the ExtensionRegistry.
Definition
StaticHookRegistry.php:41
MediaWiki\HookContainer\StaticHookRegistry\__construct
__construct(array $globalHooks=[], array $extensionHooks=[], array $deprecatedHooksArray=[])
Definition
StaticHookRegistry.php:27
MediaWiki\HookContainer\HookRegistry
Definition
HookRegistry.php:5
MediaWiki\HookContainer
Definition
DeprecatedHooks.php:23
includes
HookContainer
StaticHookRegistry.php
Generated on Mon Dec 23 2024 06:23:24 for MediaWiki by
1.10.0