Kimai_Database_Mysql::__construct PHP Method

__construct() public method

The provided kimai global array will be stored as a reference.
public __construct ( Kimai_Config &$kga, boolean $autoConnect = true )
$kga Kimai_Config
$autoConnect boolean
    public function __construct(&$kga, $autoConnect = true)
    {
        $this->kga =& $kga;
        if ($autoConnect) {
            $useUtf8 = false;
            if ($kga['server_charset'] === 'utf8') {
                $useUtf8 = true;
            }
            $this->connect($kga['server_hostname'], $kga['server_database'], $kga['server_username'], $kga['server_password'], $useUtf8);
        }
    }
Kimai_Database_Mysql