Class TFormSelectSubmit

Description

Select Field, with auto-submit

  • version: 03-08-2002 12:00
  • author: Greg MacLellan

Located in /form-selectsubmit.inc.php (line 12)

TFormElement
   |
   --TFormSelect
      |
      --TFormSelectSubmit
Variable Summary
mixed $elements
mixed $htmltype
mixed $required
mixed $type
Method Summary
void output (string $name, string $displayname, string $class, bool $required, array $elements, string $value, bool $store)
Variables
mixed $elements (line 13)

Redefinition of:
TFormSelect::$elements
mixed $htmltype = "select" (line 18)

The HTML element type


Redefinition of:
TFormSelect::$htmltype
The HTML element type
mixed $required (line 14)

Redefinition of:
TFormSelect::$required
mixed $type = "select" (line 16)

The type of element


Redefinition of:
TFormSelect::$type
The type of element

Inherited Variables

Inherited from TFormElement

TFormElement::$alwaysSet
TFormElement::$class
TFormElement::$displayname
TFormElement::$name
TFormElement::$parent
TFormElement::$store
TFormElement::$value
Methods
output (line 38)

Creates a new TFormSelectSubmit element (basic text field).

void output (string $name, string $displayname, string $class, bool $required, array $elements, string $value, bool $store)
  • string $name: The name of the element. This should correspond to the field names 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
  • bool $required: True if the first element can't be selected
  • array $elements: The elements to go in the box. Key field is value, value is the displayed value.
  • string $value: The initial value for the field. Note if using a TDBForm this value will be overridden by loadValues so it is effectively only the default for new entries.
  • bool $store: Whether this value is persistent. Used by TDBForm to decide to save/load this value from database.

Redefinition of:
TFormSelect::output()

Inherited Methods

Inherited From TFormSelect

TFormSelect::TFormSelect()
TFormSelect::getValue()
TFormSelect::output()
TFormSelect::validate()

Inherited From TFormElement

TFormElement::TFormElement()
TFormElement::getValue()
TFormElement::output()
TFormElement::setParent()
TFormElement::setValue()
TFormElement::validate()

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