59 'names' => [ 2 => null ],
65 'names' => [ 2 => null ],
82 $this->parser = $parser;
83 $this->wanCache =
$wanCache ?: WANObjectCache::newEmpty();
84 $this->disableLangConversion = !empty( $options[
'disableLangConversion'] );
99 $this->parser = $parser;
preprocessToObj( $text, $flags=0)
Get the document object model for the given wikitext.
const DOM_UNCACHED
Preprocessor cache bypass flag for Preprocessor::preprocessToObj.
array $rules
Brace matching rules.
__construct(Parser $parser, WANObjectCache $wanCache=null, array $options=[])
resetParser(?Parser $parser)
Allows resetting the internal Parser reference after Preprocessor is cloned.
newPartNodeArray( $values)
Create a new custom node for programmatic use of parameter replacement.
const DOM_LANG_CONVERSION_DISABLED
Language conversion construct omission flag for Preprocessor::preprocessToObj()
newFrame()
Create a new top-level frame for expansion of a page.
const DOM_FOR_INCLUSION
Transclusion mode flag for Preprocessor::preprocessToObj()
bool $disableLangConversion
Whether language variant conversion is disabled.
newCustomFrame( $args)
Create a new custom frame for programmatic use of parameter replacement.
Multi-datacenter aware caching interface.