JRegistry/ construct: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Constructor
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Constructor | Constructor | ||
===Syntax=== | ===Syntax=== | ||
| Line 39: | Line 37: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JRegistry | category=JRegistry | ||
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