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.

ParametersEdit

  • $hookType: A string representing the type of hook, which must be one of the constants prefixed with PhpTags\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: A string representing the name of the object, or null if not relevant.
  • $methodName: A string representing the name of the method
  • $values: A mixed value, can possibly be null