DriverResult implements Result
TYPO3's custom Result object for Database statements based on Doctrine DBAL.
This is a lowlevel wrapper around PDO for TYPO3 based drivers to ensure mapResourceToString() is called when retrieving data. This isn't the actual Result object (Doctrine\DBAL\Result) which is used in user-land code.
Because Doctrine's DBAL Driver Result object is marked as final, all logic is copied from the ResultInterface.
this implementation is not part of TYPO3's Public API.
Table of Contents
Interfaces
- Result
Methods
- __construct() : mixed
- columnCount() : int
- fetchAllAssociative() : array<string|int, mixed>
- {@inheritDoc}
- fetchAllNumeric() : array<string|int, mixed>
- {@inheritDoc}
- fetchAssociative() : mixed
- {@inheritDoc}
- fetchFirstColumn() : array<string|int, mixed>
- {@inheritDoc}
- fetchNumeric() : mixed
- {@inheritDoc}
- fetchOne() : mixed
- {@inheritDoc}
- free() : void
- rowCount() : int
- mapResourceToString() : mixed
- Map resources to string like is done for e.g. in mysqli driver
Methods
__construct()
public
__construct(PDOStatement $statement) : mixed
Parameters
- $statement : PDOStatement
The result can be only instantiated by its driver connection or statement.
columnCount()
public
columnCount() : int
Return values
intfetchAllAssociative()
{@inheritDoc}
public
fetchAllAssociative() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchAllNumeric()
{@inheritDoc}
public
fetchAllNumeric() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchAssociative()
{@inheritDoc}
public
fetchAssociative() : mixed
fetchFirstColumn()
{@inheritDoc}
public
fetchFirstColumn() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchNumeric()
{@inheritDoc}
public
fetchNumeric() : mixed
fetchOne()
{@inheritDoc}
public
fetchOne() : mixed
free()
public
free() : void
rowCount()
public
rowCount() : int
Return values
intmapResourceToString()
Map resources to string like is done for e.g. in mysqli driver
protected
mapResourceToString(mixed $record) : mixed
Parameters
- $record : mixed