Class Horde_Mobile_linkset

Description

This class defines a set of links. The links have to be defined as

separate Horde_Mobile_link objects and are attached to the linkset with a special "add" function. For WAP devices browser-dependent WML code will be created. On all UP-browser-based WAP devices linksets allow easier navigation through WML decks by using the "onpick" WML option and therefore are improving the "usability" of an application. Instead of painfully navigating through the links "sports->football->results->today" the mobile user e.g. can press "2431" on the keypad to enter his favorite deck. For all other WAP devices normal <a> tags are created. One Horde_Mobile object can contain only one linkset object.

Examples:

$myPage = new Horde_Mobile(...);

$myLinkset = new Horde_Mobile_linkset(); $myLink1 = new Horde_Mobile_link("Phonebook", "/wap/phonebook.wml"); $myLinkset->add($myLink1); $myLink2 = new Horde_Mobile_link("DateBook", "/wap/datebook.wml"); $myLinkset->add($myLink2);

$myPage->add($myLinkset);

$myPage->render();

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

Horde_Mobile_element
   |
   --Horde_Mobile_linkset
Variable Summary
 mixed $_elements
Method Summary
 void &add ( &$link, Horde_Mobile_link $link)
Variables
mixed $_elements (line 1352)
Methods
add (line 1361)

Adds a Horde_Mobile_link object to Horde_Mobile_linkset.

void &add ( &$link, Horde_Mobile_link $link)

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