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 phpyaml or spyc backend. More...

Static Public Member Functions

static loadString ( $text)
 
static fixSpycSpaces (&$yaml)
 
static load ( $file)
 
static dump ( $text)
 

Static Protected Member Functions

static phpyamlDump ( $data)
 

Detailed Description

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

Definition at line 16 of file TranslateYaml.php.

Member Function Documentation

◆ dump()

static TranslateYaml::dump ( $text)
static

Definition at line 68 of file TranslateYaml.php.

◆ fixSpycSpaces()

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

Definition at line 50 of file TranslateYaml.php.

◆ load()

static TranslateYaml::load ( $file)
static

Definition at line 62 of file TranslateYaml.php.

◆ loadString()

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

Definition at line 21 of file TranslateYaml.php.

◆ phpyamlDump()

static TranslateYaml::phpyamlDump ( $data)
staticprotected

Definition at line 81 of file TranslateYaml.php.


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