API16

API16:JRegistry/makeNameSpace

From Joomla! Documentation

Revision as of 14:20, 24 March 2017 by JoomlaWikiBot (talk | contribs) (clean up)

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 />