Class FEHostNameWithPort

Description

This is the DomainName FormElement which builds a text input field. It also includes a port # It validates as is_domainname().

Located in Program_Root/form/form_elements/FEText.inc (line 210)

FormElement
   |
   --FEText
      |
      --FEHostNameWithPort
Direct descendents
Class Description
FEIPAddressWithPort This is the Ip Address FormElement which builds a text input field.
Variable Summary
Method Summary
void FEHostNameWithPort (label $label, [bool $required = TRUE], [int $width = NULL], [int $maxlength = NULL], [bool $seperate_port = FALSE])
object get_element ()
void validate (FormValidation &$_FormValidation)
bool _validate_hostname (mixed &$_FormValidation, mixed $value)
Variables
Methods
Constructor FEHostNameWithPort (line 227)

The constructor

void FEHostNameWithPort (label $label, [bool $required = TRUE], [int $width = NULL], [int $maxlength = NULL], [bool $seperate_port = FALSE])
  • 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:

    required - maximum number of chars allowed to type in

  • bool $seperate_port:

    optional - seperate the port value into it's own textarea field

get_element (line 239)

This function builds and returns the form element object

object get_element ()

Redefinition of:
FEText::get_element()
This function builds and returns the form element object
validate (line 286)

This method validates the data for this Form Element.

It validates as is_domainname().

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
_validate_hostname (line 322)

this validates the hostname field only

  • return:

    TRUE = valid

bool _validate_hostname (mixed &$_FormValidation, mixed $value)

Redefined in descendants as:

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:36 -0700 by phpDocumentor 1.2.0