API16:JRegistry/makeNameSpace
From Joomla! Documentation
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