Yaml
Implements FormatInterfaceYAML format handler for Registry.
since |
1.0.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Construct to set up the parser and dumper
__construct() : mixed
since |
1.0.0 |
---|
Response
mixed
objectToString
Converts an object into a YAML formatted string.
objectToString(object|array object, array options = []) : string
We use json_* to convert the passed object to an array.
since |
1.0.0 |
---|
Arguments
- object
object|array
Data source object.- options
array
Options used by the formatter.
Response
string
YAML formatted string.
stringToObject
Parse a YAML formatted string and convert it into an object.
stringToObject(string data, array options = []) : object
We use the json_* methods to convert the parsed YAML array to an object.
since |
1.0.0 |
---|
Arguments
- data
string
YAML formatted string to convert.- options
array
Options used by the formatter.
Response
object
Data object.
Properties
parser
The YAML parser class.
since |
1.0.0 |
---|
Type(s)
\Symfony\Component\Yaml\Parser
dumper
The YAML dumper class.
since |
1.0.0 |
---|
Type(s)
\Symfony\Component\Yaml\Dumper