Flake\Core\Database\Mysql::__construct PHP Méthode

__construct() public méthode

public __construct ( $sHost, $sDbName, $sUsername, $sPassword )
    function __construct($sHost, $sDbName, $sUsername, $sPassword)
    {
        $this->sHost = $sHost;
        $this->sDbName = $sDbName;
        $this->sUsername = $sUsername;
        $this->sPassword = $sPassword;
        $this->oDb = new \PDO('mysql:host=' . $this->sHost . ';dbname=' . $this->sDbName, $this->sUsername, $this->sPassword);
        $this->oDb->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
    }