コード例 #1
0
ファイル: Context.php プロジェクト: ecuation/Control-de-stock
 public static function getContext()
 {
     if (!isset(self::$context)) {
         self::$context = new Context();
     }
     return self::$context;
 }
コード例 #2
0
ファイル: Engine.php プロジェクト: rockiebond/Cube
 /**
  * 获取实例。
  */
 static function getInstance()
 {
     if (self::$context == null) {
         self::$context = new Context();
     }
     return self::$context;
 }