Method |
Description |
|
__load ( $input ) |
LOADING FUNCTIONS |
|
__loadString ( $input ) |
|
|
_doFolding ( $value, $indent ) : string |
Folds a string of text, if necessary |
|
_doLiteralBlock ( $value, $indent ) : string |
Creates a literal block for dumping |
|
_dumpNode ( $key, $value, $indent, $previous_key, $first_key, $source_array = null ) : string |
Returns YAML from a key and a value |
|
_inlineEscape ( $inline ) : array |
Used in inlines to check for more inlines or quoted strings |
|
_parseLine ( string $line ) : array |
Parses YAML code and returns an array for a node |
|
_toType ( string $value ) : mixed |
Finds the type of the passed value, returns the value as the new type. |
|
_yamlize ( $key, $value, $indent, $previous_key, $first_key, $source_array = null ) : string |
Attempts to convert a key / value array item to YAML |
|
_yamlizeArray ( $array, $indent ) : string |
Attempts to convert an array to YAML |
|
addArray ( $incoming_data, $incoming_indent ) |
|
|
addArrayInline ( $array, $indent ) |
|
|
addGroup ( $line, $group ) |
|
|
addLiteralLine ( $literalBlock, $line, $literalBlockStyle, $indent ) |
|
|
checkKeysInValue ( $value ) |
|
|
clearBiggerPathValues ( $indent ) |
|
|
coerceValue ( &$value ) |
Coerce a string into a native type
Reference: http://yaml.org/type/bool.html
TODO: Use only words from the YAML spec. |
|
getParentPathByIndent ( $indent ) |
|
|
getTranslations ( array $words ) |
Given a set of words, perform the appropriate translations on them to
match the YAML 1.1 specification for type coercing. |
|
greedilyNeedNextLine ( $line ) |
|
|
isArrayElement ( $line ) |
|
|
isComment ( $line ) |
|
|
isEmpty ( $line ) |
|
|
isFalseWord ( $value ) |
|
|
isHashElement ( $line ) |
|
|
isLiteral ( $line ) |
|
|
isNullWord ( $value ) |
|
|
isPlainArray ( $line ) |
|
|
isTranslationWord ( $value ) |
|
|
isTrueWord ( $value ) |
|
|
literalBlockContinues ( $line, $lineIndent ) |
|
|
loadFromSource ( $input ) |
|
|
loadFromString ( $input ) |
|
|
loadWithSource ( $Source ) |
|
|
nodeContainsGroup ( $line ) |
|
|
referenceContentsByAlias ( $alias ) |
|
|
returnArrayElement ( $line ) |
|
|
returnKeyValuePair ( $line ) |
|
|
returnMappedSequence ( $line ) |
|
|
returnMappedValue ( $line ) |
|
|
returnPlainArray ( $line ) |
|
|
startsLiteralBlock ( $line ) |
|
|
startsMappedSequence ( $line ) |
|
|
startsMappedValue ( $line ) |
|
|
stripGroup ( $line, $group ) |
|
|
stripIndent ( $line, $indent ) |
|
|
unquote ( $value ) |
|
|