MediaWiki  master
StaticHookRegistry.php
Go to the documentation of this file.
1 <?php
2 
4 
9 class StaticHookRegistry implements HookRegistry {
11  private $globalHooks;
12 
14  private $extensionHooks;
15 
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() {
50  }
51 }
MediaWiki\HookContainer\StaticHookRegistry\$extensionHooks
array $extensionHooks
Definition: StaticHookRegistry.php:14
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\HookRegistry
Definition: HookRegistry.php:5
MediaWiki\HookContainer\StaticHookRegistry\$deprecatedHooks
DeprecatedHooks $deprecatedHooks
Definition: StaticHookRegistry.php:17
MediaWiki\HookContainer\DeprecatedHooks
Definition: DeprecatedHooks.php:27
MediaWiki\HookContainer\StaticHookRegistry\getDeprecatedHooks
getDeprecatedHooks()
Definition: StaticHookRegistry.php:48
MediaWiki\HookContainer\StaticHookRegistry\__construct
__construct(array $globalHooks=[], array $extensionHooks=[], array $deprecatedHooksArray=[])
Definition: StaticHookRegistry.php:27
MediaWiki\HookContainer\StaticHookRegistry\getExtensionHooks
getExtensionHooks()
Get the current contents of the Hooks attribute in the ExtensionRegistry.
Definition: StaticHookRegistry.php:41
MediaWiki\HookContainer
Definition: DeprecatedHooks.php:23
MediaWiki\HookContainer\StaticHookRegistry\$globalHooks
array $globalHooks
Definition: StaticHookRegistry.php:11
MediaWiki\HookContainer\StaticHookRegistry\getGlobalHooks
getGlobalHooks()
Get the current contents of the $wgHooks variable or a mocked substitute.
Definition: StaticHookRegistry.php:37