original_string: 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.');
  		}
  	}
code: 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.');
  		}
  	}
code_tokens: 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.' ) ; } }
docstring: Connect to the DB.
  
  @param array $aOptions
  @throws Exception
docstring_tokens: Connect to the DB .