Class TFormDayPicker

Description

Picks day of week

  • version: 05-07-2002 11:50
  • author: Greg MacLellan

Located in /form-daypicker.inc.php (line 20)

TFormElement
   |
   --TFormDayPicker
Variable Summary
mixed $htmltype
mixed $required
mixed $type
Method Summary
TFormDayPicker TFormDayPicker (string $name, string $displayname, string $class, bool $required, [int $value = ""], [bool $store = true])
A getValue ([$display $display = false])
void output ()
true setValue (mixed $value)
void validate ()
Variables
mixed $htmltype = "checkbox" (line 25)

The HTML element type


Redefinition of:
TFormElement::$htmltype
The HTML element type
mixed $required (line 21)
mixed $type = "multicheck" (line 23)

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 TFormDayPicker (line 43)

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

TFormDayPicker TFormDayPicker (string $name, string $displayname, string $class, bool $required, [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 84)

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 106)
void output ()

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

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 48)
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