DiogenesQuery Class Reference

List of all members.

Public Member Functions

 DiogenesQuery ($sQue="")
 addArg ($sArg, $sSep="")
 getPages ($qcount, $hitmax=0)
 getResult (&$dbh, $hitmax=0, $start=0)
 getQuery ()

Public Attributes

 $nArgs
 $sQuery

Detailed Description

A class for describing database queries and breaking down the results into pages.

Definition at line 26 of file diogenes.query.inc.php.


Member Function Documentation

DiogenesQuery::DiogenesQuery ( sQue = ""  ) 

The constructor.

Definition at line 34 of file diogenes.query.inc.php.

DiogenesQuery::addArg ( sArg,
sSep = "" 
)

Add an argument to the query.

Definition at line 42 of file diogenes.query.inc.php.

DiogenesQuery::getPages ( qcount,
hitmax = 0 
)

Return an array holding the start and end point for the pages holding the results.

Definition at line 53 of file diogenes.query.inc.php.

DiogenesQuery::getResult ( &$  dbh,
hitmax = 0,
start = 0 
)

Execute the query and return the result.

Definition at line 75 of file diogenes.query.inc.php.

DiogenesQuery::getQuery (  ) 

Accessor for the query string.

Definition at line 88 of file diogenes.query.inc.php.


Member Data Documentation

DiogenesQuery::$nArgs

The number of arguments in the current query.

Definition at line 28 of file diogenes.query.inc.php.

DiogenesQuery::$sQuery

The current query string.

Definition at line 30 of file diogenes.query.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Jan 11 01:20:09 2008 for Diogenes by  doxygen 1.5.1