API16

JRegistry/makeNameSpace: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Create a namespace <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </s...
 
m clean up
Line 2: Line 2:
Create a namespace
Create a namespace


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistry/makeNameSpace|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JRegistry/makeNameSpace}}
 
{{subst:Description:JRegistry/makeNameSpace}}


===Syntax===
===Syntax===
Line 39: Line 37:
</source>
</source>


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


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

Revision as of 14:20, 24 March 2017

Description

Create a namespace


{{subst:Description:JRegistry/makeNameSpace}}

Syntax

makeNameSpace($namespace)
Parameter Name Default Value Description
$namespace Name of the namespace to create

Returns

boolean True on success

Defined in

libraries/joomla/registry/registry.php

Importing

jimport( 'joomla.registry.registry' );

Source Body

public function makeNameSpace($namespace)
{
        $this->_registry[$namespace] = array('data' => new stdClass());
        return true;
}


{{subst:SeeAlso:JRegistry/makeNameSpace}}

Examples

<CodeExamplesForm />