Public Member Functions | |
| HAW_text ($text, $attrib=HAW_TEXTFORMAT_NORMAL) | |
| set_color ($color, $boxcolor="") | |
| set_css_class ($css_class) | |
| set_br ($br) | |
| set_voice_text ($text, $audio_src="") | |
| set_voice_navigation () | |
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);
| HAW_text::HAW_text | ( | $ | text, | |
| $ | attrib = HAW_TEXTFORMAT_NORMAL | |||
| ) |
Constructor
| 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 (text in a colored box for headings etc.) |
| HAW_text::set_color | ( | $ | color, | |
| $ | boxcolor = "" | |||
| ) |
Sets the color of this object in a (X)HTML page.
| color | See HTML specification for possible values (e.g. "#CCFFFF", "red", ...). | |
| boxcolor | (optional) box background for attribute HAW_TEXTFORMAT_BOXED |
| HAW_text::set_css_class | ( | $ | css_class | ) |
Sets a css class for this object in a (X)HTML page.
| css_class | CSS class to be defined in the deck's central CSS file |
| HAW_text::set_br | ( | $ | br | ) |
Sets the number of line breaks (CRLF) after text. (default: 1)
| br | Some number of line breaks. |
| HAW_text::set_voice_text | ( | $ | text, | |
| $ | audio_src = "" | |||
| ) |
Sets text to be spoken by voice browsers.
| text | Some alternative text that replaces original <text>. | |
| audio_src | Some audio file (e.g. *.wav file) to play (optional). |
| HAW_text::set_voice_navigation | ( | ) |
1.5.1