API16

API16:JRegistry/makeNameSpace

From Joomla! Documentation

Revision as of 02:00, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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