void
checkBoxes
(mixed $array, [mixed $name = ''], [mixed $selected = null], [mixed $additional = ''])
Returns the resulting table but uses the $key field as an index
Mixed
cloneDataset
(mixed &$db, String $table, String $id_col, String $id, [Array $exclusion = null])
-
String
$table: the table name
-
String
$id_col: the name of the primary key column
-
String
$id: the key of the dataset to clone
-
Array
$exclusion: columns not to copy
Returns a html table for a 2-dimensional result set
String
dumpAll
(Array $array, [Boolean $addHeader = true], [Boolean $headerArray = null], [mixed $tableTag = 'border="1"'], [mixed $trTag = ''], [mixed $tdTag = ''], [mixed $thTag = ''])
-
Array
$array: the result set
-
Boolean
$addHeader: show the array keys as header
-
Boolean
$headerArray: alternative headers
Returns a html table for a result column
String
dumpColumn
(Array $array, [Boolean $horizontal = true], [Boolean $headerTitle = ''], [mixed $tableTag = 'border="1"'], [mixed $trTag = ''], [mixed $tdTag = ''], [mixed $thTag = ''])
-
Array
$array: the result set
-
Boolean
$horizontal: order the table horizontally?
-
Boolean
$headerTitle: alternative header?
Returns a html table for a result row
String
dumpNext
(Array $array, [Boolean $addHeader = false], [Boolean $singleRow = true], [mixed $headerTitle = ''], [mixed $tableTag = 'border="1"'], [mixed $trTag = ''], [mixed $tdTag = ''], [mixed $thTag = ''])
-
Array
$array: the result set
-
Boolean
$addHeader: display keys as header?
-
Boolean
$singleRow: append table open and close tags?
Returns the number of elements in a column
Integer
getCount
(
AbstractDB &$db,
String $tableName)
-
AbstractDB
$db: db resource
-
String
$tableName: table
Returns the max value for a given table column
String
getMax
(
AbstractDB &$db,
String $tableName,
String $columnName)
-
AbstractDB
$db: db resource
-
String
$tableName: table
-
String
$columnName: column
Returns the min value for a given table column
String
getMin
(
AbstractDB &$db,
String $tableName,
String $columnName)
-
AbstractDB
$db: db resource
-
String
$tableName: table
-
String
$columnName: column
void
radioButtons
(mixed $array, [mixed $name = ''], mixed $selected, [mixed $additional = ''])
Returns a html selectBox for a result column
String
selectBox
(Array $array, [mixed $name = ''], Integer $selected, [Integer $size = 1], [Boolean $multiple = false], [String $additional = ''])
-
Array
$array: the result set
-
Integer
$selected: the preselected value
-
Integer
$size: number of elements shown
-
Boolean
$multiple: multiple select?
-
String
$additional: additional html code for the select tag
Inherited Methods
Inherited From UtilityClass
UtilityClass::UtilityClass()