class PropelYAMLParser extends PropelParser
YAML parser.
Converts data between associative array and YAML formats
Methods
| string | fromArray(array $array) Converts data from an associative array to YAML. | |
| array | toArray(string $data) Converts data from YAML to an associative array. | |
| listFromArray($data) | from PropelParser | |
| listToArray($data) | from PropelParser | |
| string | load(string $path) Loads data from a file. | from PropelParser | 
| dump(string $data, string $path = null) Dumps data to a file, or to STDOUT if no filename is given | from PropelParser | |
| static PropelParser | getParser(string $type = 'XML') Factory for getting an instance of a subclass of PropelParser | from PropelParser | 
| string | toYAML(array $array) Alias for PropelYAMLParser::fromArray() | |
| array | fromYAML(string $data) Alias for PropelYAMLParser::toArray() | 
Details
        at line 30
                    public            string
    fromArray(array $array)
    
    Converts data from an associative array to YAML.
        at line 52
                    public            array
    toArray(string $data)
    
    Converts data from YAML to an associative array.
        in PropelParser at line 40
                    public            
    listFromArray($data)
    
    
        in PropelParser at line 45
                    public            
    listToArray($data)
    
    
        in PropelParser at line 57
                    public            string
    load(string $path)
    
    Loads data from a file.
Executes PHP code blocks in the file.
        in PropelParser at line 75
                    public            
    dump(string $data, string $path = null)
    
    Dumps data to a file, or to STDOUT if no filename is given
        in PropelParser at line 91
                static    public            PropelParser
    getParser(string $type = 'XML')
    
    Factory for getting an instance of a subclass of PropelParser
        at line 41
                    public            string
    toYAML(array $array)
    
    Alias for PropelYAMLParser::fromArray()
        at line 63
                    public            array
    fromYAML(string $data)
    
    Alias for PropelYAMLParser::toArray()