MediaWiki REL1_39
|
Represents a config schema. More...
Public Member Functions | |
getDefaultFor (string $key) | |
Get the default value for the $key. | |
getDefaults () | |
Get all defined default values. | |
getDefinedKeys () | |
Get a list of all defined keys. | |
getDynamicDefaults () | |
Get all dynamic default declarations. | |
getMergeStrategyFor (string $key) | |
Get the merge strategy defined for the $key, or null if none defined. | |
hasDefaultFor (string $key) | |
Check if the $key has a default value set in the schema. | |
hasSchemaFor (string $key) | |
Check whether schema for $key is defined. | |
MediaWiki\Settings\Config\ConfigSchema::getDefaultFor | ( | string | $key | ) |
Get the default value for the $key.
For keys that do not define a default, null is assumed.
string | $key |
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
MediaWiki\Settings\Config\ConfigSchema::getDefaults | ( | ) |
Get all defined default values.
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
MediaWiki\Settings\Config\ConfigSchema::getDefinedKeys | ( | ) |
Get a list of all defined keys.
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
MediaWiki\Settings\Config\ConfigSchema::getDynamicDefaults | ( | ) |
Get all dynamic default declarations.
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
Referenced by MediaWiki\Settings\DynamicDefaultValues\__construct().
MediaWiki\Settings\Config\ConfigSchema::getMergeStrategyFor | ( | string | $key | ) |
Get the merge strategy defined for the $key, or null if none defined.
string | $key |
SettingsBuilderException | if merge strategy name is invalid. |
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
MediaWiki\Settings\Config\ConfigSchema::hasDefaultFor | ( | string | $key | ) |
Check if the $key has a default value set in the schema.
string | $key |
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.
MediaWiki\Settings\Config\ConfigSchema::hasSchemaFor | ( | string | $key | ) |
Check whether schema for $key is defined.
string | $key |
Implemented in MediaWiki\Settings\Config\ConfigSchemaAggregator.