Manual:$wgParserConf/pl

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgParserConf and the translation is 8% complete.

Other languages:
English • ‎español • ‎polski • ‎日本語
Parser: $wgParserConf
Parser configuration.
Wprowadzono w wersji:1.12.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array)
Domyślna wartość:
[
	'class' => Parser::class,
	# 'preprocessorClass' => Preprocessor_Hash::class,
]

Szczegóły

Associative array with the following members:

class 
The class name
preprocessorClass 
The preprocessor class. Two classes are currently available: Preprocessor_Hash, which uses plain PHP arrays for temporary storage, and Preprocessor_DOM, which uses the DOM module for temporary storage. Preprocessor_DOM generally uses less memory; the speed of the two is roughly the same.
If this parameter is not given, it uses Preprocessor_DOM if the DOM module is available, otherwise it uses Preprocessor_Hash.

The entire associative array will be passed through to the constructor as the first parameter. Note that only Setup.php can use this variable -- the configuration will change at runtime via $wgParser member functions, so the contents of this variable will be out-of-date. The variable can only be changed during LocalSettings.php, in particular, it can't be changed during an extension setup function.