Пример #1
0
 public static function run()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new DB();
     }
     return self::$_instance;
 }
Пример #2
0
 public static function getInstance()
 {
     if (FALSE == self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }