API16

JRegistry/ construct: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistry/__construct|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JRegistry/__construct}}
 
 


===Syntax===
===Syntax===
Line 39: Line 37:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRegistry/__construct|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{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