|
MediaWiki master
|
Differences from DOM schema: More...
Inherits MediaWiki\Parser\Preprocessor.

Public Member Functions | |||||||
| __construct (Parser $parser, ?WANObjectCache $wanCache=null, array $options=[]) | |||||||
| newCustomFrame ( $args) | |||||||
| newFrame () | |||||||
| newPartNodeArray ( $values) | |||||||
| preprocessToObj ( $text, $flags=0) | |||||||
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().
| |||||||
Public Member Functions inherited from MediaWiki\Parser\Preprocessor | |||||||
| resetParser (?Parser $parser) | |||||||
| Allows resetting the internal Parser reference after Preprocessor is cloned. | |||||||
Protected Attributes | |
| int false | $cacheThreshold |
| Min wikitext size for which to cache DOM tree. | |
| const | CACHE_VERSION = 5 |
| Cache format version. | |
Protected Attributes inherited from MediaWiki\Parser\Preprocessor | |
| bool | $disableLangConversion |
| Whether language variant conversion is disabled. | |
| array | $rules |
| Brace matching rules. | |
| WANObjectCache | $wanCache |
Additional Inherited Members | |
Public Attributes inherited from MediaWiki\Parser\Preprocessor | |
| 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 |
Differences from DOM schema:
Nodes are stored in a recursive array data structure. A node store is an array where each element may be either a scalar (representing a text node) or a "descriptor", which is a two-element array where the first element is the node name and the second element is the node store for the children.
Attributes are represented as children that have a node name starting with "@", and a single text node child.
Definition at line 33 of file Preprocessor_Hash.php.
| MediaWiki\Parser\Preprocessor_Hash::__construct | ( | Parser | $parser, |
| ?WANObjectCache | $wanCache = null, | ||
| array | $options = [] ) |
| Parser | $parser | |
| WANObjectCache | null | $wanCache | |
| array | $options | Additional options include:
|
Reimplemented from MediaWiki\Parser\Preprocessor.
Definition at line 49 of file Preprocessor_Hash.php.
References MediaWiki\Parser\Preprocessor\$parser, and MediaWiki\Parser\Preprocessor\$wanCache.
| MediaWiki\Parser\Preprocessor_Hash::newCustomFrame | ( | $args | ) |
| array | $args |
Reimplemented from MediaWiki\Parser\Preprocessor.
Definition at line 70 of file Preprocessor_Hash.php.
| MediaWiki\Parser\Preprocessor_Hash::newFrame | ( | ) |
Reimplemented from MediaWiki\Parser\Preprocessor.
Definition at line 62 of file Preprocessor_Hash.php.
| MediaWiki\Parser\Preprocessor_Hash::newPartNodeArray | ( | $values | ) |
| array | $values |
Reimplemented from MediaWiki\Parser\Preprocessor.
Definition at line 78 of file Preprocessor_Hash.php.
| MediaWiki\Parser\Preprocessor_Hash::preprocessToObj | ( | $text, | |
| $flags = 0 ) |
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 from MediaWiki\Parser\Preprocessor.
Definition at line 116 of file Preprocessor_Hash.php.
|
protected |
Min wikitext size for which to cache DOM tree.
Definition at line 38 of file Preprocessor_Hash.php.
|
protected |
Cache format version.
Definition at line 35 of file Preprocessor_Hash.php.