|
MediaWiki REL1_39
|
Differences from DOM schema: More...


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. | |
Public Member Functions inherited from Preprocessor | |
| resetParser (?Parser $parser) | |
| Allows resetting the internal Parser reference after Preprocessor is cloned. | |
Protected Attributes | |
| int bool | $cacheThreshold |
| Min wikitext size for which to cache DOM tree. | |
| const | CACHE_VERSION = 3 |
| Cache format version. | |
Protected Attributes inherited from Preprocessor | |
| bool | $disableLangConversion |
| Whether language variant conversion is disabled. | |
| array | $rules |
| Brace matching rules. | |
| WANObjectCache | $wanCache |
Additional Inherited Members | |
Public Attributes inherited from 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. | |
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 43 of file Preprocessor_Hash.php.
| Preprocessor_Hash::__construct | ( | Parser | $parser, |
| WANObjectCache | $wanCache = null, | ||
| array | $options = [] ) |
| Parser | $parser | |
| WANObjectCache | null | $wanCache | |
| array | $options | Additional options include:
|
Reimplemented from Preprocessor.
Definition at line 57 of file Preprocessor_Hash.php.
References Preprocessor\$parser, and Preprocessor\$wanCache.
| Preprocessor_Hash::newCustomFrame | ( | $args | ) |
| array | $args |
Reimplemented from Preprocessor.
Definition at line 78 of file Preprocessor_Hash.php.
References $args.
| Preprocessor_Hash::newFrame | ( | ) |
Reimplemented from Preprocessor.
Definition at line 70 of file Preprocessor_Hash.php.
| Preprocessor_Hash::newPartNodeArray | ( | $values | ) |
| array | $values |
Reimplemented from Preprocessor.
Definition at line 86 of file Preprocessor_Hash.php.
| 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 Preprocessor.
Definition at line 109 of file Preprocessor_Hash.php.
References CACHE_VERSION, and Preprocessor\DOM_LANG_CONVERSION_DISABLED.
|
protected |
Min wikitext size for which to cache DOM tree.
Definition at line 48 of file Preprocessor_Hash.php.
|
protected |
Cache format version.
Definition at line 45 of file Preprocessor_Hash.php.
Referenced by preprocessToObj().