Class FEButton

Description

This is the button FormElement which builds a input field of type="button". It has no validation method.

Located in Program_Root/form/form_elements/FEButton.inc (line 28)

FormElement
   |
   --FEBoxElement
      |
      --FEButton
Direct descendents
Class Description
FESubmitButton This is the SubmitButton FormElement which builds a input field of type="submit". It has no validation method.
FEConfirmActionButton This builds a button that will do a JS popup question, asking for yes/no. if yes, it submits the form.
Variable Summary
mixed $_action
Method Summary
void FEButton (label $label, string $value, [string $action = NULL], [int $width = NULL], [int $height = NULL])
object get_element ()
string onClick ()
Variables
Methods
Constructor FEButton (line 46)

The constructor

void FEButton (label $label, string $value, [string $action = NULL], [int $width = NULL], [int $height = NULL])
  • label $label:

    string - text label for the element

  • string $value:

    value - button text

  • string $action:

    action - action to perform

  • int $width:

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

  • int $height:

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

get_element (line 75)

This function builds and returns the form element object

object get_element ()

Redefinition of:
FormElement::get_element()
This function builds and returns the form element object

Redefined in descendants as:
onClick (line 60)

This function return the javaScript code for an onClick event

  • return:

    - javascript code

string onClick ()

Redefinition of:
FormElement::onClick()
This function return the javaScript code for an onClick event

Redefined in descendants as:

Inherited Methods

Inherited From FEBoxElement

FEBoxElement::FEBoxElement()

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