Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Resource for creating database adapter

boolean
$_isDefaultTableAdapter= 'true'
Wether to register the created adapter as default table adapter
true
Details
getDbAdapter(
)
:
null|\Zend_Db_Adapter_Abstract
Retrieve initialized DB connection
Type | Description |
---|---|
null|\Zend_Db_Adapter_Abstract |

init(
)
:
\Zend_Db_Adapter_Abstract|null
Defined by Zend_Application_Resource_Resource
Type | Description |
---|---|
\Zend_Db_Adapter_Abstract|null |

setAdapter(
string $adapter
)
:
\Zend_Application_Resource_Db
Set the adapter
Name | Type | Description |
---|---|---|
$adapter | string |
Type | Description |
---|---|
\Zend_Application_Resource_Db |

setDefaultMetadataCache(
string|\Zend_Cache_Core $cache
)
:
\Zend_Application_Resource_Db
Set the default metadata cache
Name | Type | Description |
---|---|---|
$cache | string|\Zend_Cache_Core |
Type | Description |
---|---|
\Zend_Application_Resource_Db |

setIsDefaultTableAdapter(
$isDefaultTableAdapter
)
:
\Zend_Application_Resource_Db
Set whether to use this as default table adapter
Name | Type | Description |
---|---|---|
$isDefaultTableAdapter |
Type | Description |
---|---|
\Zend_Application_Resource_Db |