Příručka:GetConfiguration.php

From mediawiki.org
This page is a translated version of the page Manual:GetConfiguration.php and the translation is 100% complete.
Verze MediaWiki:
1.23

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
--regex Regex to filter variables with Volitelné
--iregex Same as --regex but case insensitive Volitelné
--settings Space-separated list of wg* variables Volitelné
--format Output format, either json, php, serialize, or vardump Volitelné php

Použití

php maintenance/getConfiguration.php [ --regex| --iregex| --settings| --format ]

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éž