API16

JRegistry/makeNameSpace: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JRegistry/makeNameSpace}}
 


===Syntax===
===Syntax===
Line 38: Line 38:




{{subst:SeeAlso:JRegistry/makeNameSpace}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=makeNameSpace
  category=makeNameSpace
  category=JRegistry
  category=JRegistry
  category=CodeExample
  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