JRegistry
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JRegistry
Defined in[edit]
libraries/joomla/registry/registry.php
- see source code in BitBucket
Subpackage[edit]
Extends[edit]
Extended by[edit]
Methods[edit]
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[edit]
jimport( 'joomla.registry.registry' );
See also[edit]
- JRegistry source code in BitBucket
- Other versions of this class
Template:SeeAlso:JRegistry [Edit See Also]
Examples[edit]
<CodeExamplesForm />