Jump to content

Manual:getConfiguration.php

From mediawiki.org
This page is a translated version of the page Manual:GetConfiguration.php and the translation is 90% complete.
MediaWiki バージョン:
1.23

詳細

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

オプション

オプション 説明 必須かどうか 既定
--regex Regular expression to filter variables with 省略可能
--iregex Same as --regex but case insensitive 省略可能
--settings Space-separated list of wg* variables 省略可能
--format Output format. Either json, php, serialize or vardump. 省略可能 php


使用法

php maintenance/run.php getConfiguration [ --regex regex | --iregex regex | --settings list ] [ --format format ]
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

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

関連項目