API Documentation

Test/PHPUnit/Db/Connection.php

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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Test  
subpackage
PHPUnit  
version
$Id: Connection.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Test_PHPUnit_Db_Connection

Generic Abstraction of Zend_Db Connections in the PHPUnit Database Extension context.

Extends from
\PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Test  
subpackage
PHPUnit  
uses
\Zend_Db_Adapter_Abstract  
uses
\PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection  

Properties

Propertyprotected\Zend_Db_Adapter_Abstract  $_connection= ''

Zend_Db_Adapter_Abstract

Propertyprotected  $_metaData= ''

Metadata

Details
Type
$db
\PHPUnit_Extensions_Database_DB_IMetaData
Propertyprotectedstring  $_schema= ''

Database Schema

Details
Type
string

Methods

methodpublic__construct( \Zend_Db_Adapter_Abstract $db, string $schema ) : void

Construct Connection based on Zend_Db_Adapter_Abstract

Parameters
Name Type Description
$db \Zend_Db_Adapter_Abstract
$schema string
methodpublicallowsCascading( ) : void

Inherited from:
methodpublicclose( ) : void

Close this connection.

methodpubliccreateDataSet( ) : void

Inherited from:
methodpubliccreateQueryTable( string $resultName, string $sql ) : \PHPUnit_Extensions_Database_DataSet_ITable

Creates a table with the result of the specified SQL statement.

Parameters
Name Type Description
$resultName string
$sql string
Returns
Type Description
\PHPUnit_Extensions_Database_DataSet_ITable
methodpublicgetConfig( ) : void

Inherited from:
methodpublicgetConnection( ) : \Zend_Db_Adapter_Abstract

Returns a Zend_Db Connection

Returns
Type Description
\Zend_Db_Adapter_Abstract
methodpublicgetMetaData( ) : \PHPUnit_Extensions_Database_DB_IMetaData

Returns a database metadata object that can be used to retrieve table meta data from the database.

Returns
Type Description
\PHPUnit_Extensions_Database_DB_IMetaData
methodpublicgetRowCount( ) : void

Inherited from:
methodpublicgetSchema( ) : string

Returns the schema for the connection.

Returns
Type Description
string
methodpublicgetTruncateCommand( ) : string

Returns the command used to truncate a table.

Returns
Type Description
string
methodpublicquoteSchemaObject( ) : void

Inherited from:
Documentation was generated by DocBlox 0.13.3.