OPTION_REMOVE
OPTION_REMOVE
A Catalog is a class that manages tabular data.
It's original purpose was to receive an array of mysql rows that were retrieved using the association method.
buildHTMLTable( $headings, $options, $sortbyField = "", $thumbsDirectory = "./", $forceTextArr = NULL, $pg_num = 1)
Returns a string of a table for this catalog.
To be used for display purposes.
$showOptions is based on the display
e.g. usage: getTable(array('id:ID','code:Code','catnum:Category Number', 'gallery_number:Gallery Number'), CAT_OPTION_EDIT | CAT_OPTION_REMOVE);
$headings | The headings pairs, e.g. array('id:ID','code:Code','catnum:Category Number', 'gallery_number:Gallery Number') The first value is the association in the array, the second value is the column title to display in the table. |
||||||||||||||||
$options | A list of options to use e.g. CAT_OPTION_EDIT | CAT_OPTION_REMOVE separated by |. Use zero if no options, but has image column. |
||||||||||||||||
$sortbyField | |||||||||||||||||
$thumbsDirectory | The directory where the thumbs are (if different than the page) Sample usage:print($cat->buildHTMLTable(array('image_name:Thumb','code:Code','catnum:Category Number', 'gallery_number:Gallery Number'), Catalog::OPTION_EDIT | Catalog::OPTION_REMOVE, 1, 'images_sm/')); Resulting output from sample usage:
|
||||||||||||||||
$forceTextArr | |||||||||||||||||
$pg_num |