|
MediaWiki master
|
Inherited by MediaWiki\Parser\Preprocessor_Hash.

Public Member Functions | |
| __construct (Parser $parser, ?WANObjectCache $wanCache=null, array $options=[]) | |
| newCustomFrame ( $args) | |
| Create a new custom frame for programmatic use of parameter replacement. | |
| newFrame () | |
| Create a new top-level frame for expansion of a page. | |
| newPartNodeArray ( $values) | |
| Create a new custom node for programmatic use of parameter replacement. | |
| preprocessToObj ( $text, $flags=0) | |
| Get the document object model for the given wikitext. | |
| resetParser (?Parser $parser) | |
| Allows resetting the internal Parser reference after Preprocessor is cloned. | |
Public Attributes | |
| Parser | $parser |
| const | DOM_FOR_INCLUSION = 1 |
| Transclusion mode flag for Preprocessor::preprocessToObj() | |
| const | DOM_LANG_CONVERSION_DISABLED = 2 |
| Language conversion construct omission flag for Preprocessor::preprocessToObj() | |
| const | DOM_UNCACHED = 4 |
| Preprocessor cache bypass flag for Preprocessor::preprocessToObj. | |
| const | START_IN_SOL_STATE = 8 |
Protected Attributes | |
| bool | $disableLangConversion |
| Whether language variant conversion is disabled. | |
| array | $rules |
| Brace matching rules. | |
| WANObjectCache | $wanCache |
Definition at line 17 of file Preprocessor.php.
| MediaWiki\Parser\Preprocessor::__construct | ( | Parser | $parser, |
| ?WANObjectCache | $wanCache = null, | ||
| array | $options = [] ) |
| Parser | $parser | |
| WANObjectCache | null | $wanCache | |
| array | $options | Map of additional options, including:
|
Reimplemented in MediaWiki\Parser\Preprocessor_Hash.
Definition at line 70 of file Preprocessor.php.
References MediaWiki\Parser\Preprocessor\$parser, and MediaWiki\Parser\Preprocessor\$wanCache.
|
abstract |
Create a new custom frame for programmatic use of parameter replacement.
This is useful for certain types of extensions
| array | $args |
Reimplemented in MediaWiki\Parser\Preprocessor_Hash.
|
abstract |
Create a new top-level frame for expansion of a page.
Reimplemented in MediaWiki\Parser\Preprocessor_Hash.
|
abstract |
Create a new custom node for programmatic use of parameter replacement.
This is useful for certain types of extensions
| array | $values |
Reimplemented in MediaWiki\Parser\Preprocessor_Hash.
|
abstract |
Get the document object model for the given wikitext.
Any flag added to the $flags parameter here, or any other parameter liable to cause a change in the DOM tree for the given wikitext, must be passed through the section identifier in the section edit link and thus back to extractSections().
| string | $text | Wikitext |
| int | $flags | Bit field of Preprocessor::DOM_* flags:
|
Reimplemented in MediaWiki\Parser\Preprocessor_Hash.
| MediaWiki\Parser\Preprocessor::resetParser | ( | ?Parser | $parser | ) |
Allows resetting the internal Parser reference after Preprocessor is cloned.
Do not use this function in new code, since this method will be moved once Parser cloning goes away (T250448)
| ?Parser | $parser |
Definition at line 90 of file Preprocessor.php.
References MediaWiki\Parser\Preprocessor\$parser.
|
protected |
Whether language variant conversion is disabled.
Definition at line 37 of file Preprocessor.php.
| Parser MediaWiki\Parser\Preprocessor::$parser |
Definition at line 31 of file Preprocessor.php.
Referenced by MediaWiki\Parser\Preprocessor\__construct(), MediaWiki\Parser\Preprocessor_Hash\__construct(), and MediaWiki\Parser\Preprocessor\resetParser().
|
protected |
Brace matching rules.
Definition at line 40 of file Preprocessor.php.
|
protected |
Definition at line 34 of file Preprocessor.php.
Referenced by MediaWiki\Parser\Preprocessor\__construct(), and MediaWiki\Parser\Preprocessor_Hash\__construct().
| const MediaWiki\Parser\Preprocessor::DOM_FOR_INCLUSION = 1 |
Transclusion mode flag for Preprocessor::preprocessToObj()
Definition at line 19 of file Preprocessor.php.
| const MediaWiki\Parser\Preprocessor::DOM_LANG_CONVERSION_DISABLED = 2 |
Language conversion construct omission flag for Preprocessor::preprocessToObj()
Definition at line 21 of file Preprocessor.php.
| const MediaWiki\Parser\Preprocessor::DOM_UNCACHED = 4 |
Preprocessor cache bypass flag for Preprocessor::preprocessToObj.
Definition at line 23 of file Preprocessor.php.
| const MediaWiki\Parser\Preprocessor::START_IN_SOL_STATE = 8 |
Definition at line 28 of file Preprocessor.php.