PDOWrapper::configMaster PHP Method

configMaster() public method

method configMaster - configure connection credentials to the master db server
public configMaster ( $host, $name, $user, $password, $port = null, $driver = 'mysql' )
    public function configMaster($host, $name, $user, $password, $port = null, $driver = 'mysql')
    {
        if (!$this->validateDriver($driver)) {
            throw new Exception('DATABASE WRAPPER::error, the database you wish to connect to is not supported by your install of PHP.');
        }
        if (isset($this->pdo_master)) {
            error_log('DATABASE WRAPPER::warning, attempting to config master after connection exists');
        }
        $this->config_master = array('driver' => $driver, 'host' => $host, 'name' => $name, 'user' => $user, 'password' => $password, 'port' => $port);
    }