コード例 #1
0
ファイル: jphpController.php プロジェクト: kbrack1/UptoBox
 /**
  * singleton method used to access the object
  * @access public
  * @return 
  */
 public static function singleton()
 {
     if (!isset(self::$instance)) {
         $obj = __CLASS__;
         self::$instance = new $obj();
     }
     return self::$instance;
 }