Beispiel #1
0
 /**
  * почти конструктор
  * @param null|int|string $type
  * @param null|string $host
  * @param null|string $base
  * @param null|string $user
  * @param null|string $pwd
  * @return connect|null
  */
 public static function start($type = NULL, $host = NULL, $base = NULL, $user = NULL, $pwd = NULL)
 {
     if (self::$inst == null) {
         self::$inst = new connect($type, $host, $base, $user, $pwd);
     }
     return self::$inst;
 }