API16

JRegistry: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JRegistry}} ===Defined in=== l...
 
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JRegistry}}
<nowiki>[</nowiki>[[Description:JRegistry|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JRegistry}}


===Defined in===
===Defined in===
Line 70: Line 67:
<source lang="php">jimport( 'joomla.registry.registry' );</source>
<source lang="php">jimport( 'joomla.registry.registry' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRegistry|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JRegistry}}
</span>
{{SeeAlso:JRegistry}}


===Examples===
===Examples===

Revision as of 14:19, 24 March 2017

{{subst:Description:JRegistry}}

Defined in

libraries/joomla/registry/registry.php

Methods

Method name Description
__construct Constructor
loadArray Load a associative array of values into the default namespace
loadObject Load the public variables of the object into the default namespace.
loadFile Load the contents of a file into the registry
loadXML Load an XML string into the registry into the given namespace [or default if a namespace is not given]
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]
merge Merge a JRegistry object into this one
toString Get a namespace in a given string format
toArray Transforms a namespace to an array
toObject Transforms a namespace to an object
__toString Magic function to render this object as a string using default args of toString method.
__clone Magic function to clone the registry object.
makeNameSpace Create a namespace
getNameSpaces Get the list of namespaces
getValue Get a registry value
setValue Set a registry value
getInstance Returns a reference to a global JRegistry object, only creating it if it doesn't already exist.

Importing

jimport( 'joomla.registry.registry' );


{{subst:SeeAlso:JRegistry}}

Examples

<CodeExamplesForm />