Documentation

PdoCaster
in package

Casts PDO related classes to array representation.

Tags
author

Nicolas Grekas p@tchwork.com

final

Table of Contents

PDO_ATTRIBUTES  = ['CASE' => [PDO::CASE_LOWER => 'LOWER', PDO::CASE_NATURAL => 'NATURAL', PDO::CASE_UPPER => 'UPPER'], 'ERRMODE' => [PDO::ERRMODE_SILENT => 'SILENT', PDO::ERRMODE_WARNING => 'WARNING', PDO::ERRMODE_EXCEPTION => 'EXCEPTION'], 'TIMEOUT', 'PREFETCH', 'AUTOCOMMIT', 'PERSISTENT', 'DRIVER_NAME', 'SERVER_INFO', 'ORACLE_NULLS' => [PDO::NULL_NATURAL => 'NATURAL', PDO::NULL_EMPTY_STRING => 'EMPTY_STRING', PDO::NULL_TO_STRING => 'TO_STRING'], 'CLIENT_VERSION', 'SERVER_VERSION', 'STATEMENT_CLASS', 'EMULATE_PREPARES', 'CONNECTION_STATUS', 'STRINGIFY_FETCHES', 'DEFAULT_FETCH_MODE' => [PDO::FETCH_ASSOC => 'ASSOC', PDO::FETCH_BOTH => 'BOTH', PDO::FETCH_LAZY => 'LAZY', PDO::FETCH_NUM => 'NUM', PDO::FETCH_OBJ => 'OBJ']]
castPdo()  : mixed
castPdoStatement()  : mixed

Constants

PDO_ATTRIBUTES

private mixed PDO_ATTRIBUTES = ['CASE' => [PDO::CASE_LOWER => 'LOWER', PDO::CASE_NATURAL => 'NATURAL', PDO::CASE_UPPER => 'UPPER'], 'ERRMODE' => [PDO::ERRMODE_SILENT => 'SILENT', PDO::ERRMODE_WARNING => 'WARNING', PDO::ERRMODE_EXCEPTION => 'EXCEPTION'], 'TIMEOUT', 'PREFETCH', 'AUTOCOMMIT', 'PERSISTENT', 'DRIVER_NAME', 'SERVER_INFO', 'ORACLE_NULLS' => [PDO::NULL_NATURAL => 'NATURAL', PDO::NULL_EMPTY_STRING => 'EMPTY_STRING', PDO::NULL_TO_STRING => 'TO_STRING'], 'CLIENT_VERSION', 'SERVER_VERSION', 'STATEMENT_CLASS', 'EMULATE_PREPARES', 'CONNECTION_STATUS', 'STRINGIFY_FETCHES', 'DEFAULT_FETCH_MODE' => [PDO::FETCH_ASSOC => 'ASSOC', PDO::FETCH_BOTH => 'BOTH', PDO::FETCH_LAZY => 'LAZY', PDO::FETCH_NUM => 'NUM', PDO::FETCH_OBJ => 'OBJ']]

Methods

castPdo()

public static castPdo(PDO $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : PDO
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castPdoStatement()

public static castPdoStatement(PDOStatement $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : PDOStatement
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

Search results