MediaWiki master
|
A SettingsFormat is meant to detect supported file types and/or decode source contents into settings arrays. More...
Inherits Stringable.
Inherited by MediaWiki\Settings\Source\Format\JsonFormat, and MediaWiki\Settings\Source\Format\YamlFormat.
Public Member Functions | |
decode (string $data) | |
Decodes the given settings data and returns an associative array. | |
Static Public Member Functions | |
static | supportsFileExtension (string $ext) |
Whether or not the format claims to support a file with the given extension. | |
A SettingsFormat is meant to detect supported file types and/or decode source contents into settings arrays.
Definition at line 15 of file SettingsFormat.php.
MediaWiki\Settings\Source\Format\SettingsFormat::decode | ( | string | $data | ) |
Decodes the given settings data and returns an associative array.
string | $data | Settings data. |
UnexpectedValueException |
Implemented in MediaWiki\Settings\Source\Format\JsonFormat, and MediaWiki\Settings\Source\Format\YamlFormat.
|
static |
Whether or not the format claims to support a file with the given extension.
string | $ext | File extension. |
Implemented in MediaWiki\Settings\Source\Format\JsonFormat, and MediaWiki\Settings\Source\Format\YamlFormat.