MediaWiki master
|
Inherited by 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 30 of file Preprocessor.php.
Preprocessor::__construct | ( | Parser | $parser, |
WANObjectCache | $wanCache = null, | ||
array | $options = [] ) |
Parser | $parser | |
WANObjectCache | null | $wanCache | |
array | $options | Map of additional options, including:
|
Reimplemented in Preprocessor_Hash.
Definition at line 78 of file Preprocessor.php.
|
abstract |
Create a new custom frame for programmatic use of parameter replacement.
This is useful for certain types of extensions
array | $args |
Reimplemented in Preprocessor_Hash.
|
abstract |
Create a new top-level frame for expansion of a page.
Reimplemented in 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 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 Preprocessor_Hash.
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 98 of file Preprocessor.php.
|
protected |
Whether language variant conversion is disabled.
Definition at line 45 of file Preprocessor.php.
Parser Preprocessor::$parser |
Definition at line 39 of file Preprocessor.php.
|
protected |
Brace matching rules.
Definition at line 48 of file Preprocessor.php.
|
protected |
Definition at line 42 of file Preprocessor.php.
Referenced by Preprocessor_Hash\__construct().
const Preprocessor::DOM_FOR_INCLUSION = 1 |
Transclusion mode flag for Preprocessor::preprocessToObj()
Definition at line 32 of file Preprocessor.php.
Referenced by MediaWiki\Parser\Parser\getPreloadText().
const Preprocessor::DOM_LANG_CONVERSION_DISABLED = 2 |
Language conversion construct omission flag for Preprocessor::preprocessToObj()
Definition at line 34 of file Preprocessor.php.
const Preprocessor::DOM_UNCACHED = 4 |
Preprocessor cache bypass flag for Preprocessor::preprocessToObj.
Definition at line 36 of file Preprocessor.php.