Class TFormLookupMulticheck

Description

Select Field, values taken from database table

  • version:

    10-08-03

    Note: change as of version 5-29, $linkfield added. All existing implementations must make note and modify the call to TFormLookup

  • author: Greg MacLellan

Located in /form-lookup-multicheck.inc.php (line 15)

TFormMulticheck
   |
   --TFormLookupMulticheck
Variable Summary
mixed $htmltype
mixed $table
mixed $type
Method Summary
TFormLookupMulticheck TFormLookupMulticheck (string $name, string $displayname, string $class, TDatabaseAbstract &$db, string $table, string $linkfield, string $displayfield, [string $where = ""], [string $seperator = ";"], [bool $store = true])
Variables
mixed $htmltype = "checkbox" (line 20)

The HTML element type

mixed $table (line 16)
mixed $type = "multicheck" (line 18)

The type of element

Methods
Constructor TFormLookupMulticheck (line 43)

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.

Documentation generated on Thu, 27 Nov 2003 14:58:55 -0500 by phpDocumentor 1.2.3