Class input_textbox

Description

Input textbox class.

  • version: $Revision: 1.5 $

Located in /input.textbox.php (line 30)

input_base
   |
   --input_form_element
      |
      --input_textbox
Direct descendents
Class Description
 class input_passwordbox Password textbox class.
 class input_hiddenbox Input hidden textbox class.
Variable Summary
 string $type
Method Summary
 input_textbox input_textbox (string $name, object &$form, [string $regex = NULL], [string $value = NULL], [string $caption = NULL], [bool $required = TRUE])
 void display ([string $class = NULL], [int $size = NULL], [string $javascript = NULL])
Variables
Methods
Constructor input_textbox (line 49)

Constructs a new textbox object.

input_textbox input_textbox (string $name, object &$form, [string $regex = NULL], [string $value = NULL], [string $caption = NULL], [bool $required = TRUE])
  • string $name: The name of the textbox.
  • object $form: Reference to associated form.
  • string $regex: The validation regular expression.
  • string $value: The initial contents value.
  • string $caption: The caption to display by the textbox.
  • bool $required: Whether the texbox is allowed to contain no value.
display (line 72)

Display the textbox.

If the value was not valid, the CSS class is set/changed to 'error'.

void display ([string $class = NULL], [int $size = NULL], [string $javascript = NULL])
  • string $class: CSS class name used in <input.. > tag.
  • int $size: Integer specifying the size of the textbox; compared to INFUSE_.._MAX/MIN to ensure that size is within range. If $size is not specified, INFUSE_..._MAX is used.
  • string $javascript: Specification of javascript: onClick, etc.

Redefined in descendants as:

Inherited Methods

Inherited From input_form_element

 input_form_element::input_form_element()
 input_form_element::_get_error_css()

Inherited From input_base

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

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