Group for messages that can be controlled via a page in MediaWiki namespace. More...
Public Member Functions | |
| __construct ( $id, $source) | |
| getSourceLanguage () | |
| Defaults to wiki content language. | |
| getDefinitions () | |
| Fetch definitions from database. | |
| getMessage ( $key, $code) | |
| Returns of stored translation of message specified by the $key in language code $code. | |
Public Member Functions inherited from MessageGroupOld | |
| getLabel (?IContextSource $context=null) | |
| setLabel ( $value) | |
| getId () | |
| setId ( $value) | |
| getNamespace () | |
| Get the namespace where all the messages of this group belong. | |
| setNamespace ( $ns) | |
| Set the namespace where all the messages of this group belong. | |
| getDescription (?IContextSource $context=null) | |
| @inheritDoc | |
| setDescription (string $value) | |
| getIcon () | |
| @inheritDoc | |
| isMeta () | |
| @inheritDoc | |
| getMangler () | |
| load ( $code) | |
| @inheritDoc | |
| getUniqueDefinitions () | |
| This function can be used for meta message groups to list their "own" messages. | |
| getKeys () | |
| @inheritDoc | |
| initCollection ( $code, $unique=false) | |
| Creates a new MessageCollection for this group. | |
| exists () | |
| Can be overwritten to return false if something is wrong. | |
| getValidator () | |
| @inheritDoc | |
| getTags ( $type=null) | |
| @inheritDoc | |
| getMessageGroupStates () | |
| Get the message group workflow state configuration. | |
| getTranslatableLanguages () | |
| @inheritDoc | |
| getSupportConfig () | |
| Gets support URL defined for the group if any. | |
| getRelatedPage () | |
| @inheritDoc | |
Public Member Functions inherited from MessageGroup | |
| initCollection ( $code) | |
| Initialises a message collection with the given language code, message definitions and message tags. | |
Protected Attributes | |
| $source | |
Protected Attributes inherited from MessageGroupOld | |
| $label = 'none' | |
| $id = 'none' | |
| $namespace = NS_MEDIAWIKI | |
| $description = null | |
| $meta = false | |
| $mangler = null | |
| $messages = [] | |
Additional Inherited Members | |
Static Public Member Functions inherited from MessageGroupOld | |
| static | normaliseKeys ( $array) |
Public Attributes inherited from MessageGroup | |
| const | DEFAULT_LANGUAGES = null |
| Return value from getTranslatableLanguages when to use defaults. | |
Protected Member Functions inherited from MessageGroupOld | |
| isSourceLanguage ( $code) | |
Static Protected Member Functions inherited from MessageGroupOld | |
| static | addContext (Message $message, ?IContextSource $context=null) |
Group for messages that can be controlled via a page in MediaWiki namespace.
In the page comments start with # and continue till the end of the line. The page should contain list of page names in MediaWiki namespace, without the namespace prefix. Use underscores for spaces in page names, since whitespace separates the page names from each other.
Definition at line 23 of file WikiMessageGroup.php.
| WikiMessageGroup::__construct | ( | $id, | |
| $source ) |
| string | $id | Unique id for this group. |
| string | $source | MediaWiki message that contains list of message keys. |
Definition at line 31 of file WikiMessageGroup.php.
| WikiMessageGroup::getDefinitions | ( | ) |
Fetch definitions from database.
Reimplemented from MessageGroupOld.
Reimplemented in MessagePrefixMessageGroup, RecentMessageGroup, SandboxMessageGroup, and WorkflowStatesMessageGroup.
Definition at line 50 of file WikiMessageGroup.php.
| WikiMessageGroup::getMessage | ( | $key, | |
| $code ) |
Returns of stored translation of message specified by the $key in language code $code.
| string | $key | Key of the message. |
| string | $code | Language code. |
Reimplemented from MessageGroupOld.
Definition at line 82 of file WikiMessageGroup.php.
| WikiMessageGroup::getSourceLanguage | ( | ) |
Defaults to wiki content language.
Reimplemented from MessageGroupOld.
Definition at line 40 of file WikiMessageGroup.php.
|
protected |
Definition at line 25 of file WikiMessageGroup.php.