Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Application_Resource_Db Class Reference

Public Member Functions

 setAdapter ($adapter)
 Set the adapter.
 
 getAdapter ()
 Adapter type to use.
 
 setParams (array $params)
 Set the adapter params.
 
 getParams ()
 Adapter parameters.
 
 setIsDefaultTableAdapter ($isDefaultTableAdapter)
 Set whether to use this as default table adapter.
 
 isDefaultTableAdapter ()
 Is this adapter the default table adapter?
 
 getDbAdapter ()
 Retrieve initialized DB connection.
 
 init ()
 Defined by Zend_Application_Resource_Resource.
 
 setDefaultMetadataCache ($cache)
 Set the default metadata cache.
 
- Public Member Functions inherited from Zend_Application_Resource_ResourceAbstract
 __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 Attributes

 $_adapter = null
 
 $_db
 
 $_params = array()
 
 $_isDefaultTableAdapter = true
 
- Protected Attributes inherited from Zend_Application_Resource_ResourceAbstract
 $_bootstrap
 
 $_options = array()
 
 $_skipOptions
 

Member Function Documentation

getAdapter ( )

Adapter type to use.

Returns
string
getDbAdapter ( )

Retrieve initialized DB connection.

Returns
null|Zend_Db_Adapter_Abstract
getParams ( )

Adapter parameters.

Returns
array
init ( )

Defined by Zend_Application_Resource_Resource.

Returns
Zend_Db_Adapter_Abstract|null

Implements Zend_Application_Resource_Resource.

isDefaultTableAdapter ( )

Is this adapter the default table adapter?

Returns
void
setAdapter (   $adapter)

Set the adapter.

Parameters
string$adapter
Returns
Zend_Application_Resource_Db
setDefaultMetadataCache (   $cache)

Set the default metadata cache.

Parameters
string | Zend_Cache_Core$cache
Returns
Zend_Application_Resource_Db
setIsDefaultTableAdapter (   $isDefaultTableAdapter)

Set whether to use this as default table adapter.

Parameters
boolean$defaultTableAdapter
Returns
Zend_Application_Resource_Db
setParams ( array  $params)

Set the adapter params.

Parameters
string$adapter
Returns
Zend_Application_Resource_Db

Member Data Documentation

$_adapter = null
protected
$_db
protected
$_isDefaultTableAdapter = true
protected
$_params = array()
protected