Creates a new TFormLookup element (multi checkbox with data from another table).
TFormLookupMulticheck
TFormLookupMulticheck
(string $name, string $displayname, string $class, TDatabaseAbstract &$db, string $table, string $linkfield, string $displayfield, [string $where = ""], [string $seperator = ";"], [bool $store = true])
-
string
$name: The name of the element. This should correspond to the field name if using with TDBForm, and should not include any spaces or special characters.
-
string
$displayname: The name that should show up to the user for this field.
-
string
$class: The HTML Class to use for the element
-
TDatabaseAbstract
$db: A reference to a connected DatabaseAbstract object, connected to the database you're using.
-
string
$table: The table containing the other data.
-
string
$linkfield: The field in $table to link to the current table
-
string
$displayfield: The field containing the display data. Note this can also be any valid SQL functions that can be used with SELECT. The results are ordered by the value of this field.
-
string
$where: A string containg the text for a "WHERE" clause, if used (ie "(Day = 'Monday') AND (ParentID = 46)" )
-
string
$seperator: The string to use to seperate values in the output string
-
bool
$store: Whether this value is persistent. Used by TDBForm to decide to save/load this value from database.