sfYamlInline implements a YAML parser/dumper for the YAML inline syntax.
Method Summary
-
string
dump($value)
Dumps a given PHP variable to a YAML string.
-
string
dumpArray($value)
Dumps a PHP array to a YAML string.
-
string
evaluateScalar($scalar)
Evaluates scalars and replaces magic values.
-
getTimestampRegex()
-
array
load($value)
Convert a YAML string to a PHP array.
-
string
parseMapping($mapping, $i)
Parses a mapping to a YAML string.
-
string
parseQuotedScalar($scalar, $i)
Parses a quoted scalar to YAML.
-
string
parseScalar($scalar, $delimiters, $stringDelimiter, $i, $evaluate)
Parses a scalar to a YAML string.
-
string
parseSequence($sequence, $i)
Parses a sequence to a YAML string.
Method Details
-
(string) dump ($value)
Browse code
| $value |
The PHP variable to convert |
Dumps a given PHP variable to a YAML string.
returns The YAML string representing the PHP array
-
(string) dumpArray ($value)
Browse code
| $value |
The PHP array to dump |
Dumps a PHP array to a YAML string.
returns The YAML string representing the PHP array
-
(string) evaluateScalar ($scalar)
Browse code
Evaluates scalars and replaces magic values.
returns A YAML string
-
-
Convert a YAML string to a PHP array.
returns A PHP array representing the YAML string
-
(string) parseMapping ($mapping, $i)
Browse code
Parses a mapping to a YAML string.
returns A YAML string
-
(string) parseQuotedScalar ($scalar, $i)
Browse code
Parses a quoted scalar to YAML.
returns A YAML string
-
(string) parseScalar ($scalar, $delimiters, $stringDelimiter, $i, $evaluate)
Browse code
Parses a scalar to a YAML string.
returns A YAML string
-
(string) parseSequence ($sequence, $i)
Browse code
Parses a sequence to a YAML string.
returns A YAML string
|