Extension:PhpTags/Hooks/PhpTagsBeforeCallRuntimeHook
PhpTagsBeforeCallRuntimeHook | |
---|---|
Available from version ??? (Gerrit change 227949) |
|
Define function: | public static function onPhpTagsBeforeCallRuntimeHook( string $hookType, ?string $objectName, string $methodName, mixed $values ) { ... }
|
Attach hook: | $wgHooks['PhpTagsBeforeCallRuntimeHook'][] = 'MyExtensionHooks::onPhpTagsBeforeCallRuntimeHook';
|
Called from: | File(s): PhpTags / includes/Hooks.php Function(s): checkPermission |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:PhpTagsBeforeCallRuntimeHook extensions.
Parameters
edit$hookType
: Astring
representing the type of hook, which must be one of the constants prefixed withPhpTags\Runtime::H_
:PhpTags\Runtime::H_GET_CONSTANT
PhpTags\Runtime::H_FUNCTION
PhpTags\Runtime::H_GET_STATIC_PROPERTY
PhpTags\Runtime::H_GET_OBJECT_CONSTANT
PhpTags\Runtime::H_SET_STATIC_PROPERTY
PhpTags\Runtime::H_SET_OBJECT_PROPERTY
PhpTags\Runtime::H_STATIC_METHOD
PhpTags\Runtime::H_OBJECT_METHOD
PhpTags\Runtime::H_NEW_OBJECT
$objectName
: Astring
representing the name of the object, ornull
if not relevant.$methodName
: Astring
representing the name of the method$values
: Amixed
value, can possibly benull