API16

JRegistry/ clone

< API16:JRegistry

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Magic function to clone the registry object.



Syntax

__clone()


Defined in

libraries/joomla/registry/registry.php

Importing

jimport( 'joomla.registry.registry' );

Source Body

public function __clone()
{
        $this->_registry = unserialize(serialize($this->_registry));
}



Examples

Code Examples


Advertisement