Public Member Functions | |
load ($code) | |
Returns a list of messages in a given language code. | |
exists () | |
If this function returns false, the message group is ignored and treated like it would not be configured at all. | |
getKeys () | |
Optimized version of array_keys( $_->getDefinitions() ). |
Definition at line 11 of file MockFileBasedMessageGroup.php.
MockFileBasedMessageGroup::exists | ( | ) |
If this function returns false, the message group is ignored and treated like it would not be configured at all.
Useful for graceful degradation. Try to keep the check fast to avoid performance problems.
Reimplemented from FileBasedMessageGroup.
Definition at line 16 of file MockFileBasedMessageGroup.php.
MockFileBasedMessageGroup::getKeys | ( | ) |
Optimized version of array_keys( $_->getDefinitions() ).
Reimplemented from MessageGroupBase.
Definition at line 20 of file MockFileBasedMessageGroup.php.
MockFileBasedMessageGroup::load | ( | $ | code | ) |
Returns a list of messages in a given language code.
For some groups that list may be identical with the translation in the wiki. For other groups the messages may be loaded from a file (and differ from the current translations or definitions).
$code |
Implements MessageGroup.
Definition at line 12 of file MockFileBasedMessageGroup.php.
Referenced by getKeys().