TYPO3 CMS  TYPO3_6-2
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 Tx_Extbase_Persistence_QOM_Statement

Public Member Functions

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

Protected Attributes

 $statement
 
 $boundVariables = array()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A statement acting as a constraint.

Definition at line 19 of file Statement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement::__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 37 of file Statement.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement\$boundVariables, TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement\$statement, and TYPO3\CMS\Core\Utility\GeneralUtility\deprecationLog().

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 75 of file Statement.php.

◆ getBoundVariables()

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

Gets the bound variables

Returns
array $boundVariables

Definition at line 65 of file Statement.php.

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

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

◆ getStatement()

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

Gets the statement.

Returns
string| the statement; non-null

Definition at line 56 of file Statement.php.

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

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

Member Data Documentation

◆ $boundVariables

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

◆ $statement

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