Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
objectToString ($object, array $options=[]) | |
stringToObject ($data, array $options=[]) | |
Fonctions membres protégées | |
getValueFromNode ($node) | |
getXmlChildren (SimpleXMLElement $node, $var, $nodeName) | |
XML format handler for Registry.
|
protected |
Method to get a PHP native value for a SimpleXMLElement object. – called recursively
object | $node | SimpleXMLElement object for which to get the native value. |
Références $value.
Référencé par Xml\stringToObject().
|
protected |
Method to build a level of the XML string – called recursively
SimpleXMLElement | $node | SimpleXMLElement object to attach children. |
object | $var | Object that represents a node of the XML document. |
string | $nodeName | The name to use for node elements. |
Références $n.
Référencé par Xml\objectToString().
objectToString | ( | $object, | |
array | $options = [] |
||
) |
Converts an object into an XML formatted string.
object | $object | Data source object. |
array | $options | Options used by the formatter. |
Implémente FormatInterface.
Références $options, $root, et Xml\getXmlChildren().
stringToObject | ( | $data, | |
array | $options = [] |
||
) |
Parse a XML formatted string and convert it into an object.
string | $data | XML formatted string to convert. |
array | $options | Options used by the formatter. |
Implémente FormatInterface.
Références $data, $xml, et Xml\getValueFromNode().