Class Xml
XML format handler for Registry.
-
Joomla\Registry\AbstractRegistryFormat
implements
Joomla\Registry\FormatInterface
-
Joomla\Registry\Format\Xml
Methods summary
public
string
|
#
objectToString( object $object, array $options = array() )
Converts an object into an XML formatted string.
- If more than two levels of nested groups are necessary, since INI is
not
useful, XML or another format should be used.
Converts an object into an XML formatted string.
- If more than two levels of nested groups are necessary, since INI is
not
useful, XML or another format should be used.
Parameters
- $object
object - $object Data source object.
- $options
array - $options Options used by the formatter.
Returns
string - XML formatted string.
Since
1.0
|
public
object
|
#
stringToObject( string $data, array $options = array() )
Parse a XML formatted string and convert it into an object.
Parse a XML formatted string and convert it into an object.
Parameters
- $data
string - $data XML formatted string to convert.
- $options
array - $options Options used by the formatter.
Returns
object - Data object.
Since
1.0
|
protected
mixed
|
#
getValueFromNode( object $node )
Method to get a PHP native value for a SimpleXMLElement object. -- called
recursively
Method to get a PHP native value for a SimpleXMLElement object. -- called
recursively
Parameters
- $node
object - $node SimpleXMLElement object for which to get the native value.
Returns
mixed - Native value of the SimpleXMLElement object.
Since
1.0
|
protected
|
#
getXmlChildren( SimpleXMLElement $node, object $var, string $nodeName )
Method to build a level of the XML string -- called recursively
Method to build a level of the XML string -- called recursively
Parameters
- $node
SimpleXMLElement - $node SimpleXMLElement object to attach children.
- $var
object - $var Object that represents a node of the XML document.
- $nodeName
string - $nodeName The name to use for node elements.
Since
1.0
|
getInstance()
Magic methods summary
Properties summary
$instances