Implementation of a result using mySQL resources.

see \global\WebLab_Data_Result
author Jorgen Evens
package WebLab
subpackage Data_MySQL

 Methods

__construct()

__construct($result) 
Inherited
inherited_from \WebLab_Data_Result::__construct()

Parameters

$result

count()

count() 
Inherited
inherited_from \WebLab_Data_Result::count()

current()

current() 
Inherited
inherited_from \WebLab_Data_Result::current()

fetch()

fetch($id) 
Inherited
inherited_from \WebLab_Data_Result::fetch()

Parameters

$id

fetch_all()

fetch_all() 
Inherited
inherited_from \WebLab_Data_Result::fetch_all()

getTotalRows()

getTotalRows() 
Inherited
inherited_from \WebLab_Data_Result::getTotalRows()

next()

next() 
Inherited
inherited_from \WebLab_Data_Result::next()

previous()

previous() 
Inherited
inherited_from \WebLab_Data_Result::previous()

setTotalRows()

setTotalRows($total) 
Inherited
inherited_from \WebLab_Data_Result::setTotalRows()

Parameters

$total

Read the records from the resource into memory.

_read(resource $result) : mixed

Parameters

$result

resource

&$result The MySQL resource to read from.

Returns

mixedAn array of objects representing the records.

 Properties

 

$_rows 
Inherited
inherited_from \WebLab_Data_Result::$$_rows
 

$_total 
Inherited
inherited_from \WebLab_Data_Result::$$_total