Class Form

Description

Located in /lib/Form.php (line 23)


	
			
Variable Summary
 mixed $fields
Method Summary
 FormField createField (string $text, string $id, [string $type = 'text'])
 array loadFormItems (array $data, Form $form)
 string paint ([FormPainter &$painter = null])
 bool validate (array $data, Form $form, mixed &$problemField)
Variables
mixed $fields = array() (line 30)

An array containing all of the form's elements.

Methods
createField (line 43)

Creates a new FormField object and adds it to the internal field array.

FormField createField (string $text, string $id, [string $type = 'text'])
  • string $text: The display text or field caption
  • string $id: The form element id or name for processing
  • string $type: The form element type such as text, email, etc.
loadFormItems (line 128)

Creates an array from incoming data by extracting only the items which belong to the specified form.

  • static:
  • access: public
  • see: Form
array loadFormItems (array $data, Form $form)
  • array $data: Raw input
  • Form $form: Form object to filter by
paint (line 62)

Generates the form's output code for display to the end user. Uses the supplied painter object or a DefaultFormPainter object if nothing is supplied.

string paint ([FormPainter &$painter = null])
  • FormPainter $painter: The object to output with (defaults to DefaultFormPainter)
validate (line 90)

Validates incoming form data.

  • static:
  • access: public
  • see: Form
bool validate (array $data, Form $form, mixed &$problemField)
  • array $data: The incoming data
  • Form $form: The form object to reference these data by

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