JRegistry/1.5

From Joomla! Documentation
< JRegistry(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
(Layout updates)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} 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/1.5|Registry]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
* [[JParameter/1.5|JParameter]]
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JRegistry::__clone/1.5|__clone]]
 
|[[JRegistry::__clone/1.5|__clone]]
 
|
 
|
 
|-
 
|-
 +
|public
 
|[[JRegistry::__construct/1.5|__construct]]
 
|[[JRegistry::__construct/1.5|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::getNameSpaces/1.5|getNameSpaces]]
 
|[[JRegistry::getNameSpaces/1.5|getNameSpaces]]
 
|Get the list of namespaces.  
 
|Get the list of namespaces.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::getValue/1.5|getValue]]
 
|[[JRegistry::getValue/1.5|getValue]]
 
|Get a registry value.  
 
|Get a registry value.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::loadArray/1.5|loadArray]]
 
|[[JRegistry::loadArray/1.5|loadArray]]
 
|Load a associative array of values into the default namespace.  
 
|Load a associative array of values into the default namespace.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::loadFile/1.5|loadFile]]
 
|[[JRegistry::loadFile/1.5|loadFile]]
 
|Load the contents of a file into the registry.  
 
|Load the contents of a file into the registry.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::loadINI/1.5|loadINI]]
 
|[[JRegistry::loadINI/1.5|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].  
 
|-
 
|-
 +
|public
 
|[[JRegistry::loadObject/1.5|loadObject]]
 
|[[JRegistry::loadObject/1.5|loadObject]]
 
|Load the public variables of the object into the default namespace.  
 
|Load the public variables of the object into the default namespace.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::loadXML/1.5|loadXML]]
 
|[[JRegistry::loadXML/1.5|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].  
 
|-
 
|-
 +
|public
 
|[[JRegistry::makeNameSpace/1.5|makeNameSpace]]
 
|[[JRegistry::makeNameSpace/1.5|makeNameSpace]]
 
|Create a namespace.  
 
|Create a namespace.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::merge/1.5|merge]]
 
|[[JRegistry::merge/1.5|merge]]
 
|Merge a  object into this one.  
 
|Merge a  object into this one.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::setValue/1.5|setValue]]
 
|[[JRegistry::setValue/1.5|setValue]]
 
|Set a registry value.  
 
|Set a registry value.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::toArray/1.5|toArray]]
 
|[[JRegistry::toArray/1.5|toArray]]
 
|Transforms a namespace to an array.  
 
|Transforms a namespace to an array.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::toObject/1.5|toObject]]
 
|[[JRegistry::toObject/1.5|toObject]]
 
|Transforms a namespace to an object.  
 
|Transforms a namespace to an object.  
 
|-
 
|-
 +
|public
 
|[[JRegistry::toString/1.5|toString]]
 
|[[JRegistry::toString/1.5|toString]]
 
|Get a namespace in a given string format.  
 
|Get a namespace in a given string format.  
 
|-
 
|-
 +
|public 
 
|[[JRegistry::getInstance/1.5|getInstance]]
 
|[[JRegistry::getInstance/1.5|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.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/registry/registry.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 +
* '''Extended by'''
 +
** [[JParameter/1.5|JParameter]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.registry.registry' );</source>
 
<source lang="php">jimport( 'joomla.registry.registry' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JRegistry''' on [http://api.joomla.org/Joomla-Framework/Registry/JRegistry.html api.joomla.org]
 +
* {{JVer|1.5}} '''JRegistry source code''' on [[jframework15:registry/registry.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Registry/1.5|Registry]]
 +
* [[JRegistry|Other versions of 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>
{{SeeAlso:JRegistry}}
+
===User contributed notes===
* [[JRegistry|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Registry/JRegistry.html JRegistry on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 84: Line 101:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JRegistry]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JRegistry]]</noinclude>

Revision as of 18:12, 25 April 2011

Joomla 1.5 JRegistry

Description

Description:JRegistry [Edit Descripton]

Methods

Visibility Method name Description
public __clone
public __construct Constructor.
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 loadObject Load the public variables of the object into the default namespace.
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 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 getInstance Returns a reference to a global object, only creating it if it doesn't already exist.
  • Defined in libraries/joomla/registry/registry.php
  • Extends JObject
  • Extended by

Importing

jimport( 'joomla.registry.registry' );

See also

SeeAlso:JRegistry [Edit See Also]

User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox