HAWHAW

PHP

Class HAW_image

HAW_image

public class HAW_image

This class allows to insert bitmap images into a HAW_deck, HAW_form or HAW_table object.

Examples:

$myImage1 = new HAW_image("my_image.wbmp", "my_image.gif", ":-)");
$myImage2 = new HAW_image("my_image.wbmp", "my_image.gif", ":-)", "my_image.bmp");
$myImage2->set_br(1);

See Also:
HAW_deck, HAW_form, HAW_row

Constructor Summary
HAW_image(var $src_wbmp, var $src_html, var $alt, var $src_bmp)
          Constructor
 
Method Summary
 void set_br(var $br)
          Sets the number of line breaks (CRLF) after the image. (default: 0)
 void set_voice_text(var $text, var $audio_src)
          Sets text to be spoken by voice browsers.
 void use_chtml_icon(var $icon)
          Use cHTML icon instead of HTML bitmap on i-mode devices.
 void use_localsrc(var $icon)
          Use localsrc attribute on WAP/HDML devices.
 void use_mml_icon(var $icon)
          Use MML icon instead of HTML bitmap on MML devices.
 

Constructor Detail

HAW_image

public HAW_image(var $src_wbmp,
                 var $src_html,
                 var $alt,
                 var $src_bmp)
Constructor
Parameters:
src_wbmp - Your bitmap in WAP-conform .wbmp format.
src_html - Your bitmap in .gif, .jpg or any other HTML compatible format.
alt - Alternative text for your bitmap. Will be displayed if the client can display none of your graphic formats.
src_bmp - (optional)
your bitmap in monochrome .bmp format. If the browser signals in the HTTP request header, that he's only able to display image/bmp and not image/vnd.wap.wbmp (e.g. the UPSim 3.2 did so), this image will be sent.
Method Detail

set_br

public void set_br(var $br)
Sets the number of line breaks (CRLF) after the image. (default: 0)
Parameters:
br - Some number of line breaks.

use_localsrc

public void use_localsrc(var $icon)
Use localsrc attribute on WAP/HDML devices.
Using built-in icons, mobile devices don't have to download bitmap images. If the device can not render the specified icon, it will download the according bitmap as specified in the HAW_image constructor.
Parameters:
icon - Device-internal representation of the image, e.g. "heart".

use_chtml_icon

public void use_chtml_icon(var $icon)
Use cHTML icon instead of HTML bitmap on i-mode devices.
Using built-in icons, mobile devices don't have to download bitmap images. Has no effect on non-i-mode devices.
Parameters:
icon - cHTML icon code, e.g. 63889 for the "heart" icon.

use_mml_icon

public void use_mml_icon(var $icon)
Use MML icon instead of HTML bitmap on MML devices.
Using built-in icons, mobile devices don't have to download bitmap images. Has no effect on non-MML devices.
Parameters:
icon - MML icon code, e.g. "GB" for the "heart" icon.

set_voice_text

public void set_voice_text(var $text,
                           var $audio_src)
Sets text to be spoken by voice browsers.
Parameters:
text - Some text that represents the image for voice users.
audio_src - Some audio file (e.g. *.wav file) to play (optional).

© Norbert Huffschmid
assembled from PHP source
using sed and javadoc