Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4088691
SettingsFormat.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
770 B
Referenced Files
None
Subscribers
None
SettingsFormat.php
View Options
<?php
namespace
MediaWiki\Settings\Source\Format
;
use
Stringable
;
use
UnexpectedValueException
;
/**
* A SettingsFormat is meant to detect supported file types and/or decode
* source contents into settings arrays.
*
* @since 1.38
* @stable to implement
*/
interface
SettingsFormat
extends
Stringable
{
/**
* Decodes the given settings data and returns an associative array.
*
* @param string $data Settings data.
*
* @return array
* @throws UnexpectedValueException
*/
public
function
decode
(
string
$data
):
array
;
/**
* Whether or not the format claims to support a file with the given
* extension.
*
* @param string $ext File extension.
*
* @return bool
*/
public
static
function
supportsFileExtension
(
string
$ext
):
bool
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 10:09 (6 w, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
45/55/32ada645960c90289c08a85b2246
Default Alt Text
SettingsFormat.php (770 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment