Zend Framework
1.12
|
Public Member Functions | |
init () | |
Initialize the Database Connections (instances of Zend_Db_Table_Abstract) | |
isDefault ($db) | |
Determine if the given db(identifier) is the default db. | |
getDb ($db=null) | |
Retrieve the specified database connection. | |
getDefaultDb ($justPickOne=true) | |
Get the default db connection. | |
![]() | |
__construct ($options=null) | |
Create a instance with options. | |
setOptions (array $options) | |
Set options from array. | |
getOptions () | |
Retrieve resource options. | |
mergeOptions (array $array1, $array2=null) | |
Merge options recursively. | |
setBootstrap (Zend_Application_Bootstrap_Bootstrapper $bootstrap) | |
Set the bootstrap to which the resource is attached. | |
getBootstrap () | |
Retrieve the bootstrap to which the resource is attached. | |
Protected Member Functions | |
_setDefault (Zend_Db_Adapter_Abstract $adapter) | |
_setDefaultMetadataCache ($cache) | |
Set the default metadata cache. | |
Protected Attributes | |
$_dbs = array() | |
$_defaultDb | |
![]() | |
$_bootstrap | |
$_options = array() | |
$_skipOptions | |
|
protected |
|
protected |
Set the default metadata cache.
string | Zend_Cache_Core | $cache |
getDb | ( | $db = null | ) |
Retrieve the specified database connection.
null | string | Zend_Db_Adapter_Abstract | $db | The adapter to retrieve. Null to retrieve the default connection |
Zend_Application_Resource_Exception | if the given parameter could not be found |
getDefaultDb | ( | $justPickOne = true | ) |
Get the default db connection.
boolean | $justPickOne | If true, a random (the first one in the stack) connection is returned if no default was set. If false, null is returned if no default was set. |
init | ( | ) |
Initialize the Database Connections (instances of Zend_Db_Table_Abstract)
Implements Zend_Application_Resource_Resource.
isDefault | ( | $db | ) |
Determine if the given db(identifier) is the default db.
string | Zend_Db_Adapter_Abstract | $db | The db to determine whether it's set as default |
|
protected |
|
protected |