This class is a wrapper class to provide interface to parse and generate YAML files with syck or spyc backend. More...
Static Public Member Functions | |
static | parseGroupFile ($filename) |
static | mergeTemplate ($base, $specific) |
Merges a document template (base) to actual definition (specific). | |
static | loadString ($text) |
static | fixSyckBooleans (&$yaml) |
static | fixSpycSpaces (&$yaml) |
static | load ($file) |
static | dump ($text) |
Static Protected Member Functions | |
static | syckLoad ($data) |
static | syckDump ($data) |
This class is a wrapper class to provide interface to parse and generate YAML files with syck or spyc backend.
Definition at line 16 of file TranslateYaml.php.
static TranslateYaml::dump | ( | $ | text | ) | [static] |
static TranslateYaml::fixSpycSpaces | ( | &$ | yaml | ) | [static] |
$yaml | array |
Definition at line 114 of file TranslateYaml.php.
Referenced by loadString().
static TranslateYaml::fixSyckBooleans | ( | &$ | yaml | ) | [static] |
$yaml | array |
Definition at line 98 of file TranslateYaml.php.
Referenced by loadString().
static TranslateYaml::load | ( | $ | file | ) | [static] |
Definition at line 126 of file TranslateYaml.php.
Referenced by MediaWikiExtensionTest::testParsing().
static TranslateYaml::loadString | ( | $ | text | ) | [static] |
$text | string |
MWException |
Definition at line 72 of file TranslateYaml.php.
Referenced by load(), parseGroupFile(), YamlTests::parseGroupFile(), and YamlFFS::readFromVariable().
static TranslateYaml::mergeTemplate | ( | $ | base, | |
$ | specific | |||
) | [static] |
Merges a document template (base) to actual definition (specific).
$base | ||
$specific |
Definition at line 55 of file TranslateYaml.php.
Referenced by parseGroupFile(), and YamlTests::parseGroupFile().
static TranslateYaml::parseGroupFile | ( | $ | filename | ) | [static] |
$filename | string |
Definition at line 21 of file TranslateYaml.php.
Referenced by MessageGroups::loadGroupDefinitions().
static TranslateYaml::syckDump | ( | $ | data | ) | [static, protected] |
Definition at line 181 of file TranslateYaml.php.
Referenced by dump().
static TranslateYaml::syckLoad | ( | $ | data | ) | [static, protected] |
Definition at line 150 of file TranslateYaml.php.
Referenced by loadString().