Class Horde_Mobile_radio

Description

This class provides a radio button element in a Horde_Mobile_form object.

Examples:

$myRadio = new Horde_Mobile_radio('country'); $myRadio->add('Finland', 'F'); $myRadio->add('Germany', 'G', true); $myRadio->add('Sweden', 'S');

Located in /Mobile/Mobile.php (line 1091)

Horde_Mobile_element
   |
   --Horde_Mobile_formElement
      |
      --Horde_Mobile_radio
Variable Summary
 mixed $_buttons
Method Summary
 Horde_Mobile_radio Horde_Mobile_radio (string $name)
 void add (string $label, string $value, [boolean $is_checked = false])
Variables
Methods
Constructor Horde_Mobile_radio (line 1101)

Constructor

Horde_Mobile_radio Horde_Mobile_radio (string $name)
  • string $name: Variable in which the information about the pressed button is sent to the destination URL.
add (line 1116)

Adds one radio button to a Horde_Mobile_radio object.

void add (string $label, string $value, [boolean $is_checked = false])
  • string $label: Describes the radiobutton on the surfer's screen/display.
  • string $value: Value sent in the "name" variable, if this button is selected.
  • boolean $is_checked: Allowed values are true or false.

Inherited Methods

Inherited From Horde_Mobile_formElement

 Horde_Mobile_formElement::setMode()

Inherited From Horde_Mobile_element

 Horde_Mobile_element::Horde_Mobile_element()
 Horde_Mobile_element::get()
 Horde_Mobile_element::set()

Documentation generated on Sun, 30 Jan 2011 05:19:42 +0000 by phpDocumentor 1.4.3