Xml
Implements FormatInterfaceXML format handler for Registry.
since |
1.0.0 |
---|---|
package |
Joomla Framework |
Methods
getValueFromNode
Method to get a PHP native value for a SimpleXMLElement object. -- called recursively
getValueFromNode(object node) : mixed
since |
1.0.0 |
---|
Arguments
- node
object
SimpleXMLElement object for which to get the native value.
Response
mixed
Native value of the SimpleXMLElement object.
getXmlChildren
Method to build a level of the XML string -- called recursively
getXmlChildren(\SimpleXMLElement node, object var, string nodeName) : void
since |
1.0.0 |
---|
Arguments
- node
\SimpleXMLElement
SimpleXMLElement object to attach children.- var
object
Object that represents a node of the XML document.- nodeName
string
The name to use for node elements.
objectToString
Converts an object into an XML formatted string.
objectToString(object object, array options = []) : string
- If more than two levels of nested groups are necessary, since INI is not useful, XML or another format should be used.
since |
1.0.0 |
---|
Arguments
- object
object
Data source object.- options
array
Options used by the formatter.
Response
string
XML formatted string.
stringToObject
Parse a XML formatted string and convert it into an object.
stringToObject(string data, array options = []) : object
since |
1.0.0 |
---|
Arguments
- data
string
XML formatted string to convert.- options
array
Options used by the formatter.
Response
object
Data object.