Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Xml
+ Graphe d'héritage de Xml:

Fonctions membres publiques

 objectToString ($object, $options=array())
 
 stringToObject ($data, array $options=array())
 

Fonctions membres protégées

 getValueFromNode ($node)
 
 getXmlChildren (SimpleXMLElement $node, $var, $nodeName)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de AbstractRegistryFormat
static getInstance ($type, array $options=array())
 
- Attributs protégés statiques hérités de AbstractRegistryFormat
static $instances = array()
 

Description détaillée

XML format handler for Registry.

Depuis
1.0

Documentation des fonctions membres

◆ getValueFromNode()

getValueFromNode (   $node)
protected

Method to get a PHP native value for a SimpleXMLElement object. – called recursively

Paramètres
object$nodeSimpleXMLElement object for which to get the native value.
Renvoie
mixed Native value of the SimpleXMLElement object.
Depuis
1.0

Références $value.

Référencé par Xml\stringToObject().

◆ getXmlChildren()

getXmlChildren ( SimpleXMLElement  $node,
  $var,
  $nodeName 
)
protected

Method to build a level of the XML string – called recursively

Paramètres
SimpleXMLElement$nodeSimpleXMLElement object to attach children.
object$varObject that represents a node of the XML document.
string$nodeNameThe name to use for node elements.
Renvoie
void
Depuis
1.0

Références $n.

Référencé par Xml\objectToString().

◆ objectToString()

objectToString (   $object,
  $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.
Paramètres
object$objectData source object.
array$optionsOptions used by the formatter.
Renvoie
string XML formatted string.
Depuis
1.0

Implémente FormatInterface.

Références $options, $root, et Xml\getXmlChildren().

◆ stringToObject()

stringToObject (   $data,
array  $options = array() 
)

Parse a XML formatted string and convert it into an object.

Paramètres
string$dataXML formatted string to convert.
array$optionsOptions used by the formatter.
Renvoie
object Data object.
Depuis
1.0

Implémente FormatInterface.

Références $data, et Xml\getValueFromNode().


La documentation de cette classe a été générée à partir du fichier suivant :