Statement implements ConstraintInterface
A statement acting as a constraint.
only to be used within Extbase, not part of TYPO3 Core API.
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<string|int, mixed>
- $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<string|int, mixed>
- Gets the bound variables
- getStatement() : string|Statement|QueryBuilder
- Gets the statement.
Properties
$boundVariables
protected
array<string|int, mixed>
$boundVariables
= []
$statement
protected
string|Statement|QueryBuilder
$statement
Methods
__construct()
Constructs the Statement instance
public
__construct(string|Statement|QueryBuilder $statement[, array<string|int, mixed> $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<string|int, mixed> = []
-
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<string|int, mixed> &$boundVariables) : mixed
Parameters
- $boundVariables : array<string|int, mixed>
getBoundVariables()
Gets the bound variables
public
getBoundVariables() : array<string|int, mixed>
Return values
array<string|int, mixed> —$boundVariables
getStatement()
Gets the statement.
public
getStatement() : string|Statement|QueryBuilder
Return values
string|Statement|QueryBuilder —the statement; non-null