Class Horde_Mobile_select

Description

This class provides a select element in a Horde_Mobile_form object.

It allows to create optimized WML for WAP devices which are capable to interprete the Openwave GUI extensions for WML 1.3. All other WML devices receive WML 1.1 compatible markup code, which is quite similar to the markup code created by the Horde_Mobile_radio class.

Examples:

$mySelect = new Horde_Mobile_select('color'); $mySelect->add('Blue', 'b'); $mySelect->add('Red', 'r', true); $mySelect->add('Yellow', 'y');

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

Horde_Mobile_element
   |
   --Horde_Mobile_formElement
      |
      --Horde_Mobile_select
Variable Summary
 mixed $_htmlchars
 mixed $_options
 mixed $_type
Method Summary
 Horde_Mobile_select Horde_Mobile_select (string $name, [string $type = 'popup'], [string $label = ''], [string $htmlchars = false])
 void add (string $label, string $value, [boolean $is_selected = false])
Variables
Methods
Constructor Horde_Mobile_select (line 1047)

Constructor

Horde_Mobile_select Horde_Mobile_select (string $name, [string $type = 'popup'], [string $label = ''], [string $htmlchars = false])
  • string $name: Variable in which the information about the selected option is sent to the destination URL.
  • string $type: Type of select area: 'popup': popup the whole selection list 'spin': rotate options on a WAP device screen (OW 1.3 GUI only).
  • string $label: Describes your input field on the surfer's screen/display.
  • string $htmlchars: Are the options already encoded for output?
add (line 1065)

Adds one option to a Horde_Mobile_select object.

void add (string $label, string $value, [boolean $is_selected = false])
  • string $label: Describes the option on the surfer's screen/display.
  • string $value: Value sent in the "name" variable, if this is the option selected.
  • boolean $is_selected: 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