QueryDataSet Class Reference

Inheritance diagram for QueryDataSet:

DataSet

List of all members.

Public Member Functions

 __construct ($p1, $selectSql=null)
 Creates a new QueryDataSet based on a connection and a select string.
 getSelectSql ()
 get the Select String that was used to create this QueryDataSet


Detailed Description

Definition at line 46 of file QueryDataSet.php.


Constructor & Destructor Documentation

QueryDataSet::__construct ( p1,
selectSql = null 
)

Creates a new QueryDataSet based on a connection and a select string.

This class can be instantiated with a couple signatures:

Parameters:
mixed $p1 Connecton or ResultSet (depending on signature)
string $selectStmt SELECT SQL (only if $p1 is Connection)

Definition at line 58 of file QueryDataSet.php.

References DataSet::$selectSql, and DataSet::resultSet().

00059     {
00060         if ($selectSql !== null) {
00061             $this->conn = $p1;
00062             $this->selectSql = $selectSql;
00063         } else {
00064             $this->resultSet = $p1;
00065         }
00066     }


Member Function Documentation

QueryDataSet::getSelectSql (  ) 

get the Select String that was used to create this QueryDataSet

Returns:
a select string

Reimplemented from DataSet.

Definition at line 73 of file QueryDataSet.php.

00074     {
00075         return $this->selectSql;
00076     }


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8