Definido na linha 20 do ficheiro Yaml.php.
◆ 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 | $array | PHP array |
integer | $inline | The 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()
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 | $input | Path 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 | $version | The YAML specification version |
Definido na linha 29 do ficheiro Yaml.php.
◆ $spec
A documentação para esta classe foi gerada a partir do seguinte ficheiro:
- /var/docker/solisge-devel/www/solisge/miolo20/classes/extensions/doctrine-dbal/Doctrine/Symfony/Component/Yaml/Yaml.php