コード例 #1
0
ファイル: Config.php プロジェクト: YitzakD/Ivoirepraise
 /**
  * getInstance()
  * Permet d'instancier la class Config
  */
 public static function getInstance($file)
 {
     if (self::$_instance === null) {
         self::$_instance = new Config($file);
     }
     return self::$_instance;
 }
コード例 #2
0
ファイル: config.php プロジェクト: andreytech/mary-framework
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #3
0
ファイル: Config.php プロジェクト: alaindessi/adweb
 /**
  *  Instancifie une seule fois la config
  *  @return instance
  */
 public static function GetConfig()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config();
     }
     return self::$_instance;
 }
コード例 #4
0
ファイル: Config.php プロジェクト: elfingit/webcrm
 /**
  * Get instance
  * @return \Core\Config
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #5
0
ファイル: Config.php プロジェクト: procivam/hochu-bilet-v3
 static function instance()
 {
     if (self::$_instance == NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #6
0
ファイル: Config.php プロジェクト: kMeillet/mp3-player-api-js
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config(ROOT . '/config/config.php');
     }
     return self::$_instance;
 }
コード例 #7
0
ファイル: Config.php プロジェクト: vincgonzo/php-blog
 public static function getInstance($file)
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config($file);
     } else {
     }
     return self::$_instance;
 }