227 #require_once 'Zend/Db/Exception.php'; 228 throw new Zend_Db_Exception(
'Adapter parameters must be in an array or a Zend_Config object');
238 #require_once 'Zend/Db/Exception.php'; 245 $adapterNamespace =
'Zend_Db_Adapter';
246 if (isset(
$config[
'adapterNamespace'])) {
247 if (
$config[
'adapterNamespace'] !=
'') {
248 $adapterNamespace =
$config[
'adapterNamespace'];
250 unset(
$config[
'adapterNamespace']);
254 $adapterName = $adapterNamespace .
'_';
255 $adapterName .= str_replace(
' ',
'_', ucwords(str_replace(
'_',
' ', strtolower(
$adapter))));
262 #require_once 'Zend/Loader.php'; 270 $dbAdapter =
new $adapterName(
$config);
279 #require_once 'Zend/Db/Exception.php'; 280 throw new Zend_Db_Exception(
"Adapter class '$adapterName' does not extend Zend_Db_Adapter_Abstract");
const ATTR_STRINGIFY_FETCHES
static loadClass($class, $dirs=null)
const ATTR_FETCH_TABLE_NAMES
const AUTO_RECONNECT_ON_UNSERIALIZE
const ERR_NOT_IMPLEMENTED
const ATTR_MAX_COLUMN_LEN
const ATTR_FETCH_CATALOG_NAMES
static factory($adapter, $config=array())
const AUTO_QUOTE_IDENTIFIERS
const ATTR_STATEMENT_CLASS
const ATTR_CONNECTION_STATUS
const ALLOW_SERIALIZATION
const ATTR_SERVER_VERSION
const ATTR_CLIENT_VERSION