Test/PHPUnit/Db/DataSet/DbTableDataSet.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Test  
Subpackage
PHPUnit  
Version
$Id$  

\Zend_Test_PHPUnit_Db_DataSet_DbTableDataSet

Package: Zend_Test\PHPUnit
Aggregate several Zend_Db_Table instances into a dataset.
Parent(s)
\PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Properties

>VPropertyprotectedarray $tables = array()
Default valuearray()Details
Type
array

Methods

methodpublicaddTable(\Zend_Db_Table_Abstract $table, string $where = null, string $order = null, string $count = null, string $offset = null) : void

Add a Table dataset representation by specifiying an arbitrary select query.

By default a select * will be done on the given tablename.
Parameters
NameTypeDescription
$table\Zend_Db_Table_Abstract
$wherestring
$orderstring
$countstring
$offsetstring
methodprotectedcreateIterator(bool $reverse = FALSE) : \PHPUnit_Extensions_Database_DB_TableIterator

Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.

Parameters
NameTypeDescription
$reversebool
Returns
TypeDescription
\PHPUnit_Extensions_Database_DB_TableIterator
methodpublicgetTable(string $tableName) : \PHPUnit_Extensions_Database_DB_Table

Returns a table object for the given table.

Parameters
NameTypeDescription
$tableNamestring
Returns
TypeDescription
\PHPUnit_Extensions_Database_DB_Table
methodpublicgetTableNames() : Array

Returns a list of table names for the database

Returns
TypeDescription
Array
Documentation was generated by phpDocumentor 2.2.0 .