|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/db/Bs_ResultSet.class.php
BlueShoes Application Framework - db
Bs_ResultSet
Bs_Object | +-- Bs_ResultSet
This class implements a wrapper for a DB result set.
|
public class Bs_ResultSet extends Bs_Object
This class implements a wrapper for a DB result set.
A new instance of this class will be returned by the DB implementationafter processing a query that returns data.dependencies:
| Authors | |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
Private Field Summary |
| unknown |
$_dbhdb handler |
| unknown |
$_resultresult set |
|
|
|
Public Method Details |
Bs_ResultSet |
|
public void Bs_ResultSet( object reference &$dbh, &$result )
|
| |
constructor.
|
| Parameter |
|
|
|
|
&$result |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
fetchRow |
|
public array fetchRow( [ string $fetchMode ] )
|
| |
Fetch and return a row of data.
|
| Parameter |
|
| string |
$fetchMode |
= >>NULL<< |
|
|
|
| Returns |
array a row of data, or false on error
@throw bs_exception |
|
numCols |
|
public int numCols( )
|
| |
Get the the number of columns in a result set.
|
| Returns |
int the number of columns
@throw bs_exception |
|
numRows |
|
public int numRows( )
|
| |
Get the number of rows in a result set.
|
| Returns |
int the number of rows, or a DB error
@throw bs_exception |
|
free |
|
public void free( )
|
| |
Frees the resources allocated for this result set.
|
| Returns |
void |
|
|
Private Field Details |
$_dbh |
|
private unknown $_dbh
>><<
db handler
|
|
$_result |
|
private unknown $_result
>><<
result set
|
|
|
Private Constant Details |
BS_RESULTSET_VERSION
define( BS_RESULTSET_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |