Class: atkYAML
Source Location: /utils/class.atkyaml.inc
Class atkYAML
Method Summary
| static
string
|
dump() |
Convert an array to it's YAML string representation. |
| static
array
|
load() |
Convert an YAML string representation to an array. |
| void |
node() |
Create a YAML node string for the given key and value at the given indent level. |
Methods
static string dump(
array
$array
)
|
|
Convert an array to it's YAML string representation.
Parameters:
API Tags:
| Return: | YAML string representation |
static array load(
string
$string
)
|
|
Convert an YAML string representation to an array.
Parameters:
|
string |
$string: |
the YAML string |
API Tags:
void node(
string
$key, mixed
$value, [int
$indent = 0]
)
|
|
Create a YAML node string for the given key and value at the given indent level.
Parameters:
|
string |
$key: |
The name of the key |
|
mixed |
$value: |
The value of the item |
|
int |
$indent: |
The indent of the current node |