API17

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>
{{Description:JRegistry}}
 
===Defined in===
 
libraries/joomla/registry/registry.php
 
===Subpackage===
 
[[Subpackage Registry/11.1|Registry]]
 
===Extends===
 
===Extended by===
 
* [[JParameter/11.1|JParameter]]
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JRegistry::__clone/11.1|__clone]]
+
|public
 +
|[[API17:JRegistry::__clone|__clone]]
 
|Magic function to clone the registry object.  
 
|Magic function to clone the registry object.  
 
|-
 
|-
|[[JRegistry::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JRegistry::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
|[[JRegistry::__toString/11.1|__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/11.1|def]]
+
|public
 +
|[[API17:JRegistry::def|def]]
 
|Sets a default value if not alreay assigned.  
 
|Sets a default value if not alreay assigned.  
 
|-
 
|-
|[[JRegistry::exists/11.1|exists]]
+
|public
 +
|[[API17:JRegistry::exists|exists]]
 
|Check if a registry path exists.  
 
|Check if a registry path exists.  
 
|-
 
|-
|[[JRegistry::get/11.1|get]]
+
|public
 +
|[[API17:JRegistry::get|get]]
 
|Get a registry value.  
 
|Get a registry value.  
 
|-
 
|-
|[[JRegistry::getNameSpaces/11.1|getNameSpaces]]
+
|public
 +
|[[API17:JRegistry::getNameSpaces|getNameSpaces]]
 
|Get the list of namespaces.  
 
|Get the list of namespaces.  
 
|-
 
|-
|[[JRegistry::getValue/11.1|getValue]]
+
|public
 +
|[[API17:JRegistry::getValue|getValue]]
 
|Get a registry value.  
 
|Get a registry value.  
 
|-
 
|-
|[[JRegistry::loadArray/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|loadString]]
+
|public
 +
|[[API17:JRegistry::loadString|loadString]]
 
|Load a string into the registry.  
 
|Load a string into the registry.  
 
|-
 
|-
|[[JRegistry::loadXML/11.1|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/11.1|makeNameSpace]]
+
|public
 +
|[[API17:JRegistry::makeNameSpace|makeNameSpace]]
 
|Create a namespace.  
 
|Create a namespace.  
 
|-
 
|-
|[[JRegistry::merge/11.1|merge]]
+
|public
 +
|[[API17:JRegistry::merge|merge]]
 
|Merge a  object into this one.  
 
|Merge a  object into this one.  
 
|-
 
|-
|[[JRegistry::set/11.1|set]]
+
|public
 +
|[[API17:JRegistry::set|set]]
 
|Set a registry value.  
 
|Set a registry value.  
 
|-
 
|-
|[[JRegistry::setValue/11.1|setValue]]
+
|public
 +
|[[API17:JRegistry::setValue|setValue]]
 
|Set a registry value.  
 
|Set a registry value.  
 
|-
 
|-
|[[JRegistry::toArray/11.1|toArray]]
+
|public
 +
|[[API17:JRegistry::toArray|toArray]]
 
|Transforms a namespace to an array.  
 
|Transforms a namespace to an array.  
 
|-
 
|-
|[[JRegistry::toObject/11.1|toObject]]
+
|public
 +
|[[API17:JRegistry::toObject|toObject]]
 
|Transforms a namespace to an object.  
 
|Transforms a namespace to an object.  
 
|-
 
|-
|[[JRegistry::toString/11.1|toString]]
+
|public
 +
|[[API17:JRegistry::toString|toString]]
 
|Get a namespace in a given string format.  
 
|Get a namespace in a given string format.  
 
|-
 
|-
|[[JRegistry::getInstance/11.1|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/11.1|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/11.1|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 this class]]
+
* {{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>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 112: Line 139:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRegistry]]</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.

Joomla 11.1 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]

Template:SeeAlso:JRegistry [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />