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.
This class returns data as an associative array and is thus the most useful of all the data access methods. It extends the dbrows class, and over-rides the get_row_raw method to retrieve data.
Located in /query-defs.php (line 836)
sqlquery | --dbquery | --dbrows | --dbrecords
Class | Description |
---|---|
![]() |
DB Select class A special case of the dbrecords class. |
Inherited from dbrows
dbrows::$current_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 Records object.
Get field content Return the field content from the current database array (row).
If the value is a string, then stripslashes is done automatically.
Return whether the name field exists in the resultset, true or false.
Database independent boolean handling. Returns TRUE if the named field in the current row is boolean true according to the rules of the underlying database, else returns FALSE.
Get field content Return the field content from the current database array (row).
Does not provide ANY pre/post-processing.
Inherited From dbrows
dbrows::dbrows()
dbrows::eof()
dbrows::execute()
dbrows::get_current()
dbrows::get_first()
dbrows::get_last()
dbrows::get_next()
dbrows::get_previous()
dbrows::get_row()
dbrows::refresh()
dbrows::rowexists()
dbrows::set_sql()
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