DriverResult

class \TYPO3\CMS\Core\Database\Driver\DriverResult

Extends
AbstractResultMiddleware

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.

Table of Contents

Methods

fetchAllAssociative()  : array
{@inheritDoc}
fetchAllNumeric()  : array
{@inheritDoc}
fetchAssociative()  : array|false
{@inheritDoc}
fetchFirstColumn()  : array
{@inheritDoc}
fetchNumeric()  : array|false
{@inheritDoc}
fetchOne()  : mixed
{@inheritDoc}
mapResourceToString()  : mixed
Map resources to string like is done for e.g. in mysqli driver

Methods

fetchAllAssociative()

{@inheritDoc}

public fetchAllAssociative() : array

Return values

array

fetchAllNumeric()

{@inheritDoc}

public fetchAllNumeric() : array

Return values

array

fetchAssociative()

{@inheritDoc}

public fetchAssociative() : array|false

Return values

array|false

fetchFirstColumn()

{@inheritDoc}

public fetchFirstColumn() : array

Return values

array

fetchNumeric()

{@inheritDoc}

public fetchNumeric() : array|false

Return values

array|false

fetchOne()

{@inheritDoc}

public fetchOne() : mixed

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