Propel API
Class

sfYamlParser

class sfYamlParser

sfYamlParser parses YAML strings to convert them to PHP arrays.

Methods

__construct(integer $offset)

Constructor

mixed parse(string $value)

Parses a YAML string to a PHP value.

Details

at line 40
public __construct(integer $offset)

Constructor

Parameters

integer $offset The offset of YAML document (used for line numbers in error messages)

at line 54
public mixed parse(string $value)

Parses a YAML string to a PHP value.

Parameters

string $value A YAML string

Return Value

mixed A PHP value

Exceptions

InvalidArgumentException If the YAML is not valid