TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Statement Class Reference
Inheritance diagram for Statement:
ConstraintInterface

Public Member Functions

 __construct ($statement, array $boundVariables=array())
 
 getStatement ()
 
 getBoundVariables ()
 
 collectBoundVariableNames (&$boundVariables)
 

Protected Attributes

 $statement
 
 $boundVariables = array()
 

Detailed Description

A statement acting as a constraint.

Definition at line 20 of file Statement.php.

Constructor & Destructor Documentation

__construct (   $statement,
array  $boundVariables = array() 
)

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 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 = array()
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().