MediaWiki REL1_40
|
Inherits MediaWiki\Settings\Config\ConfigBuilderBase.
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 9 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::build | ( | ) |
Build the configuration.
Implements MediaWiki\Settings\Config\ConfigBuilder.
Definition at line 54 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 18 of file ArrayConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 14 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 26 of file ArrayConfigBuilder.php.
MediaWiki\Settings\Config\ArrayConfigBuilder::setMultiDefault | ( | $defaults, | |
$mergeStrategies ) |
Definition at line 58 of file ArrayConfigBuilder.php.
|
protected |
Reimplemented from MediaWiki\Settings\Config\ConfigBuilderBase.
Definition at line 22 of file ArrayConfigBuilder.php.
|
protected |
Definition at line 12 of file ArrayConfigBuilder.php.