HAWHAW

PHP

Class HAW_text

HAW_text

public class HAW_text

This class allows to insert plain text into a HAW_deck, HAW_form or HAW_table object.

Examples:

$myText1 = new HAW_text("Hello WAP!");
$myText2 = new HAW_text("Welcome to HAWHAW", HAW_TEXTFORMAT_BOLD);
$myText3 = new HAW_text("Good Morning", HAW_TEXTFORMAT_BOLD | HAW_TEXTFORMAT_BIG);

$myText3->set_br(2);

See Also:
HAW_deck, HAW_form, HAW_row

Constructor Summary
HAW_text(var $text, var $attrib)
          Constructor
 
Method Summary
 void set_br(var $br)
          Sets the number of line breaks (CRLF) after text. (default: 1)
 void set_voice_text(var $text, var $audio_src)
          Sets text to be spoken by voice browsers.
 

Constructor Detail

HAW_text

public HAW_text(var $text,
                var $attrib)
Constructor
Parameters:
text - Some string you want to display
attrib - (optional)
HAW_TEXTFORMAT_NORMAL (default)
HAW_TEXTFORMAT_BOLD
HAW_TEXTFORMAT_UNDERLINE
HAW_TEXTFORMAT_ITALIC
HAW_TEXTFORMAT_BIG
HAW_TEXTFORMAT_SMALL
HAW_TEXTFORMAT_BOXED (HTML only)
Method Detail

set_br

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

set_voice_text

public void set_voice_text(var $text,
                           var $audio_src)
Sets text to be spoken by voice browsers.
Parameters:
text - Some alternative text that replaces original <text>.
audio_src - Some audio file (e.g. *.wav file) to play (optional).

© Norbert Huffschmid
assembled from PHP source
using sed and javadoc