Class input_radio

Description

Input radio class.

  • version: $Revision: 1.3 $

Located in /input.radio.php (line 25)

input_base
   |
   --input_form_element
      |
      --input_radio
Variable Summary
 array $buttons
Method Summary
 input_radio input_radio (string $name, object &$form, [int $value = NULL], [array $buttons = NULL], [string $caption = NULL])
 void display ([string $class = NULL], [string $javascript = NULL])
 bool set (string $value)
Variables
Methods
Constructor input_radio (line 43)

Constructs a new radio group.

input_radio input_radio (string $name, object &$form, [int $value = NULL], [array $buttons = NULL], [string $caption = NULL])
  • string $name: The name of the radio.
  • object $form: Reference to associated form.
  • int $value: The initial value.
  • array $buttons: The buttons in the radio object.
  • string $caption: The caption to display by the radiobutton
display (line 79)

Display the radio group.

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

void display ([string $class = NULL], [string $javascript = NULL])
  • string $class: CSS class assigned to the radio buttons
  • string $javascript: Specification of javascript: onClick, etc.
set (line 55)

Sets the value of the radio group.

  • return: TRUE on success.
bool set (string $value)
  • string $value: The value to set the radio group to.

Redefinition of:
input_base::set()
Sets the value of the object to the specified value if that value is valid according to regex given to constructor.

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:57 -0800 by phpDocumentor 1.2.3