MediaWiki
master
SettingsFormat.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Settings\Source\Format
;
4
5
use Stringable;
6
use UnexpectedValueException;
7
15
interface
SettingsFormat
extends
Stringable {
24
public
function
decode
(
string
$data ): array;
25
34
public
static
function
supportsFileExtension
(
string
$ext ): bool;
35
}
MediaWiki\Settings\Source\Format\SettingsFormat
A SettingsFormat is meant to detect supported file types and/or decode source contents into settings ...
Definition
SettingsFormat.php:15
MediaWiki\Settings\Source\Format\SettingsFormat\decode
decode(string $data)
Decodes the given settings data and returns an associative array.
MediaWiki\Settings\Source\Format\SettingsFormat\supportsFileExtension
static supportsFileExtension(string $ext)
Whether or not the format claims to support a file with the given extension.
MediaWiki\Settings\Source\Format
Definition
JsonFormat.php:3
includes
Settings
Source
Format
SettingsFormat.php
Generated on Thu Dec 5 2024 09:24:29 for MediaWiki by
1.10.0