DB Rows class Renders a query into data and allows access to the data either directly or via the usual get first,last,next,previous cursor navigation.
This class returns data as "rows" which is to say a standard array of data. For the associative array version then please
Located in /query-defs.php (line 633)
sqlquery | --dbquery | --dbrows
Class | Description |
---|---|
![]() |
DB Records class Renders a query into data and allows access to the data either directly or via the usual get first,last,next,previous cursor navigation. |
An array containing the current DB row
Inherited from dbquery
dbquery::$affectedrowcount
dbquery::$hasdata
dbquery::$last_errormsg
dbquery::$rid
dbquery::$rowcount
dbquery::$rowno
dbquery::$valid
Inherited from sqlquery
sqlquery::$fields
sqlquery::$groupby
sqlquery::$limit
sqlquery::$offset
sqlquery::$orderby
sqlquery::$sql
sqlquery::$tables
sqlquery::$type
sqlquery::$where
Constructor Create a new DB Rows object.
Return the EOF (end-of-file) indicator for this query. Returns true if no more results can be returned with get_next(), ie. we are at the end of the results set.
Execute query Execute this query. We override the parent method here simply to ensure we are positioned at the first row.
Get current row If current query is invalid, try to execute it first, then do a get_first(). If query is then valid, return the current row.
Get current row If current query is invalid, try to execute it first, then do a get_first(). If query is then valid, return the current row.
Get last row If current query is invalid, try to execute it first, then get the last row from the resultset.
Get next row If current query is invalid, try to execute it first, then get the next row from the resultset.
Get previous row If current query is invalid, try to execute it first, then get the previous row from the resultset.
Get row Return the given database row from the resultset. Uses the get_row_raw() method applicable to this class.
Refresh the query Re-run the current SQL query. If successful the row will be stored in $this->current_row.
Returns true if the row number exists in the returned resultset.
The query has to be valid, and there have to be some rows in it.
Set the SQL statement In this case we re-execute the SQL automatically.
Inherited From dbquery
dbquery::dbquery()
dbquery::execute()
dbquery::set_sql()
dbquery::tidyup()
Inherited From sqlquery
sqlquery::sqlquery()
sqlquery::build()
sqlquery::clear()
sqlquery::fieldlist()
sqlquery::from()
sqlquery::groupby()
sqlquery::into()
sqlquery::limit()
sqlquery::offset()
sqlquery::orderby()
sqlquery::rebuild()
sqlquery::set()
sqlquery::tables()
sqlquery::where()
Documentation generated by phpDocumentor 1.3.0RC3