PHP 클래스 PHPUnit_Extensions_Database_DataSet_DataSetFilter, qcodo

저자: Mike Lively ([email protected])
상속: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$excludeColumns Array The columns to exclude from the data set.
$excludeTables Array The tables to exclude from the data set.
$includeColumns Array The columns to exclude from the data set.
$includeTables Array The tables to exclude from the data set.
$originalDataSet PHPUnit_Extensions_Database_DataSet_IDataSet The dataset being decorated.

공개 메소드들

메소드 설명
__construct ( PHPUnit_Extensions_Database_DataSet_IDataSet $originalDataSet, array $excludeTables = [] ) Creates a new filtered data set.
addExcludeTables ( array $tables ) Adds tables to be included in the data set.
addIncludeTables ( array $tables ) Adds tables to be included in the data set.
setExcludeColumnsForTable ( string $table, array $columns ) Adds columns to include in the data set for the given table.
setIncludeColumnsForTable ( string $table, array $columns ) Adds columns to include in the data set for the given table.

보호된 메소드들

메소드 설명
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.

메소드 상세

__construct() 공개 메소드

The $exclude tables should be an associative array using table names as the key and an array of column names to exclude for the value. If you would like to exclude a full table set the value of the table's entry to the special string '*'.
public __construct ( PHPUnit_Extensions_Database_DataSet_IDataSet $originalDataSet, array $excludeTables = [] )
$originalDataSet PHPUnit_Extensions_Database_DataSet_IDataSet
$excludeTables array @deprecated use set* methods instead.

addExcludeTables() 공개 메소드

Adds tables to be included in the data set.
public addExcludeTables ( array $tables )
$tables array

addIncludeTables() 공개 메소드

Adds tables to be included in the data set.
public addIncludeTables ( array $tables )
$tables array

createIterator() 보호된 메소드

Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator
$reverse boolean
리턴 PHPUnit_Extensions_Database_DataSet_ITableIterator

setExcludeColumnsForTable() 공개 메소드

Adds columns to include in the data set for the given table.
public setExcludeColumnsForTable ( string $table, array $columns )
$table string
$columns array

setIncludeColumnsForTable() 공개 메소드

Adds columns to include in the data set for the given table.
public setIncludeColumnsForTable ( string $table, array $columns )
$table string
$columns array

프로퍼티 상세

$excludeColumns 보호되어 있는 프로퍼티

The columns to exclude from the data set.
protected Array $excludeColumns
리턴 Array

$excludeTables 보호되어 있는 프로퍼티

The tables to exclude from the data set.
protected Array $excludeTables
리턴 Array

$includeColumns 보호되어 있는 프로퍼티

The columns to exclude from the data set.
protected Array $includeColumns
리턴 Array

$includeTables 보호되어 있는 프로퍼티

The tables to exclude from the data set.
protected Array $includeTables
리턴 Array

$originalDataSet 보호되어 있는 프로퍼티

The dataset being decorated.
protected PHPUnit_Extensions_Database_DataSet_IDataSet $originalDataSet
리턴 PHPUnit_Extensions_Database_DataSet_IDataSet