Manipulates ExtensionName.i18n.php style files. More...
Public Member Functions | |
supportsFuzzy () | |
Query the capabilities of this FFS. | |
getFileExtensions () | |
Return the commonly used file extensions for these formats. | |
read ($code) | |
Reads messages from the file in a given language and returns an array of AUTHORS, MESSAGES and possibly other properties. | |
readFromVariable ($data) | |
Parse the message data given as a string in the SimpleFFS format and return it as an array of AUTHORS and MESSAGES. | |
Protected Member Functions | |
splitSections ($data, $filename= 'unknown') | |
writeReal (MessageCollection $collection) | |
Static Protected Member Functions | |
static | parseAuthorsFromString ($string) |
Scans for @author tags in the string. | |
static | quote ($value) |
Tries to find optimal way to quote a string by choosing either double quotes or single quotes depending on how many escapes are needed. | |
Static Protected Attributes | |
static | $cache = array() |
Manipulates ExtensionName.i18n.php style files.
Definition at line 17 of file MediaWikiExtensionFFS.php.
MediaWikiExtensionFFS::getFileExtensions | ( | ) |
Return the commonly used file extensions for these formats.
Include the dot.
Reimplemented from SimpleFFS.
Definition at line 22 of file MediaWikiExtensionFFS.php.
static MediaWikiExtensionFFS::parseAuthorsFromString | ( | $ | string | ) | [static, protected] |
Scans for @author tags in the string.
string | $string String containing the comments of a section |
Definition at line 229 of file MediaWikiExtensionFFS.php.
Referenced by writeReal().
static MediaWikiExtensionFFS::quote | ( | $ | value | ) | [static, protected] |
Tries to find optimal way to quote a string by choosing either double quotes or single quotes depending on how many escapes are needed.
string | $value The string to quote. |
Definition at line 242 of file MediaWikiExtensionFFS.php.
MediaWikiExtensionFFS::read | ( | $ | code | ) |
Reads messages from the file in a given language and returns an array of AUTHORS, MESSAGES and possibly other properties.
$code | string |
MWException | if the file appears to exist, but cannot be read |
Reimplemented from SimpleFFS.
Definition at line 75 of file MediaWikiExtensionFFS.php.
Referenced by writeReal().
MediaWikiExtensionFFS::readFromVariable | ( | $ | data | ) |
Parse the message data given as a string in the SimpleFFS format and return it as an array of AUTHORS and MESSAGES.
$data | string |
MWException |
Reimplemented from SimpleFFS.
Definition at line 107 of file MediaWikiExtensionFFS.php.
Referenced by read().
MediaWikiExtensionFFS::splitSections | ( | $ | data, | |
$ | filename = 'unknown' | |||
) | [protected] |
string | $data Full file contents | |
string | $filename Full path to file for debugging |
MWException |
Definition at line 39 of file MediaWikiExtensionFFS.php.
Referenced by read().
MediaWikiExtensionFFS::supportsFuzzy | ( | ) |
Query the capabilities of this FFS.
Allowed values are:
Reimplemented from SimpleFFS.
Definition at line 18 of file MediaWikiExtensionFFS.php.
MediaWikiExtensionFFS::writeReal | ( | MessageCollection $ | collection | ) | [protected] |
MessageCollection | $collection |
$name ($native)$authorList
Reimplemented from SimpleFFS.
Definition at line 129 of file MediaWikiExtensionFFS.php.
MediaWikiExtensionFFS::$cache = array() [static, protected] |
Definition at line 31 of file MediaWikiExtensionFFS.php.
Referenced by read(), and writeReal().