PHP Class PHPUnit_Extensions_Database_Operation_RowBased, qcodo
To create a row based operation you must create two functions. The first
one, buildOperationQuery(), must return a query that will be used to create
a prepared statement. The second one, buildOperationArguments(), should
return an array containing arguments for each row.
Show file
Open project: qcodo/qcodo
Protected Properties
Public Methods
Method |
Description |
|
execute ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection, PHPUnit_Extensions_Database_DataSet_IDataSet $dataSet ) |
|
|
Protected Methods
Method |
Description |
|
buildOperationArguments ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $databaseTableMetaData, PHPUnit_Extensions_Database_DataSet_ITable $table, $row ) |
|
|
buildOperationQuery ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $databaseTableMetaData, PHPUnit_Extensions_Database_DataSet_ITable $table, PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) |
|
|
buildPreparedColumnArray ( $columns, PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) |
|
|
Method Details
buildOperationArguments()
abstract protected method
abstract protected buildOperationArguments ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $databaseTableMetaData, PHPUnit_Extensions_Database_DataSet_ITable $table, $row ) |
$databaseTableMetaData |
PHPUnit_Extensions_Database_DataSet_ITableMetaData |
|
$table |
PHPUnit_Extensions_Database_DataSet_ITable |
|
buildOperationQuery()
abstract protected method
abstract protected buildOperationQuery ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $databaseTableMetaData, PHPUnit_Extensions_Database_DataSet_ITable $table, PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) |
$databaseTableMetaData |
PHPUnit_Extensions_Database_DataSet_ITableMetaData |
|
$table |
PHPUnit_Extensions_Database_DataSet_ITable |
|
$connection |
PHPUnit_Extensions_Database_DB_IDatabaseConnection |
|
buildPreparedColumnArray()
protected method
protected buildPreparedColumnArray ( $columns, PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) |
$connection |
PHPUnit_Extensions_Database_DB_IDatabaseConnection |
|
public execute ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection, PHPUnit_Extensions_Database_DataSet_IDataSet $dataSet ) |
$connection |
PHPUnit_Extensions_Database_DB_IDatabaseConnection |
|
$dataSet |
PHPUnit_Extensions_Database_DataSet_IDataSet |
|
Property Details
$iteratorDirection protected property
protected $iteratorDirection |
$operationName protected property