MockFileBasedMessageGroup Class Reference

Inheritance diagram for MockFileBasedMessageGroup:
Inheritance graph
[legend]
Collaboration diagram for MockFileBasedMessageGroup:
Collaboration graph
[legend]

List of all members.

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() ).

Detailed Description

Definition at line 11 of file MockFileBasedMessageGroup.php.


Member Function Documentation

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.

Returns:
bool

Reimplemented from FileBasedMessageGroup.

Definition at line 16 of file MockFileBasedMessageGroup.php.

MockFileBasedMessageGroup::getKeys (  ) 

Optimized version of array_keys( $_->getDefinitions() ).

Returns:
array
Since:
2012-08-21

Reimplemented from MessageGroupBase.

Definition at line 20 of file MockFileBasedMessageGroup.php.

Here is the call graph for this function:

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).

Parameters:
$code 
Returns:
array

Implements MessageGroup.

Definition at line 12 of file MockFileBasedMessageGroup.php.

Referenced by getKeys().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:50 2013 for MediaWiki Translate Extension by  doxygen 1.6.3