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.
Author: Mike Lively ([email protected])
Inheritance: implements PHPUnit_Extensions_Database_Operation_IDatabaseOperation
Show file Open project: qcodo/qcodo

Protected Properties

Property Type Description
$iteratorDirection
$operationName

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

execute() public method

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

protected $operationName