TYPO3 CMS  TYPO3_7-6
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=[])
 
 getStatement ()
 
 getBoundVariables ()
 
 collectBoundVariableNames (&$boundVariables)
 

Protected Attributes

 $statement
 
 $boundVariables = []
 

Detailed Description

A statement acting as a constraint.

Definition at line 20 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 | \TYPO3\CMS\Core\Database\PreparedStatement$statementThe statement as sql string or TYPO3
array$boundVariablesAn array of variables to bind to the statement, only to be used with preparedStatement

Definition at line 38 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
Returns
void

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

Definition at line 70 of file Statement.php.

◆ getBoundVariables()

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

Gets the bound variables

Returns
array $boundVariables

Definition at line 59 of file Statement.php.

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

◆ getStatement()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::getStatement ( )

Gets the statement.

Returns
string| the statement; non-null

Definition at line 49 of file Statement.php.

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

Member Data Documentation

◆ $boundVariables

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::$boundVariables = []
protected

◆ $statement

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::$statement
protected