API17:JRegistry
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JRegistry
Defined in
libraries/joomla/registry/registry.php
Subpackage
Extends
Extended by
Methods
| Method name | Description |
|---|---|
| __clone | Magic function to clone the registry object. |
| __construct | Constructor. |
| __toString | Magic function to render this object as a string using default args of toString method. |
| def | Sets a default value if not alreay assigned. |
| exists | Check if a registry path exists. |
| get | Get a registry value. |
| getNameSpaces | Get the list of namespaces. |
| getValue | Get a registry value. |
| loadArray | Load a associative array of values into the default namespace. |
| loadFile | Load the contents of a file into the registry. |
| loadINI | Load an INI string into the registry into the given namespace [or default if a namespace is not given]. |
| loadJSON | Load an JSON string into the registry into the given namespace [or default if a namespace is not given]. |
| loadObject | Load the public variables of the object into the default namespace. |
| loadSetupFile | This method is added as an interim solution for API references in Joomla! 1.6 to the object where in 1.5 a object existed. |
| loadString | Load a string into the registry. |
| loadXML | Load an XML string into the registry into the given namespace [or default if a namespace is not given]. |
| makeNameSpace | Create a namespace. |
| merge | Merge a object into this one. |
| set | Set a registry value. |
| setValue | Set a registry value. |
| toArray | Transforms a namespace to an array. |
| toObject | Transforms a namespace to an object. |
| toString | Get a namespace in a given string format. |
| getInstance | Returns a reference to a global object, only creating it if it doesn't already exist. |
| asArray | Method to recursively convert an object of data to an array. |
| bindData | Method to recursively bind data to a parent object. |
Importing
jimport( 'joomla.registry.registry' );
See also
SeeAlso:JRegistry [Edit See Also]
Examples
<CodeExamplesForm />
