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. | |
Protected Attributes | |
bool | $disableLangConversion |
Whether language variant conversion is disabled. | |
array | $rules |
Brace matching rules. | |
WANObjectCache | $wanCache |
Definition at line 31 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 79 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 99 of file Preprocessor.php.
References MediaWiki\Parser\Preprocessor\$parser.
|
protected |
Whether language variant conversion is disabled.
Definition at line 46 of file Preprocessor.php.
Parser MediaWiki\Parser\Preprocessor::$parser |
Definition at line 40 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 49 of file Preprocessor.php.
|
protected |
Definition at line 43 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 33 of file Preprocessor.php.
Referenced by MediaWiki\Parser\Parser\getPreloadText().
const MediaWiki\Parser\Preprocessor::DOM_LANG_CONVERSION_DISABLED = 2 |
Language conversion construct omission flag for Preprocessor::preprocessToObj()
Definition at line 35 of file Preprocessor.php.
Referenced by MediaWiki\Parser\Preprocessor_Hash\preprocessToObj().
const MediaWiki\Parser\Preprocessor::DOM_UNCACHED = 4 |
Preprocessor cache bypass flag for Preprocessor::preprocessToObj.
Definition at line 37 of file Preprocessor.php.