프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$currentLine | |||
$currentLineNb | |||
$lines | |||
$offset | |||
$refs | |||
$value |
메소드 | 설명 | |
---|---|---|
__construct ( $offset ) | Constructor | |
parse ( $value ) : mixed | Parses a YAML string to a PHP value. |
메소드 | 설명 | |
---|---|---|
cleanup ( $value ) : string | Cleanups a YAML string to be parsed. | |
getCurrentLineIndentation ( ) | Returns the current line indentation. | |
getNextEmbedBlock ( ) | Returns the next embed block of YAML. | |
getRealCurrentLineNb ( ) : integer | Returns the current line number (takes the offset into account). | |
isCurrentLineBlank ( ) : boolean | Returns true if the current line is blank. | |
isCurrentLineComment ( ) : boolean | Returns true if the current line is a comment line. | |
isCurrentLineEmpty ( ) : boolean | Returns true if the current line is blank or if it is a comment line. | |
isNextLineIndented ( ) : boolean | Returns true if the next line is indented. | |
moveToNextLine ( ) | Moves the parser to the next line. | |
moveToPreviousLine ( ) | Moves the parser to the previous line. | |
parseFoldedScalar ( $separator, $indicator = '', $indentation ) : string | Parses a folded scalar. | |
parseValue ( $value ) : mixed | Parses a YAML value. |
protected getCurrentLineIndentation ( ) |
protected getRealCurrentLineNb ( ) : integer | ||
리턴 | integer | The current line number |
protected isCurrentLineBlank ( ) : boolean | ||
리턴 | boolean | Returns true if the current line is blank, false otherwise |
protected isCurrentLineComment ( ) : boolean | ||
리턴 | boolean | Returns true if the current line is a comment line, false otherwise |
protected isCurrentLineEmpty ( ) : boolean | ||
리턴 | boolean | Returns true if the current line is empty or if it is a comment line, false otherwise |
protected isNextLineIndented ( ) : boolean | ||
리턴 | boolean | Returns true if the next line is indented, false otherwise |
protected moveToPreviousLine ( ) |
protected parseFoldedScalar ( $separator, $indicator = '', $indentation ) : string | ||
리턴 | string | The text value |
protected parseValue ( $value ) : mixed | ||
리턴 | mixed | A PHP value |