FileBasedMessageGroup Class Reference
[Message group]

This class implements default behavior for file based message groups. More...

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

List of all members.

Public Member Functions

 exists ()
 If this function returns false, the message group is ignored and treated like it would not be configured at all.
 getSourceFilePath ($code)
 getTargetFilename ($code)
 mapCode ($code)

Static Public Member Functions

static newFromMessageGroup ($group)
 Constructs a FileBasedMessageGroup from any normal message group.

Protected Member Functions

 replaceVariables ($pattern, $code)

Protected Attributes

 $reverseCodeMap

Detailed Description

This class implements default behavior for file based message groups.

File based message groups are primary type of groups at translatewiki.net, while other projects may use mainly page translation message groups, or custom type of message groups.

Definition at line 19 of file FileBasedMessageGroup.php.


Member Function Documentation

FileBasedMessageGroup::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

Implements MessageGroup.

Reimplemented in MockFileBasedMessageGroup.

Definition at line 45 of file FileBasedMessageGroup.php.

Here is the call graph for this function:

FileBasedMessageGroup::getSourceFilePath ( code  ) 

Definition at line 59 of file FileBasedMessageGroup.php.

Referenced by ProcessMessageChanges::addMessageUpdateChanges().

Here is the call graph for this function:

FileBasedMessageGroup::getTargetFilename ( code  ) 

Definition at line 77 of file FileBasedMessageGroup.php.

Here is the call graph for this function:

FileBasedMessageGroup::mapCode ( code  ) 
Parameters:
$code 
Returns:
string

Reimplemented in MediaWikiMessageGroup.

Definition at line 103 of file FileBasedMessageGroup.php.

Referenced by replaceVariables().

static FileBasedMessageGroup::newFromMessageGroup ( group  )  [static]

Constructs a FileBasedMessageGroup from any normal message group.

Useful for doing special Gettext exports from any group.

Parameters:
$group MessageGroup
Returns:
FileBasedMessageGroup

Definition at line 28 of file FileBasedMessageGroup.php.

Referenced by ExportAsPoMessagesTask::output().

Here is the call graph for this function:

FileBasedMessageGroup::replaceVariables ( pattern,
code 
) [protected]

Definition at line 87 of file FileBasedMessageGroup.php.

Referenced by getSourceFilePath(), and getTargetFilename().

Here is the call graph for this function:


Member Data Documentation

FileBasedMessageGroup::$reverseCodeMap [protected]

Definition at line 20 of file FileBasedMessageGroup.php.


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