예제 #1
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new Registry();
     }
     return self::$_instance;
 }
예제 #2
0
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #3
0
 public static function init()
 {
     if (self::$_instance == null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #4
0
파일: Registry.php 프로젝트: remluben/rsf
 /**
  * @return Registry
  */
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new Registry();
     }
     return self::$_instance;
 }
예제 #5
0
 public static function getInstance()
 {
     if (!isset(self::$_instance)) {
         $c = __CLASS__;
         self::$_instance = new $c();
     }
     return self::$_instance;
 }