Statement

class \TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement

Implements
ConstraintInterface

A statement acting as a constraint.

Table of Contents

Interfaces

ConstraintInterface
Filters the set of tuples formed by evaluating the query's sources and the joins between them.

Properties

$boundVariables  : array
$statement  : string|Statement|QueryBuilder

Methods

__construct()  : mixed
Constructs the Statement instance
collectBoundVariableNames()  : mixed
Fills an array with the names of all bound variables in the constraints
getBoundVariables()  : array
Gets the bound variables
getStatement()  : string|Statement|QueryBuilder
Gets the statement.

Properties

$boundVariables

protected array $boundVariables = []

Methods

__construct()

Constructs the Statement instance

public __construct(string|Statement|QueryBuilder $statement[, array $boundVariables = [] ]) : mixed

Parameters

$statement : string|Statement|QueryBuilder

The statement as sql string or an instance of \Doctrine\DBAL\Statement or \TYPO3\CMS\Core\Database\Query\QueryBuilder

$boundVariables : array = []

An array of variables to bind to the statement, only to be used with prepared statements

collectBoundVariableNames()

Fills an array with the names of all bound variables in the constraints

public collectBoundVariableNames(array &$boundVariables) : mixed

Parameters

$boundVariables : array

getBoundVariables()

Gets the bound variables

public getBoundVariables() : array

Return values

array —

$boundVariables

On this page