db.php
public static function config($dbhost, $dbname, $dbuser, $dbpassword, $driver = "mysqli")
    {
        global $ADODB_FETCH_MODE, $ADODB_QUOTE_FIELDNAMES;
        $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
        $ADODB_QUOTE_FIELDNAMES = true;

        self::$dbhost = $dbhost;
        self::$dbname = $dbname;
        self::$dbuser = $dbuser;
        self::$dbpassword = $dbpassword;
        self::$driver = $driver;
    }
public static function config($dbhost, $dbname, $dbuser, $dbpassword, $driver = "mysqli")
    {
        global $ADODB_FETCH_MODE, $ADODB_QUOTE_FIELDNAMES;
        $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
        $ADODB_QUOTE_FIELDNAMES = true;

        self::$dbhost = $dbhost;
        self::$dbname = $dbname;
        self::$dbuser = $dbuser;
        self::$dbpassword = $dbpassword;
        self::$driver = $driver;
    }
Установка  параметров   коннекта

@param mixed $dbhost
@param mixed $dbname
@param mixed $dbuser
@param mixed $dbpassword
@param string $driver