Example implementation of old-style file format writer. More...
Public Member Functions | |
__construct (MessageGroup $group) | |
addAuthors (array $authors, $code) | |
load ($code) | |
fileExport (array $languages, $targetDirectory) | |
webExport (MessageCollection $collection) | |
filterAuthors (array $authors, $code, $groupId) | |
Public Attributes | |
const | SEPARATOR = '----' |
const | AUTHORPREFIX = 'Author: ' |
Protected Member Functions | |
getMessagesForExport (MessageGroup $group, $code) | |
exportLanguage ($target, MessageCollection $collection) | |
makeHeader ($handle, $code) | |
formatAuthors ($prefix, $code) | |
exportStaticHeader ($target) | |
exportMessages ($handle, MessageCollection $collection) | |
getLanguageNames ($code) | |
Protected Attributes | |
$group | |
$authors | |
$staticHeader |
Example implementation of old-style file format writer.
Definition at line 125 of file Simple.php.
SimpleFormatWriter::__construct | ( | MessageGroup $ | group | ) |
Definition at line 135 of file Simple.php.
SimpleFormatWriter::addAuthors | ( | array $ | authors, | |
$ | code | |||
) |
Definition at line 139 of file Simple.php.
Referenced by getMessagesForExport(), load(), and webExport().
SimpleFormatWriter::exportLanguage | ( | $ | target, | |
MessageCollection $ | collection | |||
) | [protected] |
Definition at line 219 of file Simple.php.
Referenced by fileExport(), and webExport().
SimpleFormatWriter::exportMessages | ( | $ | handle, | |
MessageCollection $ | collection | |||
) | [protected] |
Reimplemented in WikiFormatWriter.
Definition at line 293 of file Simple.php.
Referenced by exportLanguage().
SimpleFormatWriter::exportStaticHeader | ( | $ | target | ) | [protected] |
Reimplemented in WikiFormatWriter.
Definition at line 287 of file Simple.php.
Referenced by exportLanguage().
SimpleFormatWriter::fileExport | ( | array $ | languages, | |
$ | targetDirectory | |||
) |
SimpleFormatWriter::filterAuthors | ( | array $ | authors, | |
$ | code, | |||
$ | groupId | |||
) |
Definition at line 235 of file Simple.php.
Referenced by formatAuthors().
SimpleFormatWriter::formatAuthors | ( | $ | prefix, | |
$ | code | |||
) | [protected] |
Definition at line 263 of file Simple.php.
Referenced by makeHeader().
SimpleFormatWriter::getLanguageNames | ( | $ | code | ) | [protected] |
SimpleFormatWriter::getMessagesForExport | ( | MessageGroup $ | group, | |
$ | code | |||
) | [protected] |
Definition at line 209 of file Simple.php.
Referenced by fileExport().
SimpleFormatWriter::load | ( | $ | code | ) |
Definition at line 156 of file Simple.php.
Referenced by exportLanguage().
SimpleFormatWriter::makeHeader | ( | $ | handle, | |
$ | code | |||
) | [protected] |
Definition at line 227 of file Simple.php.
Referenced by exportLanguage().
SimpleFormatWriter::webExport | ( | MessageCollection $ | collection | ) |
SimpleFormatWriter::$authors [protected] |
Definition at line 133 of file Simple.php.
Referenced by formatAuthors().
SimpleFormatWriter::$group [protected] |
Definition at line 130 of file Simple.php.
SimpleFormatWriter::$staticHeader [protected] |
Definition at line 133 of file Simple.php.
const SimpleFormatWriter::AUTHORPREFIX = 'Author: ' |
Definition at line 127 of file Simple.php.
const SimpleFormatWriter::SEPARATOR = '----' |
Definition at line 126 of file Simple.php.