38// Does preprocessing start in Start-Of-Line(SOL) state? Only relevant for Parsoid 39// content, since Parsoid models templates as independent documents in SOL start. 40// This flag is never set by the legacy parser (but see T2529 which has a similar 66'names' => [ 2 => null ],
72'names' => [ 2 => null ],
90 $this->wanCache =
$wanCache ?: WANObjectCache::newEmpty();
91 $this->disableLangConversion = !empty( $options[
'disableLangConversion'] );
105// @phan-suppress-next-line PhanPossiblyNullTypeMismatchProperty For internal use only 158class_alias( Preprocessor::class,
'Preprocessor' );
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
resetParser(?Parser $parser)
Allows resetting the internal Parser reference after Preprocessor is cloned.
__construct(Parser $parser, ?WANObjectCache $wanCache=null, array $options=[])
newPartNodeArray( $values)
Create a new custom node for programmatic use of parameter replacement.
newFrame()
Create a new top-level frame for expansion of a page.
const DOM_UNCACHED
Preprocessor cache bypass flag for Preprocessor::preprocessToObj.
const DOM_LANG_CONVERSION_DISABLED
Language conversion construct omission flag for Preprocessor::preprocessToObj()
preprocessToObj( $text, $flags=0)
Get the document object model for the given wikitext.
const DOM_FOR_INCLUSION
Transclusion mode flag for Preprocessor::preprocessToObj()
newCustomFrame( $args)
Create a new custom frame for programmatic use of parameter replacement.
array $rules
Brace matching rules.
bool $disableLangConversion
Whether language variant conversion is disabled.
Multi-datacenter aware caching interface.