API15

Difference between revisions of "JRegistry/toObject"

From Joomla! Documentation

< API15:JRegistry
(New page: ===Description=== Transforms a namespace to an object <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</...)
 
m (removing red link to edit, no existant pages)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistry/toObject|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JRegistry/toObject}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 47: Line 47:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JRegistry/toObject|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JRegistry/toObject}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 62: Line 62:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Revision as of 13:43, 12 May 2013

The "API15" 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.

Description[edit]

Transforms a namespace to an object

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

toObject($namespace=null)
Parameter Name Default Value Description
$namespace null $namespace Namespace to return [optional: null returns the default namespace]

Returns[edit]

object An an object holding the namespace data

Defined in[edit]

libraries/joomla/registry/registry.php

Importing[edit]

jimport( 'joomla.registry.registry' );

Source Body[edit]

function toObject($namespace = null)
{
        // If namespace is not set, get the default namespace
        if ($namespace == null) {
                $namespace = $this->_defaultNameSpace;
        }

        // Get the namespace
        $ns = & $this->_registry[$namespace]['data'];

        return $ns;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />