Public Member Functions | |
| HAW_form ($url, $method=HAW_METHOD_GET) | |
| add_text ($text) | |
| add_image ($image) | |
| add_table ($table) | |
| add_input ($input) | |
| add_textarea ($textarea) | |
| add_select ($select) | |
| add_radio ($radio) | |
| add_checkbox ($checkbox) | |
| add_hidden ($hidden) | |
| add_submit ($submit) | |
| add_raw ($raw) | |
| add_plugin ($plugin) | |
| add_userdefined ($udef) | |
| add_rule ($rule) | |
| set_voice_text ($text, $audio_src="") | |
Examples:
$myPage = new HAW_deck(...);
...
$myForm = new HAW_form("/mynextpage.php");
$myText = new HAW_text(...);
$myForm->add_text($myText);
$myInput = new HAW_input(...);
$myForm->add_input($myInput);
$mySubmit = new HAW_submit(...);
$myForm->add_submit($mySubmit);
...
$myPage->add_form($myForm);
...
$myPage->create_page();
| HAW_form::HAW_form | ( | $ | url, | |
| $ | method = HAW_METHOD_GET | |||
| ) |
Constructor
| url | Address where the user input is sent to. | |
| method | (optional) HAW_METHOD_GET (default) HAW_METHOD_POST |
| HAW_form::add_text | ( | $ | text | ) |
| HAW_form::add_image | ( | $ | image | ) |
| HAW_form::add_table | ( | $ | table | ) |
| HAW_form::add_input | ( | $ | input | ) |
| HAW_form::add_textarea | ( | $ | textarea | ) |
Adds a HAW_textarea object to HAW_form.
| textarea | Some HAW_textarea object. |
| HAW_form::add_select | ( | $ | select | ) |
Adds a HAW_select object to HAW_form.
| select | Some HAW_select object. |
| HAW_form::add_radio | ( | $ | radio | ) |
| HAW_form::add_checkbox | ( | $ | checkbox | ) |
Adds a HAW_checkbox object to HAW_form.
| checkbox | Some HAW_checkbox object. |
| HAW_form::add_hidden | ( | $ | hidden | ) |
Adds a HAW_hidden object to HAW_form.
| hidden | Some HAW_hidden object. |
| HAW_form::add_submit | ( | $ | submit | ) |
Adds a HAW_submit object to HAW_form.
| submit | Some HAW_submit object. |
| HAW_form::add_raw | ( | $ | raw | ) |
| HAW_form::add_plugin | ( | $ | plugin | ) |
Adds some HAWHAW plugin object to HAW_form
| plugin | Some user-defined plugin object. |
| HAW_form::add_userdefined | ( | $ | udef | ) |
Adds some user-defined HAWHAW object to HAW_form
| udef | Some user-defined object. |
| HAW_form::add_rule | ( | $ | rule | ) |
| HAW_form::set_voice_text | ( | $ | text, | |
| $ | audio_src = "" | |||
| ) |
Sets form-related text to be spoken by voice browsers.
| text | Some introducing text that will be spoken before any dialog is started. | |
| audio_src | Some audio file (e.g. *.wav file) to play (optional). |
1.5.1