Manual:$wgParser

From MediaWiki.org
Jump to: navigation, search


Description[edit | edit source]

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 | edit source]

$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',);
Language: English  • português do Brasil