HAW_table Class Reference

List of all members.

Public Member Functions

 HAW_table ()
 add_row ($row)
 set_voice_text ($text, $audio_src="")

Detailed Description

This class allows to insert tables into a HAW_deck or HAW_form object.

Note: Not all WAP clients are able to display tables properly! HDML is not supporting tables at all. For HDML users the table's content will be generated column-by-column, respectively row-by-row, where each table cell will result in one separate line on the display.

Examples:

...
$myTable = new HAW_table();
$row1 = new HAW_row();
$row1->add_column($image1);
$row1->add_column($text1);
$myTable->add_row($row1);
$row2 = new HAW_row();
$row2->add_column($image2);
$row2->add_column($text2);
$myTable->add_row($row2);
$myDeck->add_table($myTable);
...

See also:
HAW_deck

HAW_form

HAW_row


Member Function Documentation

HAW_table::HAW_table (  ) 

Constructor

HAW_table::add_row ( row  ) 

Adds a HAW_row object to HAW_table.

Parameters:
row Some HAW_row object.

HAW_table::set_voice_text ( text,
audio_src = "" 
)

Sets text to be spoken by voice browsers.
Note: Tables should be avoided whenever voice users are targeted. Anyway, the HAWHAW API allows to assign voice output to HAW_table objects in order to say some introducing words before the table content is spoken.

Parameters:
text Some helpful text.
audio_src Some audio file (e.g. *.wav file) to play (optional).


The documentation for this class was generated from the following file:
Generated on Mon Dec 6 21:51:55 2010 for HAWHAW PHP by  doxygen 1.5.1