class ResultSet implements Iterator, IRowContainer

Represents a result set.

Methods

__construct(Connection $connection, string $queryString, array $params, callable $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
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

current()

No description

key()

No description

void
next()

No description

bool
valid()

No description

Row|null
fetch()

Fetches single row object.

mixed
fetchField($column = 0)

Fetches single field.

array|null
fetchFields()

Fetches array of fields.

array
fetchPairs(string|int $key = null, string|int $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 54
__construct(Connection $connection, string $queryString, array $params, callable $normalizer = null)

No description

Parameters

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

at line 87
Connection getConnection() deprecated

deprecated

No description

Return Value

Connection

at line 96
PDOStatement|null getPdoStatement()

internal  
 

No description

Return Value

PDOStatement|null

at line 102
string getQueryString()

No description

Return Value

string

at line 108
array getParameters()

No description

Return Value

array

at line 114
int|null getColumnCount()

No description

Return Value

int|null

at line 120
int|null getRowCount()

No description

Return Value

int|null

at line 126
array getColumnTypes()

No description

Return Value

array

at line 135
float getTime()

No description

Return Value

float

at line 142
array normalizeRow(array $row)

internal  
 

No description

Parameters

array $row

Return Value

array

at line 156
void dump()

Displays complete result set as HTML table for debug purposes.

Return Value

void

at line 165
void rewind()

No description

Return Value

void

at line 173
current()

No description

at line 180
key()

No description

at line 187
void next()

No description

Return Value

void

at line 193
bool valid()

No description

Return Value

bool

at line 206
Row|null fetch()

Fetches single row object.

Return Value

Row|null

at line 234
mixed fetchField($column = 0)

Fetches single field.

Parameters

$column

Return Value

mixed

at line 247
array|null fetchFields()

Fetches array of fields.

Return Value

array|null

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

Fetches all rows as associative array.

Parameters

string|int $key

column name used for an array key or null for numeric index

string|int $value

column name used for an array value or null for the whole row

Return Value

array

at line 269
array fetchAll()

Fetches all rows.

Return Value

array

at line 282
array fetchAssoc(string $path)

Fetches all rows and returns associative tree.

Parameters

string $path

associative descriptor

Return Value

array

Traits

Strict class for better experience.