class ResultSet implements Iterator, IRowContainer

Represents a result set.

Methods

__construct(Connection $connection, $queryString, array $params)

No description

getConnection()

No description

getPdoStatement()

No description

string
getQueryString()

No description

array
getParameters()

No description

int
getColumnCount()

No description

int
getRowCount()

No description

float
getTime()

No description

array
normalizeRow($row)

Normalizes result row.

void
dump()

Displays complete result set as HTML table for debug purposes.

rewind()

No description

current()

No description

key()

No description

next()

No description

valid()

No description

IRow|bool
fetch()

Fetches single row object.

mixed|false
fetchField($column = 0)

Fetches single field.

array|null
fetchFields()

Fetches array of fields.

array
fetchPairs($key = null, $value = null)

Fetches all rows as associative array.

IRow[]
fetchAll()

Fetches all rows.

array
fetchAssoc($path)

Fetches all rows and returns associative tree.

Details

at line 52
__construct(Connection $connection, $queryString, array $params)

No description

Parameters

Connection $connection
$queryString
array $params

at line 86
Connection getConnection()

No description

Return Value

Connection

at line 96
PDOStatement getPdoStatement()

internal  
 

No description

Return Value

PDOStatement

at line 105
string getQueryString()

No description

Return Value

string

at line 114
array getParameters()

No description

Return Value

array

at line 123
int getColumnCount()

No description

Return Value

int

at line 132
int getRowCount()

No description

Return Value

int

at line 141
float getTime()

No description

Return Value

float

at line 152
array normalizeRow($row)

Normalizes result row.

Parameters

$row

Return Value

array

at line 202
void dump()

Displays complete result set as HTML table for debug purposes.

Return Value

void

at line 211
rewind()

No description

at line 219
current()

No description

at line 225
key()

No description

at line 231
next()

No description

at line 237
valid()

No description

at line 253
IRow|bool fetch()

Fetches single row object.

Return Value

IRow|bool

if there is no row

at line 282
mixed|false fetchField($column = 0)

Fetches single field.

Parameters

$column

Return Value

mixed|false

at line 293
array|null fetchFields()

Fetches array of fields.

Return Value

array|null

at line 303
array fetchPairs($key = null, $value = null)

Fetches all rows as associative array.

Parameters

$key
$value

Return Value

array

at line 312
IRow[] fetchAll()

Fetches all rows.

Return Value

IRow[]

at line 324
array fetchAssoc($path)

Fetches all rows and returns associative tree.

Parameters

$path

Return Value

array

Traits

SmartObject