API16

JRegistry/ construct: Difference between revisions

From Joomla! Documentation

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




{{subst:Description:JRegistry/__construct}}
 


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




{{subst:SeeAlso:JRegistry/__construct}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=__construct
  category=__construct
  category=JRegistry
  category=JRegistry
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 01:59, 25 March 2017

Description

Constructor



Syntax

__construct($namespace= '_default')
Parameter Name Default Value Description
$namespace '_default' Default registry namespace

Returns

void

Defined in

libraries/joomla/registry/registry.php

Importing

jimport( 'joomla.registry.registry' );

Source Body

public function __construct($namespace = '_default')
{
        $this->_defaultNameSpace = $namespace;
        $this->makeNameSpace($namespace);
}



Examples

Code Examples