Пример #1
0
 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);
 }
Пример #2
0
 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);
 }