DriverStatement implements Statement
TYPO3's custom Statement object for Database statements based on Doctrine DBAL in TYPO3's drivers.
This is a lowlevel wrapper around PDOStatement for TYPO3 based drivers to ensure the PDOStatement is put into TYPO3's DriverResult object, and not in Doctrine's Result object. If Doctrine DBAL had a factory for DriverResults this class could be removed.
Because Doctrine's DBAL Driver PDO-Statement object is marked as final, all logic is copied from that class.
this implementation is not part of TYPO3's Public API.
Table of Contents
Interfaces
- Statement
Methods
- __construct() : mixed
- bindParam() : bool
- {@inheritDoc}
- bindValue() : mixed
- {@inheritdoc}
- execute() : Result
- {@inheritdoc}
Methods
__construct()
public
__construct(PDOStatement $stmt) : mixed
Parameters
- $stmt : PDOStatement
The statement can be only instantiated by its driver connection.
bindParam()
{@inheritDoc}
public
bindParam(mixed $param, mixed &$variable[, int $type = ParameterType::STRING ][, int|null $length = null ][, mixed $driverOptions = null ]) : bool
Parameters
- $param : mixed
- $variable : mixed
- $type : int = ParameterType::STRING
- $length : int|null = null
- $driverOptions : mixed = null
-
The usage of the argument is deprecated.
Return values
boolbindValue()
{@inheritdoc}
public
bindValue(mixed $param, mixed $value[, mixed $type = ParameterType::STRING ]) : mixed
Parameters
- $param : mixed
- $value : mixed
- $type : mixed = ParameterType::STRING
execute()
{@inheritdoc}
public
execute([mixed $params = null ]) : Result
Parameters
- $params : mixed = null