API16

API16:JRegistry/ construct

From Joomla! Documentation

Revision as of 01:59, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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