Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Application_Resource_Db

Zend_Application_Resource_ResourceAbstract
|
Zend_Application_Resource_Db
Resource for creating database adapter
UsesZend_Application_Resource_ResourceAbstract
CategoryZend
PackageZend_Application
SubpackageResource
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_adapter Adapter to use
# $_db
# $_isDefaultTableAdapter Wether to register the created adapter as default table adapter
# $_params Parameters to use
Instance methods
+ getAdapter() Adapter type to use
+ getDbAdapter() Retrieve initialized DB connection
+ getParams() Adapter parameters
+ init() Defined by Zend_Application_Resource_Resource
+ isDefaultTableAdapter() Is this adapter the default table adapter?
+ setAdapter() Set the adapter
+ setIsDefaultTableAdapter() Set whether to use this as default table adapter
+ setParams() Set the adapter params

Details

Instance fields

$_adapter
protected $_adapter = null
Adapter to use
Var string
$_db
protected $_db
Var Zend_Db_Adapter_Interface
$_isDefaultTableAdapter
protected $_isDefaultTableAdapter = true
Wether to register the created adapter as default table adapter
Var boolean
$_params
protected $_params = array()
Parameters to use
Var array

Instance methods

getAdapter()
public function getAdapter( )
Adapter type to use
Returns string
getDbAdapter()
public function getDbAdapter( )
Retrieve initialized DB connection
Returns null|Zend_Db_Adapter_Interface
getParams()
public function getParams( )
Adapter parameters
Returns array
isDefaultTableAdapter()
public function isDefaultTableAdapter( )
Is this adapter the default table adapter?
Returns void
setAdapter()
public function setAdapter( $adapter)
Set the adapter
Parameters
$adapter string
setIsDefaultTableAdapter()
public function setIsDefaultTableAdapter( $isDefaultTableAdapter)
Set whether to use this as default table adapter
Parameters
$isDefaultTableAdapter
setParams()
public function setParams( array $params)
Set the adapter params
Parameters
array $params