Class input_form_element

Description

Base input element class for form elements

  • version: $Revision: 1.3 $

Located in /input.lib.php (line 196)

input_base
   |
   --input_form_element
Direct descendents
Class Description
 class input_checkbox Input checkbox class.
 class input_dropdown Dropdown list class.
 class input_radio Input radio class.
 class input_textarea Input textarea class.
 class input_textbox Input textbox class.
Variable Summary
Method Summary
 input_form_element input_form_element (string $name, object &$form, [string $regex = NULL], [string $value = NULL], [bool $required = FALSE], [mixed $caption = NULL])
 string _get_error_css (string $class)
Variables
mixed $caption (line 201)

The caption associated with the form element

input_form $form (line 208)

Reference to form input object is part of

Inherited Variables

Inherited from input_base

input_base::$default
input_base::$name
input_base::$regex
input_base::$required
input_base::$value
input_base::$wasSet
input_base::$wasValid
Methods
Constructor input_form_element (line 219)

Constructs a new base object.

input_form_element input_form_element (string $name, object &$form, [string $regex = NULL], [string $value = NULL], [bool $required = FALSE], [mixed $caption = NULL])
  • string $name: The name of the form element.
  • object $form: Reference to associated form (can be before object is added to form).
  • string $regex: A regular expression used to validate supplied data, or null.
  • string $value: The default value - used if not otherwise specified (in form, session, or cookie data).
  • bool $required: True if item is required.
_get_error_css (line 236)

Check validity of value.

If value is not valid, add "error" to CSS specification.

string _get_error_css (string $class)
  • string $class: Original CSS specification for element

Inherited Methods

Inherited From input_base

 input_base::input_base()
 input_base::reset()
 input_base::set()

Documentation generated on Fri, 28 Jan 2005 10:00:57 -0800 by phpDocumentor 1.2.3