Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Hooks Class Reference

@license MIT More...

+ Inheritance diagram for Kartographer\Hooks:
+ Collaboration diagram for Kartographer\Hooks:

Public Member Functions

 __construct (Config $config, LanguageNameUtils $languageCodeValidator, TitleFormatter $titleFormatter)
 
 onParserFirstCallInit ( $parser)
 ParserFirstCallInit hook handler.
 
 onParserAfterParse ( $parser, &$text, $stripState)
 ParserAfterParse hook handler.
 
 onParserTestGlobals (&$globals)
 

Static Public Member Functions

static onRegistration (array $extInfo, SettingsBuilder $settings)
 Sets $wgKartographerMapServer in integration test/CI setup This is needed by parserTests that define articles containing Kartographer content - parsing them when inserting them in the test DB requires $wgKartographerMapServer to be defined early.
 

Detailed Description

@license MIT

Member Function Documentation

◆ onParserAfterParse()

Kartographer\Hooks::onParserAfterParse ( $parser,
& $text,
$stripState )

ParserAfterParse hook handler.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserAfterParse
Parameters
Parser$parser
string&$textText being parsed
StripState$stripStateStripState used

◆ onParserFirstCallInit()

Kartographer\Hooks::onParserFirstCallInit ( $parser)

ParserFirstCallInit hook handler.

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

◆ onParserTestGlobals()

Kartographer\Hooks::onParserTestGlobals ( & $globals)
See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserTestGlobals
Parameters
array&$globalsArray with all the globals which should be set for parser tests. The arrays keys serve as the globals' names, its values are the globals' values.
Returns
bool|void True or no return value to continue or false to abort

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