protected function dbConnect(array $aOptions)
	{
		$aOptions = array_merge(SudoBible::DB_CREDS, $aOptions);
		try {
			$this->db = new mysqli(
				$aOptions['db_host'],
				$aOptions['db_user'],
				$aOptions['db_pass'],
				$aOptions['db_name'],
				$aOptions['db_port']
			);
		} catch (Exception $e) {
			// Clean up the error message
			throw new Exception(__METHOD__ . ': DB connection failed.');
		}
	}
protected function dbConnect(array $aOptions)
	{
		$aOptions = array_merge(SudoBible::DB_CREDS, $aOptions);
		try {
			$this->db = new mysqli(
				$aOptions['db_host'],
				$aOptions['db_user'],
				$aOptions['db_pass'],
				$aOptions['db_name'],
				$aOptions['db_port']
			);
		} catch (Exception $e) {
			// Clean up the error message
			throw new Exception(__METHOD__ . ': DB connection failed.');
		}
	}
protected function dbConnect ( array $ aOptions ) { $ aOptions = array_merge ( SudoBible :: DB_CREDS , $ aOptions ) ; try { $ this -> db = new mysqli ( $ aOptions [ 'db_host' ] , $ aOptions [ 'db_user' ] , $ aOptions [ 'db_pass' ] , $ aOptions [ 'db_name' ] , $ aOptions [ 'db_port' ] ) ; } catch ( Exception $ e ) { // Clean up the error message throw new Exception ( __METHOD__ . ': DB connection failed.' ) ; } }
Connect to the DB.

@param array $aOptions
@throws Exception
Connect to the DB .