Manual:$wgParser
From MediaWiki.org
| Global object: $wgParser | |
|---|---|
| Parser object
|
|
| Class: | Parser |
| Located in: | Parser.php |
Description [edit]
The Parser object is responsible for parsing the tags and wikitext contained in wiki pages. Parser extensions hooks are also registered in the Parser object.
Mode of Operation [edit]
$wgParser is called in the following file:
includes/Setup.php
with the following code:
$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );
StubObject is defined in the following file:
includes/StubObject.php
wgParserConf is defined here:
includes/DefaultSettings.php
with the code:
$wgParserConf = array('class' => 'Parser',);