Exemplo n.º 1
0
 public static function run()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new DB();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 public static function getInstance()
 {
     if (FALSE == self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }