MediaWiki  1.34.0
MediaWiki\Extensions\ParserFunctions\Hooks Class Reference

Static Public Member Functions

static onParserFirstCallInit (Parser $parser)
 Registers our parser functions with a fresh parser. More...
 
static onParserTestGlobals (array &$globals)
 Enables string functions during parser tests. More...
 
static onScribuntoExternalLibraries ( $engine, array &$extraLibraries)
 Registers ParserFunctions' lua function with Scribunto. More...
 

Detailed Description

Definition at line 7 of file Hooks.php.

Member Function Documentation

◆ onParserFirstCallInit()

static MediaWiki\Extensions\ParserFunctions\Hooks::onParserFirstCallInit ( Parser  $parser)
static

Registers our parser functions with a fresh parser.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserFirstCallInit
Parameters
Parser$parser

Definition at line 27 of file Hooks.php.

References SFH_OBJECT_ARGS.

◆ onParserTestGlobals()

static MediaWiki\Extensions\ParserFunctions\Hooks::onParserTestGlobals ( array &  $globals)
static

Enables string functions during parser tests.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserTestGlobals
Parameters
array&$globals

Definition at line 16 of file Hooks.php.

◆ onScribuntoExternalLibraries()

static MediaWiki\Extensions\ParserFunctions\Hooks::onScribuntoExternalLibraries (   $engine,
array &  $extraLibraries 
)
static

Registers ParserFunctions' lua function with Scribunto.

See also
https://www.mediawiki.org/wiki/Extension:Scribunto/ScribuntoExternalLibraries
Parameters
string$engine
string[]&$extraLibraries

Definition at line 66 of file Hooks.php.


The documentation for this class was generated from the following file: