Development:Voice Changelog: Difference between revisions
From MoodleDocs
mayank jain (talk | contribs) (→Lib) |
mayank jain (talk | contribs) |
||
Line 10: | Line 10: | ||
* Added | * Added | ||
* | * Checks the browser version. If "greater than Opera 9.0 and voicexml is enabled" it returns true. | ||
* Returns true/false. | |||
post_process_voice() | post_process_voice() | ||
* Added | * Added | ||
* Post processes xhtml code | * Post processes xhtml code | ||
* | * Parses the xhtml and generates voice code and puts in the head. | ||
* Also gets voice code from body and places it in the head. | |||
===Weblib=== | ===Weblib=== |
Revision as of 09:03, 18 July 2007
Template:Voice Template:Moodle 2.0
Moodle Code
Lib
Voicexmllib
voicexmlenabled()
- Added
- Checks the browser version. If "greater than Opera 9.0 and voicexml is enabled" it returns true.
- Returns true/false.
post_process_voice()
- Added
- Post processes xhtml code
- Parses the xhtml and generates voice code and puts in the head.
- Also gets voice code from body and places it in the head.
Weblib
print_header()
- Modified
- Code for checking if voicexml is enabled and printing corresponding header information.
createlink()
- Added
- Outputs a HTML Link (A Tag) code and correspondingly also outputs
- the voice code for it if $voice is true.
- @usage print_location_comment(__FILE__, __LINE__);
- @param string $href Link Location
- @param string $linktext Link Text
- @param string $otherattributes
- @param boolean $voice Whether to output voice code
- @return string