Jump to content

Manual:GetConfiguration.php/mk

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

Подробно

getConfiguration.php file is a maintenance script to print the values of MediaWiki configuration variables.

Options

Option Description Required Default
--regex Regular expression to filter variables with Optional
--iregex Same as --regex but case insensitive Optional
--settings Space-separated list of wg* variables Optional
--format Output format. Either json, php, serialize or vardump. Optional php

Usage

php maintenance/run.php getConfiguration [ --regex regex | --iregex regex | --settings list ] [ --format format ]
In MediaWiki version 1.39.13 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of 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

See also