Class Horde_Mobile_form

Description

This class defines a form with various possible input elements. The input elements have to be defined as separate objects and are linked to the form with a special "add" function. One Horde_Mobile object can contain only one Horde_Mobile_form object.

Examples:

$myPage = new Horde_Mobile(...);

$myForm = new Horde_Mobile_form("/mynextpage.wml"); $myText = new Horde_Mobile_text(...); $myForm->add($myText); $myInput = new Horde_Mobile_input(...); $myForm->add($myInput); $mySubmit = new Horde_Mobile_submit(...); $myForm->add($mySubmit);

$myPage->add($myForm);

$myPage->render();

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

Horde_Mobile_element
   |
   --Horde_Mobile_form
Variable Summary
 mixed $_elements
 mixed $_method
 mixed $_url
Method Summary
 Horde_Mobile_form Horde_Mobile_form (string $url, [string $method = 'post'], [boolean $session = true])
 void &add ( &$formElement)
 void getDefaults ()
 void getGetVars ()
Variables
mixed $_elements = array() (line 324)
mixed $_method (line 323)
mixed $_url (line 322)
Methods
Constructor Horde_Mobile_form (line 333)

Constructor

Horde_Mobile_form Horde_Mobile_form (string $url, [string $method = 'post'], [boolean $session = true])
  • string $url: Address where the user input is sent to.
  • string $method: 'post' (default) or 'get'.
  • boolean $session: Preserve the sesion id in the form? Defaults to true.
add (line 343)
void &add ( &$formElement)
  • &$formElement
getDefaults (line 366)
void getDefaults ()
getGetVars (line 466)
void getGetVars ()

Inherited Methods

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:41 +0000 by phpDocumentor 1.4.3