blueshoes php application framework and cms            core_db
[ class tree: core_db ] [ index: core_db ] [ all elements ]

Class: Bs_ResultSet

Source Location: /core/db/Bs_ResultSet.class.php

Class Overview

Bs_Object
   |
   --Bs_ResultSet

This class implements a wrapper for a DB result set.


Author(s):

Version:

  • 4.3.$Revision: 1.1.1.1 $ $Date: 2003/07/04 14:04:37 $

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 16]
This class implements a wrapper for a DB result set.

A new instance of this class will be returned by the DB implementation after processing a query that returns data.




Tags:

access:  public
version:  4.3.$Revision: 1.1.1.1 $ $Date: 2003/07/04 14:04:37 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$_dbh =

[line 22]

db handler


Type:   $_dbh


[ Top ]

$_result =

[line 28]

result set


Type:   $_result


[ Top ]



Class Methods


constructor Bs_ResultSet [line 37]

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

constructor.



Tags:

access:  public


Parameters:

$dbh   &$dbh   DB object reference
$result   &$result   result resource

[ Top ]

method fetchRow [line 50]

array fetchRow( [int $fetchMode = NULL])

Fetch and return a row of data.



Tags:

return:  a row of data, or false on error
throws:  bs_exception
access:  public


Parameters:

int   $fetchMode  

[ Top ]

method free [line 82]

void free( )

Frees the resources allocated for this result set.



Tags:

return:  (any errors are ignored)
access:  public


[ Top ]

method numCols [line 61]

int numCols( )

Get the the number of columns in a result set.



Tags:

return:  the number of columns
throws:  bs_exception
access:  public


[ Top ]

method numRows [line 72]

int numRows( )

Get the number of rows in a result set.



Tags:

return:  the number of rows, or a DB error
throws:  bs_exception
access:  public


[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:12:34 +0100 by phpDocumentor 1.2.3