1.0 Doctrine_Parser_YamlSf_Parser
Doctrine Parser YamlSf Parser
YamlSfParser class.
Method Summary
| Returns | Name | Description |
|---|---|---|
| string | cleanup | |
| integer | getCurrentLineIndentation | |
| getNextEmbedBlock | ||
| integer | getRealCurrentLineNb | |
| Boolean | isCurrentLineBlank | |
| Boolean | isCurrentLineComment | |
| Boolean | isCurrentLineEmpty | |
| Boolean | isNextLineIndented | |
| moveToNextLine | ||
| moveToPreviousLine | ||
| mixed | parse | |
| string | parseFoldedScalar | |
| mixed | parseValue | |
| __construct |
Method Details
-
$value The input YAML string (string) cleanup($value)
Cleanups a YAML string to be parsed.
Doctrine_Parser_YamlSf_Parser
-
(integer) getCurrentLineIndentation()
Returns the current line indentation.
Doctrine_Parser_YamlSf_Parser
-
0 A YAML string getNextEmbedBlock(0)
Returns the next embed block of YAML.
-
(integer) getRealCurrentLineNb()
Returns the current line number (takes the offset into account).
Doctrine_Parser_YamlSf_Parser
-
(Boolean) isCurrentLineBlank()
Returns true if the current line is blank.
Doctrine_Parser_YamlSf_Parser
-
(Boolean) isCurrentLineComment()
Returns true if the current line is a comment line.
Doctrine_Parser_YamlSf_Parser
-
(Boolean) isCurrentLineEmpty()
Returns true if the current line is blank or if it is a comment line.
Doctrine_Parser_YamlSf_Parser
-
(Boolean) isNextLineIndented()
Returns true if the next line is indented.
Doctrine_Parser_YamlSf_Parser
-
moveToNextLine()
Moves the parser to the next line.
-
moveToPreviousLine()
Moves the parser to the previous line.
-
$value A YAML string (mixed) parse($value)
Parses a YAML string to a PHP value.
Doctrine_Parser_YamlSf_Parser
-
$separator The separator that was used to begin this folded scalar (| or >) $indicator The indicator that was used to begin this folded scalar (+ or -) $indentation The indentation that was used to begin this folded scalar (string) parseFoldedScalar($separator, $indicator = '', $indentation)
Parses a folded scalar.
Doctrine_Parser_YamlSf_Parser
-
$value A YAML value (mixed) parseValue($value)
Parses a YAML value.
Doctrine_Parser_YamlSf_Parser
-
$offset The offset of YAML document (used for line numbers in error messages) __construct($offset)
Constructor