MediaWiki REL1_39
|
Public Member Functions | ||||||||||
build () | ||||||||||
Build the configuration. | ||||||||||
get (string $key) | ||||||||||
Get the current value for $key. | ||||||||||
setMulti (array $values, array $mergeStrategies=[]) | ||||||||||
Set all values in the array.
| ||||||||||
setMultiDefault ( $defaults, $mergeStrategies) | ||||||||||
Public Member Functions inherited from MediaWiki\Settings\Config\ConfigBuilderBase | ||||||||||
set (string $key, $newValue, MergeStrategy $mergeStrategy=null) | ||||||||||
Set the configuration $key to $value.
| ||||||||||
setDefault (string $key, $defaultValue, MergeStrategy $mergeStrategy=null) | ||||||||||
Set the default for the configuration $key to $defaultValue.If the $key is already set, non-array $defaultValue will be ignored, for array $defaultValue the existing value will be merged into it as if the default was already there when the existing value was set.
| ||||||||||
setMultiDefault (array $defaults, array $mergeStrategies) | ||||||||||
Set defaults in a batch.
| ||||||||||
Protected Member Functions | |
has (string $key) | |
update (string $key, $value) | |
Protected Attributes | |
array | $config = [] |
Definition at line 10 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::build | ( | ) |
Build the configuration.
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 56 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::get | ( | string | $key | ) |
Get the current value for $key.
string | $key |
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 19 of file ArrayConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 15 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::setMulti | ( | array | $values, |
array | $mergeStrategies = [] ) |
Set all values in the array.
array | $values | |
MergeStrategy[] | $mergeStrategies | The merge strategies indexed by config key |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 27 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::setMultiDefault | ( | $defaults, | |
$mergeStrategies ) |
Definition at line 60 of file ArrayConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 23 of file ArrayConfigBuilder.php.
|
protected |
Definition at line 13 of file ArrayConfigBuilder.php.