Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5971254
MetaYamlSchemaExtender.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MetaYamlSchemaExtender.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\MessageGroupConfiguration
;
/**
* Message groups are usually configured in YAML, though the actual storage format does not matter,
* because they are parsed to PHP arrays anyway. The configuration consists of sections, and in some
* section there is key 'class' which defines the class implementing that part of behavior. These
* classes can take custom parameters, so in essense our configuration format is open-ended. To
* implement proper validation, those classes can extend the schema runtime by implementing this
* interface. Validation is implemented with the MetaYaml library.
*
* Because neither is_a nor instanceof accept class names, validation code will check directly
* whether this method exists, whether the class implements the interface or not.
*
* @see https://github.com/romaricdrigon/MetaYaml
* @see https://www.mediawiki.org/wiki/Help:Extension:Translate/Group_configuration
*/
interface
MetaYamlSchemaExtender
{
/**
* Return a data structure that will be merged with the base schema. It is not possible to remove
* things.
*/
public
static
function
getExtraSchema
():
array
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 15:03 (18 h, 32 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3b/86/3ed77d686ee7bca33470ee5f0fb5
Default Alt Text
MetaYamlSchemaExtender.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment