DriverResult

class \TYPO3\CMS\Core\Database\Driver\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.

Table of Contents

Interfaces

Result

Methods

__construct()  : mixed
columnCount()  : int
fetchAllAssociative()  : array
{@inheritDoc}
fetchAllNumeric()  : array
{@inheritDoc}
fetchAssociative()  : mixed
{@inheritDoc}
fetchFirstColumn()  : array
{@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

columnCount()

public columnCount() : int

Return values

int

fetchAllAssociative()

{@inheritDoc}

public fetchAllAssociative() : array

Return values

array

fetchAllNumeric()

{@inheritDoc}

public fetchAllNumeric() : array

Return values

array

fetchAssociative()

{@inheritDoc}

public fetchAssociative() : mixed

fetchFirstColumn()

{@inheritDoc}

public fetchFirstColumn() : array

Return values

array

fetchNumeric()

{@inheritDoc}

public fetchNumeric() : mixed

fetchOne()

{@inheritDoc}

public fetchOne() : mixed

rowCount()

public rowCount() : int

Return values

int

mapResourceToString()

Map resources to string like is done for e.g. in mysqli driver

protected mapResourceToString(mixed $record) : mixed

Parameters

$record : mixed
On this page