MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Yaml

Membros públicos estáticos

static setSpecVersion ($version)
 
static getSpecVersion ()
 
static load ($input)
 
static dump ($array, $inline=2)
 

Atributos Protegidos Estáticos

static $spec = '1.2'
 

Descrição detalhada

Definido na linha 20 do ficheiro Yaml.php.

Documentação das funções

◆ dump()

static dump ( $array,
$inline = 2 )
static

Dumps a PHP array to a YAML string.

The dump method, when supplied with an array, will do its best to convert the array into friendly YAML.

Parâmetros
array$arrayPHP array
integer$inlineThe level where you switch to inline YAML
Retorna
string A YAML string representing the original PHP array

Definido na linha 115 do ficheiro Yaml.php.

◆ getSpecVersion()

static getSpecVersion ( )
static

Gets the YAML specification version to use.

Retorna
string The YAML specification version

Definido na linha 44 do ficheiro Yaml.php.

◆ load()

static load ( $input)
static

Loads YAML into a PHP array.

The load method, when supplied with a YAML stream (string or file), will do its best to convert YAML in a file into a PHP array.

Usage: $array = Yaml::load('config.yml'); print_r($array);

Parâmetros
string$inputPath of YAML file or string containing YAML
Retorna
array The YAML converted to a PHP array
Excepções

InvalidArgumentException If the YAML is not valid

Definido na linha 67 do ficheiro Yaml.php.

◆ setSpecVersion()

static setSpecVersion ( $version)
static

Sets the YAML specification version to use.

Parâmetros
string$versionThe YAML specification version

Definido na linha 29 do ficheiro Yaml.php.

Documentação dos campos e atributos

◆ $spec

$spec = '1.2'
staticprotected

Definido na linha 22 do ficheiro Yaml.php.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: