JRegistry/makeNameSpace: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 38: | Line 38: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=makeNameSpace | category=makeNameSpace | ||
category=JRegistry | category=JRegistry | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:00, 25 March 2017
Description
Create a namespace
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;
}
Examples
Code Examples