Class FENumberInRange

Description

This is the Number Range FormElement which builds a text input field.

It validates as is_within_rage().

Located in Program_Root/form/form_elements/FENumbers.inc (line 126)

FormElement
   |
   --FEText
      |
      --FENumberInRange
Variable Summary
mixed $_label_flag
mixed $_max
mixed $_min
Method Summary
void FENumberInRange (label $label, [bool $required = TRUE], [int $width = NULL], [int $maxlength = NULL], int $min, [int $max = 100], [boolean $label_flag = TRUE])
void get_label ()
void validate (FormValidation &$_FormValidation)
Variables
mixed $_label_flag = TRUE (line 140)

Add the range to the label automatically?

mixed $_max = 100 (line 135)

The maximum #

mixed $_min = 0 (line 131)

The minimum #

Inherited Variables

Inherited from FormElement

FormElement::$_attributes
FormElement::$_element_name
FormElement::$_errors
FormElement::$_error_message
FormElement::$_form_name
FormElement::$_has_error
FormElement::$_is_disabled
FormElement::$_is_required
FormElement::$_label_text
FormElement::$_stripslashes
FormElement::$_style_attributes
FormElement::$_value
Methods
Constructor FENumberInRange (line 154)

The constructor

void FENumberInRange (label $label, [bool $required = TRUE], [int $width = NULL], [int $maxlength = NULL], int $min, [int $max = 100], [boolean $label_flag = TRUE])
  • label $label:

    string - text label for the element

  • bool $required:

    required - is this a required element

  • int $width:

    required - element width in characters, pixels (px), percentage (%) or elements (em)

  • int $maxlength:

    maximum number of chars allowed to type in the field

  • int $min:

    the minimum value allowable

  • int $max:

    the maximum value allowable

  • boolean $label_flag:

    - add the range to the label automatically?

get_label (line 162)
void get_label ()

Redefinition of:
FormElement::get_label()
This function builds and returns a label object based on the label text and error conditions
validate (line 188)

This method validates the data for this Form Element.

It validates as is_price().

void validate (FormValidation &$_FormValidation)

Redefinition of:
FormElement::validate()
This function performs the actual validation It is called only if the validation is required by this element

Inherited Methods

Inherited From FEText

FEText::FEText()
FEText::get_element()

Inherited From FormElement

FormElement::FormElement()
FormElement::create_element_name()
FormElement::get_attribute()
FormElement::get_element()
FormElement::get_element_name()
FormElement::get_errors()
FormElement::get_error_message()
FormElement::get_init_value()
FormElement::get_label()
FormElement::get_label_text()
FormElement::get_required_symbol()
FormElement::get_value()
FormElement::get_value_text()
FormElement::has_error()
FormElement::is_disabled()
FormElement::is_required()
FormElement::javascript()
FormElement::onBlur()
FormElement::onChange()
FormElement::onClick()
FormElement::onFocus()
FormElement::onSubmit()
FormElement::set_attribute()
FormElement::set_disabled()
FormElement::set_error_message()
FormElement::set_form_name()
FormElement::set_label_text()
FormElement::set_required()
FormElement::set_stripslashes()
FormElement::set_style_attribute()
FormElement::set_title()
FormElement::set_value()
FormElement::validate()
FormElement::_build_element_attributes()
FormElement::_build_javascript()
FormElement::_do_validation()

Documention generated on Thu, 31 Jul 2003 18:32:33 -0700 by phpDocumentor 1.2.0