TranslateYaml Class Reference

This class is a wrapper class to provide interface to parse and generate YAML files with syck or spyc backend. More...

List of all members.

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)

Detailed Description

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.


Member Function Documentation

static TranslateYaml::dump ( text  )  [static]

Definition at line 132 of file TranslateYaml.php.

Here is the call graph for this function:

static TranslateYaml::fixSpycSpaces ( &$  yaml  )  [static]
Parameters:
$yaml array
Returns:
array

Definition at line 114 of file TranslateYaml.php.

Referenced by loadString().

static TranslateYaml::fixSyckBooleans ( &$  yaml  )  [static]
Parameters:
$yaml array
Returns:
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().

Here is the call graph for this function:

static TranslateYaml::loadString ( text  )  [static]
Parameters:
$text string
Returns:
array
Exceptions:
MWException 

Definition at line 72 of file TranslateYaml.php.

Referenced by load(), parseGroupFile(), YamlTests::parseGroupFile(), and YamlFFS::readFromVariable().

Here is the call graph for this function:

static TranslateYaml::mergeTemplate ( base,
specific 
) [static]

Merges a document template (base) to actual definition (specific).

Parameters:
$base 
$specific 
Returns:
array

Definition at line 55 of file TranslateYaml.php.

Referenced by parseGroupFile(), and YamlTests::parseGroupFile().

static TranslateYaml::parseGroupFile ( filename  )  [static]
Parameters:
$filename string
Returns:
array

Definition at line 21 of file TranslateYaml.php.

Referenced by MessageGroups::loadGroupDefinitions().

Here is the call graph for this function:

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().


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