type)).":". "host=".$conf->server.";". "dbname=".$conf->database; // Authentication if (!$username) $username = $conf->username; if (!$password) $password = $conf->password; // Connect parent::__construct($dsn, $username, $password, $driver_options); } public static function getInstance(){ if (empty(self::$instance)) self::$instance = new self; return self::$instance; } }