Property | Type | Description | |
---|---|---|---|
$firstLevelKeys | contains the key portion of the first level identifier as the key and the value is
[
'section' => int, // index of the section this identifier belongs to. -1 means before first.
'ordinal' => int, // ordinal position of this identifier in the section
'quotes' => string, // type of quoting used for the key if it was a string, ', ", << | ||
$options | |||
$sections | containing the multi-line comment text as they appear in the file, including leading and trailing blank lines. Indexed by the count of the multi-line comment. | ||
$source | string | ||
$tokens | array |
Method | Description | |
---|---|---|
__construct ( ) | TranslationFileRewriter constructor. | |
__toString ( ) : string | The __toString method allows a class to decide how it will react when it is converted to a string. | |
formatForExport ( $trans, $options = null ) | ||
optionFlags ( $optionNames ) | ||
parseSource ( $source ) | ||
str_count_chars ( $chars, $string ) | ||
str_count_trailing ( $chars, $string ) |
Method | Description | |
---|---|---|
formatSection ( $trans, $options = null, $indent ) | ||
wrapQuotes ( $value, $options = null ) |
public __toString ( ) : string | ||
return | string |
public parseSource ( $source ) | ||
$source | TODO: Quite a bit of kludge but does the job. Needs clean up, it is hard on the eyes. |
public $firstLevelKeys |
public $sections |