Class TFormDayMatrix

Description

Picks day of week

  • version: 08-01-2003 11:50
  • author: Greg MacLellan

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

TFormElement
   |
   --TFormDayMatrix
Variable Summary
mixed $days
mixed $form
mixed $htmltype
mixed $legend
mixed $offcolor
mixed $oncolor
mixed $required
mixed $type
Method Summary
TFormDayMatrix TFormDayMatrix (string $name, string $displayname, string $class, bool $required, mixed &$form, [mixed $legend = true], [mixed $offcolor = "CCCCCC"], [mixed $oncolor = "33EE33"], [int $value = ""], [bool $store = true])
A getValue ([$display $display = false])
void output ()
true setValue (mixed $value)
void validate ()
Variables
mixed $days (line 23)
mixed $form (line 21)
mixed $htmltype = "checkbox" (line 17)

The HTML element type


Redefinition of:
TFormElement::$htmltype
The HTML element type
mixed $legend (line 22)
mixed $offcolor (line 20)
mixed $oncolor (line 19)
mixed $required (line 13)
mixed $type = "multicheck" (line 15)

The type of element


Redefinition of:
TFormElement::$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
Constructor TFormDayMatrix (line 41)

Creates a new TFormDateTime element (multi-combobox based date/time field).

TFormDayMatrix TFormDayMatrix (string $name, string $displayname, string $class, bool $required, mixed &$form, [mixed $legend = true], [mixed $offcolor = "CCCCCC"], [mixed $oncolor = "33EE33"], [int $value = ""], [bool $store = true])
  • 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 field has to be filled in
  • int $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.
getValue (line 89)

Returns a textual description of the current value

  • return: string containing the value of the element
A getValue ([$display $display = false])
  • $display $display: True if the value is going to be used for display

Redefinition of:
TFormElement::getValue()
Returns a textual description of the current value
output (line 105)
void output ()

Redefinition of:
TFormElement::output()
Outputs the HTML for this tag
setValue (line 65)

Sets the value of the field

  • return: if the value was set
true setValue (mixed $value)
  • mixed $value: The value to set

Redefinition of:
TFormElement::setValue()
Sets the value of the field
validate (line 52)
void validate ()

Redefinition of:
TFormElement::validate()
Validates the data in this field.

Inherited Methods

Inherited From TFormElement

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

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