示例#1
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 /**
  * @return AutoLoader
  */
 public static function &getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
         self::$_instance->initialize();
         return self::$_instance;
     } else {
         return self::$_instance;
     }
 }