PHP Класс PHPUnit_Extensions_Database_DataSet_DataSetFilter, qcodo

Автор: Mike Lively ([email protected])
Наследование: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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