MediaWiki
REL1_39
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
$ext
if(!is_readable( $file)) $ext
Definition
router.php:48
includes
Settings
Source
Format
SettingsFormat.php
Generated on Mon Dec 16 2024 06:36:19 for MediaWiki by
1.10.0