class JRegistryFormatXML extends JRegistryFormat


Located at : UKNOWVA_ROOT/libraries/joomla/registry/format/xml.php

XML format handler for JRegistry.

Methods

static object
getInstance(string $type)

Returns a reference to a Format object, only creating it if it doesn't already exist.

string
objectToString(object $object, array $options = array())

Converts an object into an XML formatted string.

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

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

Details

in JRegistryFormat at line 32
static object getInstance(string $type)

Returns a reference to a Format object, only creating it if it doesn't already exist.

Parameters

string $type The format to load

Return Value

object Registry format handler

Exceptions

JException

at line 33
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.

Parameters

object $object Data Source Object.
array $options An array of options for the formatter.

Return Value

string Formatted string.

at line 71
object stringToObject(string $data, array $options = array())

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

Parameters

string $data Formatted string
array $options An array of options for the formatter.

Return Value

object Data Object