|
HAWHAW PHP |
|||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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);
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 |
public HAW_image(var $src_wbmp, var $src_html, var $alt, var $src_bmp)
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)Method Detail |
public void set_br(var $br)
br
- Some number of line breaks.public void use_localsrc(var $icon)
icon
- Device-internal representation of the image, e.g. "heart".public void use_chtml_icon(var $icon)
icon
- cHTML icon code, e.g. 63889 for the "heart" icon.public void use_mml_icon(var $icon)
icon
- MML icon code, e.g. "GB" for the "heart" icon.public void set_voice_text(var $text, var $audio_src)
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 |
|||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |