Ejemplo n.º 1
0
 /**
  * getInstance()
  * Permet d'instancier la class Config
  */
 public static function getInstance($file)
 {
     if (self::$_instance === null) {
         self::$_instance = new Config($file);
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Ejemplo n.º 3
0
 /**
  *  Instancifie une seule fois la config
  *  @return instance
  */
 public static function GetConfig()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config();
     }
     return self::$_instance;
 }
Ejemplo n.º 4
0
 /**
  * Get instance
  * @return \Core\Config
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Ejemplo n.º 5
0
 static function instance()
 {
     if (self::$_instance == NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Ejemplo n.º 6
0
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config(ROOT . '/config/config.php');
     }
     return self::$_instance;
 }
Ejemplo n.º 7
0
 public static function getInstance($file)
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new Config($file);
     } else {
     }
     return self::$_instance;
 }