interface IRowContainer implements Traversable

Container of database result fetched into IRow.

Methods

IRow|null
fetch()

Fetches single row object.

mixed
fetchField()

Fetches single field.

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 22
IRow|null fetch()

Fetches single row object.

Return Value

IRow|null

at line 28
mixed fetchField()

Fetches single field.

Return Value

mixed

at line 35
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 41
array fetchAll()

Fetches all rows.

Return Value

array

at line 47
array fetchAssoc(string $path)

Fetches all rows and returns associative tree.

Parameters

string $path associative descriptor

Return Value

array