‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement:
TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface

Public Member Functions

 __construct ($statement, array $boundVariables=[])
 
string Doctrine DBAL Statement TYPO3 CMS Core Database Query QueryBuilder getStatement ()
 
array getBoundVariables ()
 
 collectBoundVariableNames (&$boundVariables)
 

Protected Attributes

string Doctrine DBAL Statement TYPO3 CMS Core Database Query QueryBuilder $statement
 
array $boundVariables = array( )
 

Detailed Description

A statement acting as a constraint.

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 25 of file Statement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::__construct (   $statement,
array  $boundVariables = [] 
)

Constructs the Statement instance

Parameters
string | \Doctrine\DBAL\Statement | \TYPO3\CMS\Core\Database\Query\QueryBuilder$statement‪The statement as sql string or an instance of \Doctrine\DBAL\Statement or \TYPO3\CMS\Core\Database\Query\QueryBuilder
array$boundVariables‪An array of variables to bind to the statement, only to be used with prepared statements

Definition at line 41 of file Statement.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement\$boundVariables, and TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement\$statement.

Member Function Documentation

◆ collectBoundVariableNames()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::collectBoundVariableNames ( $boundVariables)

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

Parameters
array$boundVariables

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface.

Definition at line 72 of file Statement.php.

◆ getBoundVariables()

array TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::getBoundVariables ( )

Gets the bound variables

Returns
‪array $boundVariables

Definition at line 62 of file Statement.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement\$boundVariables.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getObjectDataByRawQuery().

◆ getStatement()

string Doctrine DBAL Statement TYPO3 CMS Core Database Query QueryBuilder TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::getStatement ( )

Member Data Documentation

◆ $boundVariables

array TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::$boundVariables = array( )
protected

◆ $statement

string Doctrine DBAL Statement TYPO3 CMS Core Database Query QueryBuilder TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::$statement
protected