Propel API
Class

sfYamlInline

class sfYamlInline

sfYamlInline implements a YAML parser/dumper for the YAML inline syntax.

Constants

REGEX_QUOTED_STRING

Methods

static array load(string $value)

Convert a YAML string to a PHP array.

static string dump(mixed $value)

Dumps a given PHP variable to a YAML string.

static string parseScalar($scalar, $delimiters = null, $stringDelimiters = array('"', '\''), $i, $evaluate = true)

Parses a scalar to a YAML string.

Details

at line 32
static public array load(string $value)

Convert a YAML string to a PHP array.

Parameters

string $value A YAML string

Return Value

array A PHP array representing the YAML string

at line 74
static public string dump(mixed $value)

Dumps a given PHP variable to a YAML string.

Parameters

mixed $value The PHP variable to convert

Return Value

string The YAML string representing the PHP array

at line 170
static public string parseScalar($scalar, $delimiters = null, $stringDelimiters = array('"', '\''), $i, $evaluate = true)

Parses a scalar to a YAML string.

Parameters

$scalar
$delimiters
$stringDelimiters
$i
$evaluate

Return Value

string A YAML string