API16

JRegistry/makeNameSpace

From Joomla! Documentation

< API16:JRegistry
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Create a namespace



Syntax[edit]

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

Returns[edit]

boolean True on success

Defined in[edit]

libraries/joomla/registry/registry.php

Importing[edit]

jimport( 'joomla.registry.registry' );

Source Body[edit]

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



Examples[edit]

Code Examples[edit]