TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Statement Class Reference
Inheritance diagram for Statement:
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 (   $statement,
array  $boundVariables = [] 
)

Constructs the Statement instance

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

Definition at line 38 of file Statement.php.

References Statement\$boundVariables, and Statement\$statement.

Member Function Documentation

collectBoundVariableNames ( $boundVariables)

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

Parameters
array&$boundVariables
Returns
void

Implements ConstraintInterface.

Definition at line 70 of file Statement.php.

getBoundVariables ( )

Gets the bound variables

Returns
array $boundVariables

Definition at line 59 of file Statement.php.

References Statement\$boundVariables.

getStatement ( )

Gets the statement.

Returns
string||| the statement; non-null

Definition at line 49 of file Statement.php.

References Statement\$statement.

Member Data Documentation

$boundVariables = []
protected

Definition at line 30 of file Statement.php.

Referenced by Statement\__construct(), and Statement\getBoundVariables().

$statement
protected

Definition at line 25 of file Statement.php.

Referenced by Statement\__construct(), and Statement\getStatement().