|
MIOLO20
|
Membros públicos | |
| __construct ($offset=0) | |
| parse ($value) | |
Membros protegidos | |
| getRealCurrentLineNb () | |
| getCurrentLineIndentation () | |
| getNextEmbedBlock ($indentation=null) | |
| moveToNextLine () | |
| moveToPreviousLine () | |
| parseValue ($value) | |
| parseFoldedScalar ($separator, $indicator='', $indentation=0) | |
| isNextLineIndented () | |
| isCurrentLineEmpty () | |
| isCurrentLineBlank () | |
| isCurrentLineComment () | |
| cleanup ($value) | |
Atributos Protegidos | |
| $offset = 0 | |
| $lines = array() | |
| $currentLineNb = -1 | |
| $currentLine = '' | |
| $refs = array() | |
Definido na linha 20 do ficheiro Parser.php.
| __construct | ( | $offset = 0 | ) |
Constructor
| integer | $offset | The offset of YAML document (used for line numbers in error messages) |
Definido na linha 33 do ficheiro Parser.php.
|
protected |
Cleanups a YAML string to be parsed.
| string | $value | The input YAML string |
Definido na linha 562 do ficheiro Parser.php.
|
protected |
Returns the current line indentation.
Definido na linha 274 do ficheiro Parser.php.
|
protected |
Returns the next embed block of YAML.
| integer | $indentation | The indent level at which the block is to be read, or null for default |
Definido na linha 286 do ficheiro Parser.php.
|
protected |
Returns the current line number (takes the offset into account).
Definido na linha 264 do ficheiro Parser.php.
|
protected |
Returns true if the current line is blank.
Definido na linha 538 do ficheiro Parser.php.
|
protected |
Returns true if the current line is a comment line.
Definido na linha 548 do ficheiro Parser.php.
|
protected |
Returns true if the current line is blank or if it is a comment line.
Definido na linha 528 do ficheiro Parser.php.
|
protected |
Returns true if the next line is indented.
Definido na linha 497 do ficheiro Parser.php.
|
protected |
Moves the parser to the next line.
Definido na linha 347 do ficheiro Parser.php.
|
protected |
Moves the parser to the previous line.
Definido na linha 362 do ficheiro Parser.php.
| parse | ( | $value | ) |
Parses a YAML string to a PHP value.
| string | $value | A YAML string |
InvalidArgumentException If the YAML is not valid
Definido na linha 47 do ficheiro Parser.php.
|
protected |
Parses a folded scalar.
| string | $separator | The separator that was used to begin this folded scalar (| or >) |
| string | $indicator | The indicator that was used to begin this folded scalar (+ or -) |
| integer | $indentation | The indentation that was used to begin this folded scalar |
Definido na linha 415 do ficheiro Parser.php.
|
protected |
Parses a YAML value.
| string | $value | A YAML value |
Definido na linha 374 do ficheiro Parser.php.
|
protected |
Definido na linha 25 do ficheiro Parser.php.
|
protected |
Definido na linha 24 do ficheiro Parser.php.
|
protected |
Definido na linha 23 do ficheiro Parser.php.
|
protected |
Definido na linha 22 do ficheiro Parser.php.
|
protected |
Definido na linha 26 do ficheiro Parser.php.