Group for messages that can be controlled via a page in MediaWiki namespace. More...
Public Member Functions | |
__construct ($id, $source) | |
Constructor. | |
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. | |
Protected Attributes | |
$source = 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 21 of file WikiMessageGroup.php.
WikiMessageGroup::__construct | ( | $ | id, | |
$ | source | |||
) |
Constructor.
string | $id Unique id for this group. | |
string | $source Mediawiki message that contains list of message keys. |
Reimplemented in WikiPageMessageGroup.
Definition at line 30 of file WikiMessageGroup.php.
WikiMessageGroup::getDefinitions | ( | ) |
Fetch definitions from database.
Reimplemented from MessageGroupOld.
Reimplemented in RecentMessageGroup, SandboxMessageGroup, WikiPageMessageGroup, and MockWikiMessageGroup.
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.
Reimplemented in WikiPageMessageGroup.
Definition at line 82 of file WikiMessageGroup.php.
WikiMessageGroup::getSourceLanguage | ( | ) |
Defaults to wiki content language.
Reimplemented from MessageGroupOld.
Reimplemented in WikiPageMessageGroup.
Definition at line 40 of file WikiMessageGroup.php.
Referenced by getMessage().
WikiMessageGroup::$source = null [protected] |
Definition at line 22 of file WikiMessageGroup.php.
Referenced by WikiPageMessageGroup::__construct(), __construct(), getDefinitions(), and SandboxMessageGroup::getMessageContent().