Difference between revisions of "JRegistry"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Layout updates) |
||
Line 6: | Line 6: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/registry/registry.php | libraries/joomla/registry/registry.php | ||
+ | * see source code in [[jplatform:registry/registry.php|BitBucket]] | ||
===Subpackage=== | ===Subpackage=== | ||
[[Subpackage Registry/11.1|Registry]] | [[Subpackage Registry/11.1|Registry]] | ||
Line 99: | Line 100: | ||
<source lang="php">jimport( 'joomla.registry.registry' );</source> | <source lang="php">jimport( 'joomla.registry.registry' );</source> | ||
===See also=== | ===See also=== | ||
+ | * JRegistry source code in [[jplatform:registry/registry.php|BitBucket]] | ||
* [[JRegistry|Other versions of this class]] | * [[JRegistry|Other versions of this class]] | ||
{{SeeAlso:JRegistry}} | {{SeeAlso:JRegistry}} |
Revision as of 18:01, 23 April 2011
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 />