Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslateYaml Class Reference

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 loadString ( $text)
 
static fixSyckBooleans (&$yaml)
 
static fixSpycSpaces (&$yaml)
 
static load ( $file)
 
static dump ( $text)
 

Static Protected Member Functions

static phpyamlDump ( $data)
 
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 18 of file TranslateYaml.php.

Member Function Documentation

◆ dump()

static TranslateYaml::dump ( $text)
static

Definition at line 90 of file TranslateYaml.php.

◆ fixSpycSpaces()

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

Definition at line 72 of file TranslateYaml.php.

◆ fixSyckBooleans()

static TranslateYaml::fixSyckBooleans ( & $yaml)
static
Parameters
array&$yaml
Returns
array

Definition at line 56 of file TranslateYaml.php.

◆ load()

static TranslateYaml::load ( $file)
static

Definition at line 84 of file TranslateYaml.php.

◆ loadString()

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

Definition at line 24 of file TranslateYaml.php.

◆ phpyamlDump()

static TranslateYaml::phpyamlDump ( $data)
staticprotected

Definition at line 105 of file TranslateYaml.php.

◆ syckDump()

static TranslateYaml::syckDump ( $data)
staticprotected

Definition at line 136 of file TranslateYaml.php.

◆ syckLoad()

static TranslateYaml::syckLoad ( $data)
staticprotected

Definition at line 109 of file TranslateYaml.php.


The documentation for this class was generated from the following file: