Class Horde_Mobile

Description

Horde_Mobile::

Horde API for generating Mobile content. Includes numerous utility functions, generalized element classes, and renderers for markup languages including WML, HDML, and CHTML.

This class is the top level class of all Horde_Mobile classes. Your page should consist of exactly one Horde_Mobile object. Appropriate markup - Imode, WML, HDML, etc. - is generated by the appropriate renderer object

Do not overstuff Horde_Mobile objects. Remember that a lot of WAP clients cannot handle more than about 1400 bytes of compiled data.

Examples:

$myPage = new Horde_Mobile(); $myPage = new Horde_Mobile('My WAP page'); $myPage = new Horde_Mobile('', 'center');

// More stuff

$myPage->add($myText);

// More items

$myPage->render();

$Horde: framework/Mobile/Mobile.php,v 1.32.10.14 2009/01/06 15:23:25 jan Exp $

Copyright 2002-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

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

Horde_Mobile_element
   |
   --Horde_Mobile_card
      |
      --Horde_Mobile
Direct descendents
Class Description
 class Horde_Mobile_Renderer Horde_Mobile_Renderer:: framework for mobile device markup renderers.
Variable Summary
 mixed $_cards
 mixed $_debug
 mixed $_elements
 mixed $_simulator
 mixed $_title
Method Summary
 Horde_Mobile Horde_Mobile ([string $title = null], [string $agent = null])
 void &add ( &$element)
 void display ()
 void useSimulator ()
Variables
mixed $_cards = array() (line 121)
mixed $_debug = false (line 122)
mixed $_elements = array() (line 120)

Redefinition of:
Horde_Mobile_card::$_elements
mixed $_simulator = false (line 126)
mixed $_title (line 119)

Redefinition of:
Horde_Mobile_card::$_title

Inherited Variables

Inherited from Horde_Mobile_card

Horde_Mobile_card::$_form
Horde_Mobile_card::$_linksetAdded
Horde_Mobile_card::$_name
Horde_Mobile_card::$_softkeys
Methods
Constructor Horde_Mobile (line 139)

Constructor

Horde_Mobile Horde_Mobile ([string $title = null], [string $agent = null])
  • string $title: If a string is provided here, it will be displayed in the HTML title bar, respectively somewhere on the WAP display. Using a title you will normally have to spend one of your few lines on your WAP display. Consider that some WAP phones/SDK's and handheld devices don't display the title at all.
  • string $agent: If specified, use instead of HTTP_USER_AGENT.
add (line 160)
void &add ( &$element)
  • &$element

Redefinition of:
Horde_Mobile_card::add()
display (line 199)

Creates the page in the appropriate markup language. Depending on the renderer type, HTML (pure HTML, handheldfriendly AvantGo HTML, i-mode cHTML, MML), WML or HDML code is created.

void display ()
useSimulator (line 189)

Activates the built-in device simulator on bigscreen browsers.

The device simulator is only fully-functional in Internet Explorer, because the layout requires a scrollable table element. Other browsers will fail to show content on pages longer than a single screen.

void useSimulator ()

Inherited Methods

Inherited From Horde_Mobile_card

 Horde_Mobile_card::Horde_Mobile_card()
 Horde_Mobile_card::add()
 Horde_Mobile_card::softkey()

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