class ResultSet implements Iterator, IRowContainer

Represents a result set.

Methods

__construct(Connection $connection, string $queryString, array $params, callable|null $normalizer = null)

No description

getConnection() deprecated

No description

PDOStatement|null
getPdoStatement()

No description

string
getQueryString()

No description

array
getParameters()

No description

int|null
getColumnCount()

No description

int|null
getRowCount()

No description

array
getColumns()

No description

array
getColumnTypes()

No description

float
getTime()

No description

array
normalizeRow(array $row)

No description

void
dump()

Displays complete result set as HTML table for debug purposes.

void
rewind()

No description

Row|false|null
current()

No description

int
key()

No description

void
next()

No description

bool
valid()

No description

Row|null
fetch()

Fetches single row object.

array|null
fetchArray()

No description

mixed
fetchField()

Fetches single field.

array|null
fetchFields()

Fetches array of fields.

array
fetchPairs(string|int|null $key = null, string|int|null $value = null)

Fetches all rows as associative array.

array
fetchAll()

Fetches all rows.

array
fetchAssoc(string $path)

Fetches all rows and returns associative tree.

Details

at line 33
__construct(Connection $connection, string $queryString, array $params, callable|null $normalizer = null)

No description

Parameters

Connection $connection
string $queryString
array $params
callable|null $normalizer

at line 54
Connection getConnection() deprecated

deprecated

No description

Return Value

Connection

at line 63
PDOStatement|null getPdoStatement()

internal  
 

No description

Return Value

PDOStatement|null

at line 69
string getQueryString()

No description

Return Value

string

at line 75
array getParameters()

No description

Return Value

array

at line 81
int|null getColumnCount()

No description

Return Value

int|null

at line 87
int|null getRowCount()

No description

Return Value

int|null

at line 94
array getColumns()

No description

Return Value

array

at line 101
array getColumnTypes()

No description

Return Value

array

at line 109
float getTime()

No description

Return Value

float

at line 116
array normalizeRow(array $row)

internal  
 

No description

Parameters

array $row

Return Value

array

at line 130
void dump()

Displays complete result set as HTML table for debug purposes.

Return Value

void

at line 139
void rewind()

No description

Return Value

void

at line 147
Row|false|null current()

No description

Return Value

Row|false|null

at line 153
int key()

No description

Return Value

int

at line 159
void next()

No description

Return Value

void

at line 165
bool valid()

No description

Return Value

bool

at line 178
Row|null fetch()

Fetches single row object.

Return Value

Row|null

at line 202
array|null fetchArray()

internal  
 

No description

Return Value

array|null

at line 211
mixed fetchField()

Fetches single field.

Return Value

mixed

at line 221
array|null fetchFields()

Fetches array of fields.

Return Value

array|null

at line 231
array fetchPairs(string|int|null $key = null, string|int|null $value = null)

Fetches all rows as associative array.

Parameters

string|int|null $key
string|int|null $value

Return Value

array

at line 241
array fetchAll()

Fetches all rows.

Return Value

array

at line 251
array fetchAssoc(string $path)

Fetches all rows and returns associative tree.

Parameters

string $path

Return Value

array