Manual:GetConfiguration.php/cs

Verze MediaWiki:
1.23
Category:MediaWiki code/cs#GetConfiguration.php

Podrobnosti

Soubor getConfiguration.php je tzv. údržbářský skript, kterým lze získat informace o aktuálním nastavení všech proměnných aktuální instance MediaWiki.

Volby

Volba Popis Požadované Výchozí parametry
--regexRegex to filter variables withVolitelné
--iregexSame as --regex but case insensitiveVolitelné
--settingsSpace-separated list of wg* variablesVolitelné
--formatOutput format, either json, php, serialize, or vardumpVolitelnéphp

Použití

php maintenance/run.php getConfiguration [ --regex| --iregex| --settings| --format ]
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí php maintenance/scriptName.php namísto php maintenance/run.php scriptName.

With settings

Terminal

With regex

Terminal
Use JSON_PARTIAL_OUTPUT_ON_ERROR (--json-partial-output-on-error) flag with json_encode(). This allows for partial response to be output in case of an exception while serializing to JSON. If an error occurs, the wgGetConfigurationJsonErrorOccurred field is set in the output.
Terminal

Viz též

Category:Maintenance scripts/cs Category:Development maintenance scripts/cs
Category:Development maintenance scripts/cs Category:Maintenance scripts/cs Category:MediaWiki code/cs