コード例 #1
0
ファイル: cs.php プロジェクト: robertgentel/phpCornerstone
 /**
  * Framework instance factory. Will return the active framework instance, or create one if it doesn't exist
  * @static getInstance
  * @return cs Instance object
  */
 public static function getInstance($cli = false)
 {
     if (!isset(self::$_instance)) {
         $c = __CLASS__;
         self::$_instance = new $c($cli);
         self::$_instance->init($cli);
     }
     return self::$_instance;
 }