Class FormField

Description

Located in /lib/FormField.php (line 18)


	
			
Variable Summary
 string $id
 string $text
 string $type
 string $value
Method Summary
 FormField __construct (string $text, string $id, string $type, [string $value = ''], [mixed $highlight = false], bool $hieghtlight)
Variables
bool $hightlight = false (line 50)

If true, this field should be hilighted if painted.

  • access: public
string $id = '' (line 38)

The unique id for this field, used to extract it from the incoming data and to match it to its defenition for processing.

  • access: public
string $text = '' (line 24)

The title or caption for the form field

  • access: public
string $type = 'text' (line 31)

The type (needed for processing) of the form field. Some types (eg. 'email') require additional validation to be effective.

  • access: public
string $value = '' (line 44)

The current (or default if used in defenition) value for the field.

  • access: public
Methods
Constructor __construct (line 61)

Constructor.

  • access: public
FormField __construct (string $text, string $id, string $type, [string $value = ''], [mixed $highlight = false], bool $hieghtlight)
  • string $text: The title or caption
  • string $id: The unique identifier for current field
  • string $type: The type of the field (for processing and display)
  • string $value: The (default) value assigned to the field (optional)
  • bool $hieghtlight: Usually, a true value here means an error with input

Documentation generated on Mon, 25 Oct 2004 15:26:18 -0700 by phpDocumentor 1.3.0RC3