Create a new DBList object
DBList
DBList
(string $table, mixed $returnFields, mixed $restriction, [boolean $distinct = false])
-
string
$table: name of (primary) table to be interrogated
-
mixed
$returnFields: single column name or list of column names to be returned from the db
-
mixed
$restriction: single or list of restrictions to be 'AND'ed together
-
boolean
$distinct: select only DISTINCT rows from the db
Fill the object from the database
void
fill
()
format a row of data
string
format
(array $data)
-
array
$data: name=>value pairs of data
format the list using the designated formats into another list
void
formatList
()
format a header row
string
outputHeader
()
Create a set of OutputFormatter objects to handle the display of this object.
void
setFormat
( $f, $v, string $f1, array $v1)
-
string
$f1: sprintf format (see PHP manual)
-
array
$v1: array of indices that will be used to fill the fields in the sprintf format from a $data array passed to the formatter later.
-
$f
-
$v
generate the appropriate SQL syntax for this query
string
_getSQLsyntax
()
create a row of data with the value and some formatting data for use by the Array/HTML/PDF Export
array
_makeArray
( &$d)