JRegistryFormatXML
Extends \JRegistryFormatXML format handler for JRegistry.
| package |
Joomla.Platform |
|---|---|
| subpackage |
Registry |
| since |
11.1 |
Methods
getInstance
Returns a reference to a Format object, only creating it if it doesn't already exist.
getInstance(string $type) : \JRegistryFormat
| since |
11.1 |
|---|---|
| throws |
|
Arguments
- $type
stringThe format to load
Response
\JRegistryFormatRegistry format handler
getValueFromNode
Method to get a PHP native value for a SimpleXMLElement object. -- called recursively
getValueFromNode(object $node) : mixed
| since |
11.1 |
|---|
Arguments
- $node
objectSimpleXMLElement object for which to get the native value.
Response
mixedNative value of the SimpleXMLElement object.
getXmlChildren
Method to build a level of the XML string -- called recursively
getXmlChildren( &$node, object $var, string $nodeName) : void
| since |
11.1 |
|---|
Arguments
- $node
- $var
objectObject that represents a node of the XML document.- $nodeName
stringThe name to use for node elements.
objectToString
Converts an object into a formatted string.
objectToString(object $object, array $options = null) : string
| since |
11.1 |
|---|
Arguments
- $object
objectData Source Object.- $options
arrayAn array of options for the formatter.
Response
stringFormatted string.
stringToObject
Converts a formatted string into an object.
stringToObject(string $data, array $options = null) : object
| since |
11.1 |
|---|
Arguments
- $data
stringFormatted string- $options
arrayAn array of options for the formatter.
Response
objectData Object
Properties
instances
JRegistryFormat instances container.
| since |
11.3 |
|---|
Type(s)
array