BlueShoes Application Framework made with PHP http://www.blueshoes.org/


Packageindex Classtrees Modulegroups Elementlist Report XML Files

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
Version4.0.$id$
Copyrightblueshoes.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

Public Method Summary

void

Bs_ResultSet(object reference &$dbh, &$result)

constructor.
array

fetchRow([ string $fetchMode ])

Fetch and return a row of data.
int

numCols()

Get the the number of columns in a result set.
int

numRows()

Get the number of rows in a result set.
void

free()

Frees the resources allocated for this result set.

Private Field Summary

unknown

$_dbh

db handler
unknown

$_result

result set

Private Constant Summary

BS_RESULTSET_VERSION >>4.0.$x$<< Warning: documentation is missing.

Public Method Details

Bs_ResultSet

public void Bs_ResultSet( object reference &$dbh, &$result )

  constructor.

Parameter
object reference &$dbh
&$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




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta