コード例 #1
0
ファイル: Singleton.php プロジェクト: robotamer/oldstuff
 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);
 }