Difference between revisions of "JRegistry"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (moving preparation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JRegistry== | ||
+ | ===Description=== | ||
+ | {{Description:JRegistry}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JRegistry|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRegistry|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JRegistry::__clone | + | |public |
+ | |[[API17:JRegistry::__clone|__clone]] | ||
|Magic function to clone the registry object. | |Magic function to clone the registry object. | ||
|- | |- | ||
− | |[[JRegistry::__construct | + | |public |
+ | |[[API17:JRegistry::__construct|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
− | |[[JRegistry::__toString | + | |public |
+ | |[[API17:JRegistry::__toString|__toString]] | ||
|Magic function to render this object as a string using default args of toString method. | |Magic function to render this object as a string using default args of toString method. | ||
|- | |- | ||
− | |[[JRegistry::def | + | |public |
+ | |[[API17:JRegistry::def|def]] | ||
|Sets a default value if not alreay assigned. | |Sets a default value if not alreay assigned. | ||
|- | |- | ||
− | |[[JRegistry::exists | + | |public |
+ | |[[API17:JRegistry::exists|exists]] | ||
|Check if a registry path exists. | |Check if a registry path exists. | ||
|- | |- | ||
− | |[[JRegistry::get | + | |public |
+ | |[[API17:JRegistry::get|get]] | ||
|Get a registry value. | |Get a registry value. | ||
|- | |- | ||
− | |[[JRegistry::getNameSpaces | + | |public |
+ | |[[API17:JRegistry::getNameSpaces|getNameSpaces]] | ||
|Get the list of namespaces. | |Get the list of namespaces. | ||
|- | |- | ||
− | |[[JRegistry::getValue | + | |public |
+ | |[[API17:JRegistry::getValue|getValue]] | ||
|Get a registry value. | |Get a registry value. | ||
|- | |- | ||
− | |[[JRegistry::loadArray | + | |public |
+ | |[[API17:JRegistry::loadArray|loadArray]] | ||
|Load a associative array of values into the default namespace. | |Load a associative array of values into the default namespace. | ||
|- | |- | ||
− | |[[JRegistry::loadFile | + | |public |
+ | |[[API17:JRegistry::loadFile|loadFile]] | ||
|Load the contents of a file into the registry. | |Load the contents of a file into the registry. | ||
|- | |- | ||
− | |[[JRegistry::loadINI | + | |public |
+ | |[[API17:JRegistry::loadINI|loadINI]] | ||
|Load an INI string into the registry into the given namespace [or default if a namespace is not given]. | |Load an INI string into the registry into the given namespace [or default if a namespace is not given]. | ||
|- | |- | ||
− | |[[JRegistry::loadJSON | + | |public |
+ | |[[API17:JRegistry::loadJSON|loadJSON]] | ||
|Load an JSON string into the registry into the given namespace [or default if a namespace is not given]. | |Load an JSON string into the registry into the given namespace [or default if a namespace is not given]. | ||
|- | |- | ||
− | |[[JRegistry::loadObject | + | |public |
+ | |[[API17:JRegistry::loadObject|loadObject]] | ||
|Load the public variables of the object into the default namespace. | |Load the public variables of the object into the default namespace. | ||
|- | |- | ||
− | |[[JRegistry::loadSetupFile | + | |public |
+ | |[[API17:JRegistry::loadSetupFile|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. | |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. | ||
|- | |- | ||
− | |[[JRegistry::loadString | + | |public |
+ | |[[API17:JRegistry::loadString|loadString]] | ||
|Load a string into the registry. | |Load a string into the registry. | ||
|- | |- | ||
− | |[[JRegistry::loadXML | + | |public |
+ | |[[API17:JRegistry::loadXML|loadXML]] | ||
|Load an XML string into the registry into the given namespace [or default if a namespace is not given]. | |Load an XML string into the registry into the given namespace [or default if a namespace is not given]. | ||
|- | |- | ||
− | |[[JRegistry::makeNameSpace | + | |public |
+ | |[[API17:JRegistry::makeNameSpace|makeNameSpace]] | ||
|Create a namespace. | |Create a namespace. | ||
|- | |- | ||
− | |[[JRegistry::merge | + | |public |
+ | |[[API17:JRegistry::merge|merge]] | ||
|Merge a object into this one. | |Merge a object into this one. | ||
|- | |- | ||
− | |[[JRegistry::set | + | |public |
+ | |[[API17:JRegistry::set|set]] | ||
|Set a registry value. | |Set a registry value. | ||
|- | |- | ||
− | |[[JRegistry::setValue | + | |public |
+ | |[[API17:JRegistry::setValue|setValue]] | ||
|Set a registry value. | |Set a registry value. | ||
|- | |- | ||
− | |[[JRegistry::toArray | + | |public |
+ | |[[API17:JRegistry::toArray|toArray]] | ||
|Transforms a namespace to an array. | |Transforms a namespace to an array. | ||
|- | |- | ||
− | |[[JRegistry::toObject | + | |public |
+ | |[[API17:JRegistry::toObject|toObject]] | ||
|Transforms a namespace to an object. | |Transforms a namespace to an object. | ||
|- | |- | ||
− | |[[JRegistry::toString | + | |public |
+ | |[[API17:JRegistry::toString|toString]] | ||
|Get a namespace in a given string format. | |Get a namespace in a given string format. | ||
|- | |- | ||
− | |[[JRegistry::getInstance | + | |public static |
+ | |[[API17:JRegistry::getInstance|getInstance]] | ||
|Returns a reference to a global object, only creating it if it doesn't already exist. | |Returns a reference to a global object, only creating it if it doesn't already exist. | ||
|- | |- | ||
− | |[[JRegistry::asArray | + | |protected |
+ | |[[API17:JRegistry::asArray|asArray]] | ||
|Method to recursively convert an object of data to an array. | |Method to recursively convert an object of data to an array. | ||
|- | |- | ||
− | |[[JRegistry::bindData | + | |protected |
+ | |[[API17:JRegistry::bindData|bindData]] | ||
|Method to recursively bind data to a parent object. | |Method to recursively bind data to a parent object. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/registry/registry.php | ||
+ | * '''Extended by''' | ||
+ | ** [[API17:JParameter|JParameter]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.registry.registry' );</source> | <source lang="php">jimport( 'joomla.registry.registry' );</source> | ||
===See also=== | ===See also=== | ||
− | * [[JRegistry|Other versions of | + | * {{JVer|11.1}} '''JRegistry source code''' on [[jplatform:registry/registry.php|BitBucket]] |
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Registry|Registry]] | ||
+ | * [[API17:JRegistry|Other versions of JRegistry]] | ||
{{SeeAlso:JRegistry}} | {{SeeAlso:JRegistry}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JRegistry|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JRegistry|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 112: | Line 139: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:21, 11 May 2013
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.
JRegistry[edit]
Description[edit]
Template:Description:JRegistry [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __clone | Magic function to clone the registry object. |
public | __construct | Constructor. |
public | __toString | Magic function to render this object as a string using default args of toString method. |
public | def | Sets a default value if not alreay assigned. |
public | exists | Check if a registry path exists. |
public | get | Get a registry value. |
public | getNameSpaces | Get the list of namespaces. |
public | getValue | Get a registry value. |
public | loadArray | Load a associative array of values into the default namespace. |
public | loadFile | Load the contents of a file into the registry. |
public | loadINI | Load an INI string into the registry into the given namespace [or default if a namespace is not given]. |
public | loadJSON | Load an JSON string into the registry into the given namespace [or default if a namespace is not given]. |
public | loadObject | Load the public variables of the object into the default namespace. |
public | 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. |
public | loadString | Load a string into the registry. |
public | loadXML | Load an XML string into the registry into the given namespace [or default if a namespace is not given]. |
public | makeNameSpace | Create a namespace. |
public | merge | Merge a object into this one. |
public | set | Set a registry value. |
public | setValue | Set a registry value. |
public | toArray | Transforms a namespace to an array. |
public | toObject | Transforms a namespace to an object. |
public | toString | Get a namespace in a given string format. |
public static | getInstance | Returns a reference to a global object, only creating it if it doesn't already exist. |
protected | asArray | Method to recursively convert an object of data to an array. |
protected | bindData | Method to recursively bind data to a parent object. |
- Defined in libraries/joomla/registry/registry.php
- Extended by
Importing[edit]
jimport( 'joomla.registry.registry' );
See also[edit]
- JRegistry source code on BitBucket
- Subpackage Registry
- Other versions of JRegistry
Template:SeeAlso:JRegistry [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />