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
string
The format to load
Response
\JRegistryFormat
Registry 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
object
SimpleXMLElement object for which to get the native value.
Response
mixed
Native 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
object
Object that represents a node of the XML document.- $nodeName
string
The 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
object
Data Source Object.- $options
array
An array of options for the formatter.
Response
string
Formatted string.
stringToObject
Converts a formatted string into an object.
stringToObject(string $data, array $options = null) : object
since |
11.1 |
---|
Arguments
- $data
string
Formatted string- $options
array
An array of options for the formatter.
Response
object
Data Object
Properties
instances
JRegistryFormat instances container.
since |
11.3 |
---|
Type(s)
array