API Documentation

Zend/Application/Resource/Db.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Application  
Subpackage
Resource  
Version
$Id: Db.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Application_Resource_Db

Package: Zend\Application\Resource

Resource for creating database adapter

Parent(s)
\Zend_Application_Resource_ResourceAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\Zend_Application_Resource_ResourceAbstract  

Properties

Propertyprotectedstring  $_adapter= 'null'

Adapter to use

Default valuenullDetails
Type
string
Propertyprotected\Zend_Db_Adapter_Abstract  $_db= ''

Propertyprotectedboolean  $_isDefaultTableAdapter= 'true'

Wether to register the created adapter as default table adapter

Default valuetrueDetails
Type
boolean
Propertyprotectedarray  $_params= 'array()'

Parameters to use

Default valuearray()Details
Type
array

Methods

methodpublicgetAdapter( ) : string

Adapter type to use

Returns
Type Description
string
methodpublicgetDbAdapter( ) : null|\Zend_Db_Adapter_Abstract

Retrieve initialized DB connection

Returns
Type Description
null|\Zend_Db_Adapter_Abstract
methodpublicgetParams( ) : array

Adapter parameters

Returns
Type Description
array
methodpublicinit( ) : \Zend_Db_Adapter_Abstract|null

Defined by Zend_Application_Resource_Resource

Returns
Type Description
\Zend_Db_Adapter_Abstract|null
methodpublicisDefaultTableAdapter( ) : void

Is this adapter the default table adapter?

methodpublicsetAdapter( string $adapter ) : \Zend_Application_Resource_Db

Set the adapter

Parameters
Name Type Description
$adapter string
Returns
Type Description
\Zend_Application_Resource_Db
methodpublicsetDefaultMetadataCache( string|\Zend_Cache_Core $cache ) : \Zend_Application_Resource_Db

Set the default metadata cache

Parameters
Name Type Description
$cache string|\Zend_Cache_Core
Returns
Type Description
\Zend_Application_Resource_Db
methodpublicsetIsDefaultTableAdapter(  $isDefaultTableAdapter ) : \Zend_Application_Resource_Db

Set whether to use this as default table adapter

Parameters
Name Type Description
$isDefaultTableAdapter
Returns
Type Description
\Zend_Application_Resource_Db
methodpublicsetParams(  $params ) : \Zend_Application_Resource_Db

Set the adapter params

Parameters
Name Type Description
$params
Returns
Type Description
\Zend_Application_Resource_Db
Documentation was generated by DocBlox 0.15.1.