Development:Voice Changelog: Difference between revisions
From MoodleDocs
mayank jain (talk | contribs) |
mayank jain (talk | contribs) (→Weblib) |
||
Line 21: | Line 21: | ||
===Weblib=== | ===Weblib=== | ||
Includes voicexmllib.php | |||
print_header() | print_header() | ||
Line 26: | Line 28: | ||
* Modified | * Modified | ||
* Code for checking if voicexml is enabled and printing corresponding header information. | * Code for checking if voicexml is enabled and printing corresponding header information. | ||
* Code for checking if voicexml is enabled. If it is "ob_start()" | |||
print_footer() | |||
* Modified | |||
* Code for checking if voicexml is enabled. If it is "ob_end_clean()" | |||
createlink() | createlink() | ||
Line 32: | Line 42: | ||
* Outputs a HTML Link (A Tag) code and correspondingly also outputs | * Outputs a HTML Link (A Tag) code and correspondingly also outputs | ||
* the voice code for it if $voice is true. | * the voice code for it if $voice is true. | ||
* @ | * @param string $href Link Location | ||
* @param string $ | * @param string $onclick script on link click( otherwise can be included with $otherattribute) | ||
* @param string $ | * @param string $otherattribute For Links A tag | ||
* @param string $ | * @param string $anchorhtml Data between opening and closing tags Anchor Text and Image etc: | ||
* @param boolean $voice Whether to output voice code | * @param boolean $voice Whether to output voice code | ||
* @param string $voiceruletext Rule for the anchor text | |||
* @param string $voicetext voice text for some vague reason if it is different from anchor text | |||
* @param string $voicelink Link action for voice | |||
* @param string $voicescript Script action in voice | |||
* @return string | |||
generatevoicetag() | |||
* Added | |||
* Outputs a Voice Tag code | |||
* @param string $type Possible Values are voice(true/false), voiceruletext, voicetext, voicelink, voicescript | |||
* @return string | * @return string |
Revision as of 19: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
Includes voicexmllib.php
print_header()
- Modified
- Code for checking if voicexml is enabled and printing corresponding header information.
- Code for checking if voicexml is enabled. If it is "ob_start()"
print_footer()
- Modified
- Code for checking if voicexml is enabled. If it is "ob_end_clean()"
createlink()
- Added
- Outputs a HTML Link (A Tag) code and correspondingly also outputs
- the voice code for it if $voice is true.
- @param string $href Link Location
- @param string $onclick script on link click( otherwise can be included with $otherattribute)
- @param string $otherattribute For Links A tag
- @param string $anchorhtml Data between opening and closing tags Anchor Text and Image etc:
- @param boolean $voice Whether to output voice code
- @param string $voiceruletext Rule for the anchor text
- @param string $voicetext voice text for some vague reason if it is different from anchor text
- @param string $voicelink Link action for voice
- @param string $voicescript Script action in voice
- @return string
generatevoicetag()
- Added
- Outputs a Voice Tag code
- @param string $type Possible Values are voice(true/false), voiceruletext, voicetext, voicelink, voicescript
- @return string