/** * Checks required options * * @param array $config * @throws JO_Db_Adapter_Exception * @return void */ protected function _checkRequiredOptions(array $config) { parent::_checkRequiredOptions($config); if (array_key_exists('host', $this->_config) && !array_key_exists('port', $config)) { /** @see JO_Db_Adapter_Exception */ require_once 'JO/Db/Adapter/Exception.php'; throw new JO_Db_Adapter_Exception("Configuration must have a key for 'port' when 'host' is specified"); } }