public function __clone() { //prevent cloning of the object: // issues an E_USER_ERROR if this is attempted logSet("Singleton Class Cloned!", 'error'); trigger_error('Cloning the Singleton Class is not permitted', E_USER_ERROR); }
public function __clone() { /** * prevent cloning of the object: issues an E_USER_ERROR if this is attempted */ logSet("Core Singleton Class Cloned!", 'error'); trigger_error('Cloning the registry is not permitted', E_USER_ERROR); }