[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> Mobile.php (sommaire)

(pas de description)

Poids: 1222 lignes (36 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 21 classes

Horde_Mobile_card:: (3 méthodes):
  Horde_Mobile_card()
  add()
  softkey()

Horde_Mobile:: (4 méthodes):
  Horde_Mobile()
  add()
  useSimulator()
  display()

Horde_Mobile_element:: (3 méthodes):
  Horde_Mobile_element()
  get()
  set()

Horde_Mobile_formElement:: (1 méthode):
  setMode()

Horde_Mobile_form:: (4 méthodes):
  Horde_Mobile_form()
  add()
  getDefaults()
  getGetVars()

Horde_Mobile_block:: (2 méthodes):
  Horde_Mobile_block()
  add()

Horde_Mobile_text:: (1 méthode):
  Horde_Mobile_text()

Horde_Mobile_image:: (1 méthode):
  Horde_Mobile_image()

Horde_Mobile_table:: (1 méthode):
  add()

Horde_Mobile_row:: (2 méthodes):
  add()
  getColumnCount()

Horde_Mobile_input:: (1 méthode):
  Horde_Mobile_input()

Horde_Mobile_textarea:: (1 méthode):
  Horde_Mobile_textarea()

Horde_Mobile_select:: (2 méthodes):
  Horde_Mobile_select()
  add()

Horde_Mobile_radio:: (2 méthodes):
  Horde_Mobile_radio()
  add()

Horde_Mobile_checkbox:: (2 méthodes):
  Horde_Mobile_checkbox()
  isChecked()

Horde_Mobile_hidden:: (1 méthode):
  Horde_Mobile_hidden()

Horde_Mobile_submit:: (1 méthode):
  Horde_Mobile_submit()

Horde_Mobile_link:: (1 méthode):
  Horde_Mobile_link()

Horde_Mobile_phone:: (1 méthode):
  Horde_Mobile_phone()

Horde_Mobile_linkset:: (1 méthode):
  add()

Horde_Mobile_rule:: (1 méthode):
  Horde_Mobile_rule()


Classe: Horde_Mobile_card  - X-Ref


Horde_Mobile_card($name = null, $title = null)   X-Ref
Constructor

param: string $name   The name of this card. Can be used in anchor
param: string $title  If a string is provided here, it will be displayed

add(&$element)   X-Ref
Pas de description

softkey($url, $label)   X-Ref
Pas de description

Classe: Horde_Mobile  - X-Ref

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.9 2006/06/26 06:27:23 selsky Exp $

Copyright 2002-2006 Chuck Hagenbuch <chuck@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.

Horde_Mobile($title = null, $agent = null)   X-Ref
Constructor

param: string $title  If a string is provided here, it will be displayed
param: string $agent  If specified, use instead of HTTP_USER_AGENT.

add(&$element)   X-Ref
Pas de description

useSimulator()   X-Ref
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.


display()   X-Ref
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.


Classe: Horde_Mobile_element  - X-Ref


Horde_Mobile_element()   X-Ref
Pas de description

get($attribute)   X-Ref
Pas de description

set($attribute, $value)   X-Ref
Pas de description

Classe: Horde_Mobile_formElement  - X-Ref


setMode($mode)   X-Ref
Set input mode/istyle for japanese MML/i-mode devices.

param: string $mode  Input mode, one of:

Classe: Horde_Mobile_form  - X-Ref

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();

Horde_Mobile_form($url, $method = 'post', $session = true)   X-Ref
Constructor

param: string $url       Address where the user input is sent to.
param: string $method    'post' (default) or 'get'.
param: boolean $session  Preserve the sesion id in the form? Defaults to true.

add(&$formElement)   X-Ref
Pas de description

getDefaults()   X-Ref
Pas de description

getGetVars()   X-Ref
Pas de description

Classe: Horde_Mobile_block  - X-Ref

This class holds text-level elements for use in Horde_Mobile or
Horde_Mobile_form objects.

Examples:

$block = new Horde_Mobile_block("Hello WAP!");
$text = new Horde_Mobile_text("Welcome to Horde_Mobile", 'b');
$block->add($text);

Horde_Mobile_block(&$elements)   X-Ref
Constructor.

param: mixed $elements  Any elements (a single one or an array) to fill this block with.

add(&$element)   X-Ref
Pas de description

Classe: Horde_Mobile_text  - X-Ref

This class inserts plain text into a Horde_Mobile_block or a
Horde_Mobile_row object.

Examples:

$myText1 = new Horde_Mobile_text("Hello WAP!");
$myText2 = new Horde_Mobile_text("Welcome to Horde_Mobile", 'b');
$myText3 = new Horde_Mobile_text("Good Morning", array('b', 'big'));

Horde_Mobile_text($text, $attributes = array()   X-Ref
Constructor

param: string $text       The text content of the element.
param: array $attributes  Text attributes. Any of:

Classe: Horde_Mobile_image  - X-Ref

This class allows to insert bitmap images into a Horde_Mobile_block,
Horde_Mobile_form or Horde_Mobile_row object.

Examples:

$image = new Horde_Mobile_image('/path/to/image.wbmp',
array('height' => 100, 'width' => 100));

Horde_Mobile_image($src, $attributes = array()   X-Ref
Constructor

param: string $src        The source location of the image.
param: array $attributes  Image attributes. Any of:

Classe: Horde_Mobile_table  - X-Ref

This class allows to insert tables into a Horde_Mobile or
Horde_Mobile_form object.

Examples:

$myTable = new Horde_Mobile_table();

$row1 = new Horde_Mobile_row();
$row1->add($image1);
$row1->add($text1);
$myTable->add($row1);

$row2 = new Horde_Mobile_row();
$row2->add($image2);
$row2->add($text2);
$myTable->add($row2);

$myDeck->add($myTable);

add(&$row)   X-Ref
Adds a Horde_Mobile_row object to Horde_Mobile_table.

param: Horde_Mobile_row $row  The row object to add.

Classe: Horde_Mobile_row  - X-Ref

This class defines the rows that a Horde_Mobile_table object
consists of.

Examples:

$image1 = new Horde_Mobile_image("my_image.wbmp", "my_image.png", ":-)");
$text1 = new Horde_Mobile_text("my text");
$row1 = new Horde_Mobile_row();
$row1->add($image1);
$row1->add();
$row1->add($text1);

add($cellElement = null)   X-Ref
Adds a column element to a Horde_Mobile_row object.

param: Horde_Mobile_element $cellElement  Can be a Horde_Mobile_text

getColumnCount()   X-Ref
Pas de description

Classe: Horde_Mobile_input  - X-Ref

This class provides a text input field in a Horde_Mobile_form object.

Examples:

$myInput1 = new Horde_Mobile_input('cid', '', 'Customer ID');

$myInput2 = new Horde_Mobile_input('cid', '', 'Customer ID', '*N');
$myInput2->set_size(6);
$myInput2->set_maxlength(6);

$myInput3 = new Horde_Mobile_input('pw', '', 'Password', '*N');
$myInput3->set_size(8);
$myInput3->set_maxlength(8);
$myInput3->set_type('password');

Horde_Mobile_input($name, $value, $label = '', $format = '*M')   X-Ref
Constructor

param: string $name    Variable in which the input is sent to the
param: string $value   Initial value that will be presented in the
param: string $label   Describes your input field on the surfer's
param: string $format  Input format code according to the WAP standard.

Classe: Horde_Mobile_textarea  - X-Ref

This class provides an input textarea in a Horde_Mobile_form object.

Examples:

$myArea1 = new Horde_Mobile_textarea('fb', '', 'Feedback');
$myArea2 = new Horde_Mobile_textarea('msg', 'Enter message here ...', 'Message', 40, 5);

Horde_Mobile_textarea($name, $value, $label, $rows = 3, $cols = 16)   X-Ref
Constructor.

param: string $name   Variable in which the input is sent to the
param: string $value  Initial value that will be presented in the
param: string $label  Describes your textarea on the surfer's
param: integer $rows  Rows.
param: integer $cols  Columns.

Classe: Horde_Mobile_select  - X-Ref

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');

Horde_Mobile_select($name, $type = 'popup')   X-Ref
Constructor

param: string $name  Variable in which the information about the
param: string $type  Type of select area:

add($label, $value, $is_selected = false)   X-Ref
Adds one option to a Horde_Mobile_select object.

param: string $label         Describes the option on the surfer's
param: string $value         Value sent in the "name" variable, if this
param: boolean $is_selected  Allowed values are true or false.

Classe: Horde_Mobile_radio  - X-Ref

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');

Horde_Mobile_radio($name)   X-Ref
Constructor

param: string $name  Variable in which the information about the pressed button

add($label, $value, $is_checked = false)   X-Ref
Adds one radio button to a Horde_Mobile_radio object.

param: string $label        Describes the radiobutton on the surfer's
param: string $value        Value sent in the "name" variable, if this
param: boolean $is_checked  Allowed values are true or false.

Classe: Horde_Mobile_checkbox  - X-Ref

This class provides a single checkbox element in a Horde_Mobile_form object.

Examples:

$myCheckbox = new Horde_Mobile_checkbox('agmt', 'yes', 'I agree');
$myCheckbox = new Horde_Mobile_checkbox('agmt', 'yes', 'I agree', false);
$myCheckbox = new Horde_Mobile_checkbox('agmt', 'yes', 'I agree', true);

Horde_Mobile_checkbox($name, $value, $label, $checked = false)   X-Ref
Constructor

param: string $name      Variable in which "value" is sent to the
param: string $value     See name.
param: string $label     Describes the checkbox on the surfer's
param: boolean $checked  Allowed values are true or false.

isChecked()   X-Ref
Pas de description

Classe: Horde_Mobile_hidden  - X-Ref

This class provides hidden elements in Horde_Mobile_form objects.

Examples:

$hidden = new Horde_Mobile_hidden('internal_reference', '08154711');

Horde_Mobile_hidden($name, $value)   X-Ref
Constructor

param: string $name   Variable in which $value is sent to the destination URL.
param: string $value  See name.

Classe: Horde_Mobile_submit  - X-Ref

This class provides a submit button for a Horde_Mobile_form object. One
Horde_Mobile_form object can contain only one Horde_Mobile_submit object.

Examples:
$mySubmit = &new Horde_Mobile_submit('Submit');
$mySubmit = &new Horde_Mobile_submit('Submit', 'user_pressed');

Horde_Mobile_submit($label, $name = '')   X-Ref
Constructor

param: string $label  What's written on the button.
param: string $name   Variable in which "label" is sent to the

Classe: Horde_Mobile_link  - X-Ref

This class provides a link in a Horde_Mobile, Horde_Mobile_linkset or
Horde_Mobile_table object.

Examples:

$myPage = new Horde_Mobile(...);

$myLink = new Horde_Mobile_link('Continue', '/mynextpage.wml');
$myPage->add($myLink);

Horde_Mobile_link($label, $url, $title = '')   X-Ref
Constructor

param: string $label  Describes the link on the surfer's screen/display.
param: string $url    Next destination address. MUST be valid XML (&amp; instead of &, etc.).
param: string $title  If a string is provided here, it will be displayed

Classe: Horde_Mobile_phone  - X-Ref

This class provides a phone number in a Horde_Mobile object. If supported by
their mobile device, users can establish a voice connection to the
specified number.

Examples:

$myPhone = &new Horde_Mobile_phone('123-45678', 'CALL');
$myPage->add($myPhone);

Horde_Mobile_phone($phone_number, $title = '')   X-Ref
Constructor

param: string $phone_number  Phone number to dial.
param: string $title         If a string is provided here, the call

Classe: Horde_Mobile_linkset  - X-Ref

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();

add(&$link)   X-Ref
Adds a Horde_Mobile_link object to Horde_Mobile_linkset.

param: Horde_Mobile_link $link  The link object to add.

Classe: Horde_Mobile_rule  - X-Ref

This class will cause a horizontal rule to be drawn across the screen.  You
can use it to separate text paragraphs in Horde_Mobile or Horde_Mobile_form
objects.

Examples:

$myDefaultRule = new Horde_Mobile_rule();
$mySpecialRule = new Horde_Mobile_rule('60%', 4);

$myPage->add($myDefaultRule);

$myPage->add($mySpecialRule);

Horde_Mobile_rule($width = '', $size = '')   X-Ref
Constructor

param: integer $width  Percentage of screen width or absolute value in
param: integer $size   Height of the line to be drawn in pixels.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7