Beispiel #1
0
 public static function getInstance($base = NULL, $host = NULL, $port = NULL, $user = NULL, $pass = NULL)
 {
     if (is_null(self::$instance) || !is_null($base) || !is_null($host) || !is_null($port) || !is_null($user) || !is_null($pass)) {
         self::$instance = self::newInstance($base, $host, $port, $user, $pass);
     }
     return self::$instance;
 }
Beispiel #2
0
 public static function getInstance($base = NULL, $host = NULL, $port = NULL, $user = NULL, $pass = NULL)
 {
     if (is_null(self::$instance)) {
         self::$instance = new SimpleSQL($base, $host, $port, $user, $pass);
     }
     return self::$instance;
 }