예제 #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
파일: Core.php 프로젝트: robotamer/oldstuff
 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);
 }