[Hw4mdl-svn] SF.net SVN: hw4mdl:[261] trunk
Brought to you by:
jhlinder,
trollinger
From: <tro...@us...> - 2008-10-29 18:07:03
|
Revision: 261 http://hw4mdl.svn.sourceforge.net/hw4mdl/?rev=261&view=rev Author: trollinger Date: 2008-10-29 18:06:54 +0000 (Wed, 29 Oct 2008) Log Message: ----------- update trunk to the current version(3.3.0) Added Paths: ----------- trunk/pom.xml trunk/src/ trunk/src/main/ trunk/src/main/assembly/ trunk/src/main/assembly/descriptor.xml trunk/src/main/php/ trunk/src/main/php/blocks/ trunk/src/main/php/blocks/bvoiceemail/ trunk/src/main/php/blocks/bvoiceemail/block_bvoiceemail.php trunk/src/main/php/blocks/bvoiceemail/config_instance.html trunk/src/main/php/blocks/bvoicerecorder/ trunk/src/main/php/blocks/bvoicerecorder/block_bvoiceemail.php trunk/src/main/php/blocks/bvoicerecorder/block_bvoicerecorder.php trunk/src/main/php/blocks/bvoicerecorder/config_global.html trunk/src/main/php/blocks/bvoicerecorder/config_instance.html trunk/src/main/php/integrations_common/ trunk/src/main/php/integrations_common/php/ trunk/src/main/php/integrations_common/php/common/ trunk/src/main/php/integrations_common/php/common/DatabaseManagement.php trunk/src/main/php/integrations_common/php/common/WimbaCommons.php trunk/src/main/php/integrations_common/php/common/WimbaLib.php trunk/src/main/php/integrations_common/php/common/WimbaUI.php trunk/src/main/php/integrations_common/php/common/WimbaXml.php trunk/src/main/php/integrations_common/php/common/XmlArchive.php trunk/src/main/php/integrations_common/php/common/XmlOrphanedArchive.php trunk/src/main/php/integrations_common/php/common/XmlResource.php trunk/src/main/php/integrations_common/php/common/XmlRoom.php trunk/src/main/php/integrations_common/php/common/domxml-php4-php5.php trunk/src/main/php/integrations_common/php/lc/ trunk/src/main/php/integrations_common/php/lc/LCAction.php trunk/src/main/php/integrations_common/php/lc/LCRoom.php trunk/src/main/php/integrations_common/php/lc/LCUser.php trunk/src/main/php/integrations_common/php/lc/PrefixUtil.php trunk/src/main/php/integrations_common/php/lc/lcapi.php trunk/src/main/php/integrations_common/php/vt/ trunk/src/main/php/integrations_common/php/vt/VtAction.php trunk/src/main/php/integrations_common/php/vt/WimbaVoicetools.php trunk/src/main/php/integrations_common/php/vt/WimbaVoicetoolsAPI.php trunk/src/main/php/integrations_common/web/ trunk/src/main/php/integrations_common/web/js/ trunk/src/main/php/integrations_common/web/js/constants.js trunk/src/main/php/integrations_common/web/js/lib/ trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/ trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/AUTHORS trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/COPYING trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/README trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/dom.js trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/util.js trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/xmltoken.js trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/xpath.js trunk/src/main/php/integrations_common/web/js/lib/ajaxslt/xslt.js trunk/src/main/php/integrations_common/web/js/lib/iepngfix/ trunk/src/main/php/integrations_common/web/js/lib/iepngfix/iepngfix.htc trunk/src/main/php/integrations_common/web/js/lib/iepngfix/iepngfix_tilebg.js trunk/src/main/php/integrations_common/web/js/lib/prototype/ trunk/src/main/php/integrations_common/web/js/lib/prototype/prototype.js trunk/src/main/php/integrations_common/web/js/md5.inc trunk/src/main/php/integrations_common/web/js/verifForm.js trunk/src/main/php/integrations_common/web/js/wimba_ajax.js trunk/src/main/php/integrations_common/web/js/wimba_commons.js trunk/src/main/php/integrations_common/web/js/xsl/ trunk/src/main/php/integrations_common/web/js/xsl/wimba.xsl trunk/src/main/php/integrations_common/web/pictures/ trunk/src/main/php/integrations_common/web/pictures/backgrounds/ trunk/src/main/php/integrations_common/web/pictures/backgrounds/filterbar.png trunk/src/main/php/integrations_common/web/pictures/backgrounds/headerbar.png trunk/src/main/php/integrations_common/web/pictures/backgrounds/toolbar.png trunk/src/main/php/integrations_common/web/pictures/box/ trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/ trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/400/ trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/400/box-bottom-left.png trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/400/box-bottom-right.png trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/400/box-top-left.png trunk/src/main/php/integrations_common/web/pictures/box/no_shadow/400/box-top-right.png trunk/src/main/php/integrations_common/web/pictures/buttons/ trunk/src/main/php/integrations_common/web/pictures/buttons/flat/ trunk/src/main/php/integrations_common/web/pictures/buttons/flat/close/ trunk/src/main/php/integrations_common/web/pictures/buttons/flat/close/x_round-16_14.png trunk/src/main/php/integrations_common/web/pictures/items/ trunk/src/main/php/integrations_common/web/pictures/items/Wlogo-W_only-60.png trunk/src/main/php/integrations_common/web/pictures/items/headerbar-logo.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-available.jpg trunk/src/main/php/integrations_common/web/pictures/items/listitem-available.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-available_selected.jpg trunk/src/main/php/integrations_common/web/pictures/items/listitem-hide.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-info.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-information-16_12.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-show.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-subitem-selected.jpg trunk/src/main/php/integrations_common/web/pictures/items/listitem-subitem.jpg trunk/src/main/php/integrations_common/web/pictures/items/listitem-unavailable.jpg trunk/src/main/php/integrations_common/web/pictures/items/listitem-unavailable.png trunk/src/main/php/integrations_common/web/pictures/items/listitem-unavailable_selected.jpg trunk/src/main/php/integrations_common/web/pictures/items/phone_32.png trunk/src/main/php/integrations_common/web/pictures/items/phone_60.png trunk/src/main/php/integrations_common/web/pictures/items/speaker-18.gif trunk/src/main/php/integrations_common/web/pictures/items/warning.png trunk/src/main/php/integrations_common/web/pictures/items/wheel-24.gif trunk/src/main/php/integrations_common/web/pictures/items/wimba_sound.png trunk/src/main/php/integrations_common/web/pictures/items/x_round-16_14.png trunk/src/main/php/integrations_common/web/pictures/items/yes-60.png trunk/src/main/php/integrations_common/web/pictures/module_tab/ trunk/src/main/php/integrations_common/web/pictures/module_tab/module_tab-left.png trunk/src/main/php/integrations_common/web/pictures/module_tab/module_tab-right.png trunk/src/main/php/integrations_common/web/pictures/regular_btn/ trunk/src/main/php/integrations_common/web/pictures/regular_btn/regular_btn-left.png trunk/src/main/php/integrations_common/web/pictures/regular_btn/regular_btn-right.png trunk/src/main/php/integrations_common/web/pictures/regular_btn/regular_btn-submit.png trunk/src/main/php/integrations_common/web/pictures/search/ trunk/src/main/php/integrations_common/web/pictures/search/search-left.png trunk/src/main/php/integrations_common/web/pictures/search/search-right.png trunk/src/main/php/integrations_common/web/pictures/search/x_round-16_12-over.png trunk/src/main/php/integrations_common/web/pictures/search/x_round-16_12.png trunk/src/main/php/integrations_common/web/pictures/tabs/ trunk/src/main/php/integrations_common/web/pictures/tabs/tab-left.png trunk/src/main/php/integrations_common/web/pictures/tabs/tab-right.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/ trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/add_activity.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/content.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/delete.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/launch.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/new.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/reports.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/settings.png trunk/src/main/php/integrations_common/web/pictures/toolbar_btn/squared_btn.png trunk/src/main/php/mod/ trunk/src/main/php/mod/liveclassroom/ trunk/src/main/php/mod/liveclassroom/backuplib.php trunk/src/main/php/mod/liveclassroom/config.html trunk/src/main/php/mod/liveclassroom/css/ trunk/src/main/php/mod/liveclassroom/css/StyleSheet.css trunk/src/main/php/mod/liveclassroom/db/ trunk/src/main/php/mod/liveclassroom/db/access.php trunk/src/main/php/mod/liveclassroom/db/install.xml trunk/src/main/php/mod/liveclassroom/db/migrate2utf8.php trunk/src/main/php/mod/liveclassroom/db/migrate2utf8.xml trunk/src/main/php/mod/liveclassroom/db/mysql.php trunk/src/main/php/mod/liveclassroom/db/mysql.sql trunk/src/main/php/mod/liveclassroom/db/postgres7.php trunk/src/main/php/mod/liveclassroom/db/postgres7.sql trunk/src/main/php/mod/liveclassroom/db/upgrade.php trunk/src/main/php/mod/liveclassroom/generateXmlMainPanel.php trunk/src/main/php/mod/liveclassroom/generateXmlSettingsPanel.php trunk/src/main/php/mod/liveclassroom/icon.gif trunk/src/main/php/mod/liveclassroom/index.php trunk/src/main/php/mod/liveclassroom/lang/ trunk/src/main/php/mod/liveclassroom/lang/en/ trunk/src/main/php/mod/liveclassroom/lang/en/help/ trunk/src/main/php/mod/liveclassroom/lang/en/help/liveclassroom/ trunk/src/main/php/mod/liveclassroom/lang/en/help/liveclassroom/mods.html trunk/src/main/php/mod/liveclassroom/lang/en/liveclassroom.php trunk/src/main/php/mod/liveclassroom/lang/en_utf8/ trunk/src/main/php/mod/liveclassroom/lang/en_utf8/block_bliveclassroom.php trunk/src/main/php/mod/liveclassroom/lang/en_utf8/help/ trunk/src/main/php/mod/liveclassroom/lang/en_utf8/help/liveclassroom/ trunk/src/main/php/mod/liveclassroom/lang/en_utf8/help/liveclassroom/mods.html trunk/src/main/php/mod/liveclassroom/lang/en_utf8/liveclassroom.php trunk/src/main/php/mod/liveclassroom/lang/fr/ trunk/src/main/php/mod/liveclassroom/lang/fr/help/ trunk/src/main/php/mod/liveclassroom/lang/fr/help/liveclassroom/ trunk/src/main/php/mod/liveclassroom/lang/fr/help/liveclassroom/mods.html trunk/src/main/php/mod/liveclassroom/lang/fr/liveclassroom.php trunk/src/main/php/mod/liveclassroom/lang/fr_utf8/ trunk/src/main/php/mod/liveclassroom/lang/fr_utf8/help/ trunk/src/main/php/mod/liveclassroom/lang/fr_utf8/help/liveclassroom/ trunk/src/main/php/mod/liveclassroom/lang/fr_utf8/help/liveclassroom/mods.html trunk/src/main/php/mod/liveclassroom/lang/fr_utf8/liveclassroom.php trunk/src/main/php/mod/liveclassroom/lib.php trunk/src/main/php/mod/liveclassroom/loglist.php trunk/src/main/php/mod/liveclassroom/logs.php trunk/src/main/php/mod/liveclassroom/manageAction.php trunk/src/main/php/mod/liveclassroom/mod.html trunk/src/main/php/mod/liveclassroom/reports.php trunk/src/main/php/mod/liveclassroom/restorelib.php trunk/src/main/php/mod/liveclassroom/version.php trunk/src/main/php/mod/liveclassroom/view.php trunk/src/main/php/mod/liveclassroom/welcome.php trunk/src/main/php/mod/voiceauthoring/ trunk/src/main/php/mod/voiceauthoring/backuplib.php trunk/src/main/php/mod/voiceauthoring/block_config.php trunk/src/main/php/mod/voiceauthoring/css/ trunk/src/main/php/mod/voiceauthoring/css/StyleSheet.css trunk/src/main/php/mod/voiceauthoring/db/ trunk/src/main/php/mod/voiceauthoring/db/access.php trunk/src/main/php/mod/voiceauthoring/db/install.xml trunk/src/main/php/mod/voiceauthoring/db/mysql.php trunk/src/main/php/mod/voiceauthoring/db/mysql.sql trunk/src/main/php/mod/voiceauthoring/db/postgres7.php trunk/src/main/php/mod/voiceauthoring/db/postgres7.sql trunk/src/main/php/mod/voiceauthoring/displayActivityName.php trunk/src/main/php/mod/voiceauthoring/displayPlayer.php trunk/src/main/php/mod/voiceauthoring/displayWysiwyg.php trunk/src/main/php/mod/voiceauthoring/enableVA.php trunk/src/main/php/mod/voiceauthoring/error.php trunk/src/main/php/mod/voiceauthoring/icon.gif trunk/src/main/php/mod/voiceauthoring/index.php trunk/src/main/php/mod/voiceauthoring/lang/ trunk/src/main/php/mod/voiceauthoring/lang/en/ trunk/src/main/php/mod/voiceauthoring/lang/en/voiceauthoring.php trunk/src/main/php/mod/voiceauthoring/lang/en_utf8/ trunk/src/main/php/mod/voiceauthoring/lang/en_utf8/voiceauthoring.php trunk/src/main/php/mod/voiceauthoring/lang/fr/ trunk/src/main/php/mod/voiceauthoring/lang/fr/voiceauthoring.php trunk/src/main/php/mod/voiceauthoring/lang/fr_utf8/ trunk/src/main/php/mod/voiceauthoring/lang/fr_utf8/voiceauthoring.php trunk/src/main/php/mod/voiceauthoring/lib.php trunk/src/main/php/mod/voiceauthoring/manageActionBlock.php trunk/src/main/php/mod/voiceauthoring/mod.html trunk/src/main/php/mod/voiceauthoring/restorelib.php trunk/src/main/php/mod/voiceauthoring/version.php trunk/src/main/php/mod/voiceauthoring/view.php trunk/src/main/php/mod/voiceauthoring/voiceauthoring.php trunk/src/main/php/mod/voiceemail/ trunk/src/main/php/mod/voiceemail/backuplib.php trunk/src/main/php/mod/voiceemail/block.php trunk/src/main/php/mod/voiceemail/block_config.php trunk/src/main/php/mod/voiceemail/css/ trunk/src/main/php/mod/voiceemail/css/StyleSheet.css trunk/src/main/php/mod/voiceemail/db/ trunk/src/main/php/mod/voiceemail/db/access.php trunk/src/main/php/mod/voiceemail/db/install.xml trunk/src/main/php/mod/voiceemail/db/mysql.php trunk/src/main/php/mod/voiceemail/db/mysql.sql trunk/src/main/php/mod/voiceemail/db/postgres7.php trunk/src/main/php/mod/voiceemail/db/postgres7.sql trunk/src/main/php/mod/voiceemail/icon.gif trunk/src/main/php/mod/voiceemail/index.php trunk/src/main/php/mod/voiceemail/lang/ trunk/src/main/php/mod/voiceemail/lang/en/ trunk/src/main/php/mod/voiceemail/lang/en/voiceemail.php trunk/src/main/php/mod/voiceemail/lang/en_utf8/ trunk/src/main/php/mod/voiceemail/lang/en_utf8/voiceemail.php trunk/src/main/php/mod/voiceemail/lang/fr/ trunk/src/main/php/mod/voiceemail/lang/fr/voiceemail.php trunk/src/main/php/mod/voiceemail/lang/fr_utf8/ trunk/src/main/php/mod/voiceemail/lang/fr_utf8/voiceemail.php trunk/src/main/php/mod/voiceemail/lib.php trunk/src/main/php/mod/voiceemail/listAvailableRecipients.php trunk/src/main/php/mod/voiceemail/manageActionBlock.php trunk/src/main/php/mod/voiceemail/mod.html trunk/src/main/php/mod/voiceemail/restorelib.php trunk/src/main/php/mod/voiceemail/version.php trunk/src/main/php/mod/voiceemail/view.php trunk/src/main/php/mod/voicetools/ trunk/src/main/php/mod/voicetools/config.html trunk/src/main/php/mod/voicetools/css/ trunk/src/main/php/mod/voicetools/css/StyleSheet.css trunk/src/main/php/mod/voicetools/db/ trunk/src/main/php/mod/voicetools/db/mysql.php trunk/src/main/php/mod/voicetools/db/mysql.sql trunk/src/main/php/mod/voicetools/db/postgres7.php trunk/src/main/php/mod/voicetools/db/postgres7.sql trunk/src/main/php/mod/voicetools/db/upgrade.php trunk/src/main/php/mod/voicetools/defaults.php trunk/src/main/php/mod/voicetools/icon.gif trunk/src/main/php/mod/voicetools/lang/ trunk/src/main/php/mod/voicetools/lang/en/ trunk/src/main/php/mod/voicetools/lang/en/voicetools.php trunk/src/main/php/mod/voicetools/lang/en_utf8/ trunk/src/main/php/mod/voicetools/lang/en_utf8/voicetools.php trunk/src/main/php/mod/voicetools/lib.php trunk/src/main/php/mod/voicetools/loglist.php trunk/src/main/php/mod/voicetools/logs.php trunk/src/main/php/mod/voicetools/mod.html trunk/src/main/php/mod/voicetools/testConfig.php trunk/src/main/php/mod/voicetools/version.php trunk/src/main/php/mod/voicetools_generic/ trunk/src/main/php/mod/voicetools_generic/backuplib.php trunk/src/main/php/mod/voicetools_generic/css/ trunk/src/main/php/mod/voicetools_generic/css/StyleSheet.css trunk/src/main/php/mod/voicetools_generic/db/ trunk/src/main/php/mod/voicetools_generic/db/access.php trunk/src/main/php/mod/voicetools_generic/db/install.xml trunk/src/main/php/mod/voicetools_generic/db/mysql.php trunk/src/main/php/mod/voicetools_generic/db/mysql.sql trunk/src/main/php/mod/voicetools_generic/db/postgres7.php trunk/src/main/php/mod/voicetools_generic/db/postgres7.sql trunk/src/main/php/mod/voicetools_generic/error.php trunk/src/main/php/mod/voicetools_generic/generateXmlMainPanel.php trunk/src/main/php/mod/voicetools_generic/generateXmlSettingsPanel.php trunk/src/main/php/mod/voicetools_generic/index.php trunk/src/main/php/mod/voicetools_generic/lang/ trunk/src/main/php/mod/voicetools_generic/lang/english_bundle.php trunk/src/main/php/mod/voicetools_generic/lang/english_help.html trunk/src/main/php/mod/voicetools_generic/lang/french_bundle.php trunk/src/main/php/mod/voicetools_generic/lang/french_help.html trunk/src/main/php/mod/voicetools_generic/lib.php trunk/src/main/php/mod/voicetools_generic/logs.php trunk/src/main/php/mod/voicetools_generic/manageAction.php trunk/src/main/php/mod/voicetools_generic/mod.html trunk/src/main/php/mod/voicetools_generic/restorelib.php trunk/src/main/php/mod/voicetools_generic/version.php trunk/src/main/php/mod/voicetools_generic/view.php trunk/src/main/php/mod/voicetools_generic/voiceboard.png trunk/src/main/php/mod/voicetools_generic/voicepodcaster.png trunk/src/main/php/mod/voicetools_generic/voicepresentation.png trunk/src/main/php/mod/voicetools_generic/welcome.php trunk/wysiwyg/ trunk/wysiwyg/images/ trunk/wysiwyg/images/wimba.gif trunk/wysiwyg/images/wimba_sound.png trunk/wysiwyg/lib/ trunk/wysiwyg/lib/editor/ trunk/wysiwyg/lib/editor/htmlarea/ trunk/wysiwyg/lib/editor/htmlarea/htmlarea.php trunk/wysiwyg/lib/weblib.php trunk/wysiwyg/popups/ trunk/wysiwyg/popups/insert_wimba.php trunk/wysiwyg/wimba.patch Removed Paths: ------------- trunk/integrations_common/ trunk/moodle/ trunk/wysiwyg/images/ trunk/wysiwyg/images/wimba.gif trunk/wysiwyg/images/wimba_sound.png trunk/wysiwyg/lib/ trunk/wysiwyg/lib/editor/ trunk/wysiwyg/lib/editor/htmlarea/ trunk/wysiwyg/lib/editor/htmlarea/htmlarea.php trunk/wysiwyg/lib/weblib.php trunk/wysiwyg/popups/ trunk/wysiwyg/popups/insert_wimba.php trunk/wysiwyg/wimba.patch Added: trunk/pom.xml =================================================================== --- trunk/pom.xml (rev 0) +++ trunk/pom.xml 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,314 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>wimba.integrations.moodle.vt-lc</groupId> + <artifactId>wimba-moodle</artifactId> + <name>Wimba moodle</name> + <version>3.3.0</version> + + <!-- The following blocks "repositories" and "profiles" should be present in all our pom.xml --> + <!-- artifactory (FR) location --> + <repositories> + <repository> + <id>central</id> + <name>wimba artifactory (FR)</name> + <url>http://artifactoryfr.wimba.com/artifactory/repo</url> + </repository> + </repositories> + <profiles> + <!-- use this profile to download artifacts from NY repository --> + <profile> + <id>ny</id> + <repositories> + <repository> + <id>central</id> + <name>wimba artifactory (US)</name> + <url>http://artifactoryus.wimba.com/artifactory/repo</url> + </repository> + </repositories> + </profile> + </profiles> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>prepare-sources</id> + <phase>generate-sources</phase> + <configuration> + <tasks> + <copy todir="${project.build.directory}/generated-sources/mod/voiceboard" overwrite="true"> + <fileset dir="${basedir}/src/main/php/mod/voicetools_generic"> + <exclude name="**/*bundle*" /> + <exclude name="**/*help*" /> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voicepodcaster" overwrite="true"> + <fileset dir="${basedir}/src/main/php/mod/voicetools_generic"> + <exclude name="**/*bundle*" /> + <exclude name="**/*help*" /> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voicepresentation" overwrite="true"> + <fileset dir="${basedir}/src/main/php/mod/voicetools_generic"> + <exclude name="**/*bundle*" /> + <exclude name="**/*help*" /> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/en/voiceboard.php"> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/en_utf8/voiceboard.php"> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/en/voicepodcaster.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/en_utf8/voicepodcaster.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/en/voicepresentation.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/en_utf8/voicepresentation.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/fr/voiceboard.php"> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/fr_utf8/voiceboard.php"> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/fr/voicepodcaster.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/fr_utf8/voicepodcaster.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/fr/voicepresentation.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_bundle.php" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/fr_utf8/voicepresentation.php"> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/fr/help/voiceboard/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/fr_utf8/help/voiceboard/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/fr/help/voicepodcaster/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/fr_utf8/help/voicepodcaster/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/fr/help/voicepresentation/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/french_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/fr_utf8/help/voicepresentation/mods.html" /> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/en/help/voiceboard/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voiceboard/lang/en_utf8/help/voiceboard/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/en/help/voicepodcaster/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/lang/en_utf8/help/voicepodcaster/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/en/help/voicepresentation/mods.html" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/lang/english_help.html" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/lang/en_utf8/help/voicepresentation/mods.html" /> + + <copy file="${basedir}/src/main/php/mod/voicetools_generic/voicepresentation.png" tofile="${project.build.directory}/generated-sources/mod/voicepresentation/icon.gif" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/voiceboard.png" tofile="${project.build.directory}/generated-sources/mod/voiceboard/icon.gif" /> + <copy file="${basedir}/src/main/php/mod/voicetools_generic/voicepodcaster.png" tofile="${project.build.directory}/generated-sources/mod/voicepodcaster/icon.gif" /> + + <copy todir="${project.build.directory}/generated-sources/mod/voicepodcaster/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voicepodcaster" /> + <filter token="SHORT_NAME" value="pc" /> + <filter token="COMPLETE_NAME" value="Voice Podcaster" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voicepresentation/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voicepresentation" /> + <filter token="SHORT_NAME" value="presentation" /> + <filter token="COMPLETE_NAME" value="Voice Presentation" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voiceboard/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voiceboard" /> + <filter token="SHORT_NAME" value="board" /> + <filter token="COMPLETE_NAME" value="Voice Board" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/liveclassroom/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="liveclassroom" /> + <filter token="SHORT_NAME" value="lc" /> + <filter token="COMPLETE_NAME" value="Wimba Classroom" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voiceemail/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voiceemail" /> + <filter token="SHORT_NAME" value="vmail" /> + <filter token="COMPLETE_NAME" value="Voice Email" /> + </filterset> + </copy> + + <copy todir="${project.build.directory}/generated-sources/mod/voiceauthoring/lib" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common"> + </fileset> + <filterset> + <filter token="MODULE_NAME" value="voiceauthoring" /> + <filter token="SHORT_NAME" value="recorder" /> + <filter token="COMPLETE_NAME" value="Voice Authoring" /> + </filterset> + </copy> + + + <copy file="${basedir}/src/main/php/integrations_common/php/vt/WimbaVoicetoolsAPI.php" tofile="${project.build.directory}/generated-sources/mod/voicetools/lib/php/vt/WimbaVoicetoolsAPI.php" /> + <copy file="${basedir}/src/main/php/integrations_common/php/vt/WimbaVoicetools.php" tofile="${project.build.directory}/generated-sources/mod/voicetools/lib/php/vt/WimbaVoicetools.php" /> + <copy file="${basedir}/src/main/php/integrations_common/php/common/WimbaLib.php" tofile="${project.build.directory}/generated-sources/mod/voicetools/lib/php/common/WimbaLib.php" /> + + <copy todir="${project.build.directory}/generated-sources/mod/voicetools/lib/web" overwrite="true"> + <fileset dir="${basedir}/src/main/php/integrations_common/web"> + </fileset> + </copy> + + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- plugin to assembly the zip, phase=package --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <goals> + <!-- bug http://jira.codehaus.org/browse/MASSEMBLY-97 --> + <!-- It should be 'attached' instead of 'single' --> + <goal>single</goal> + </goals> + <phase>package</phase> + <id>make-assembly</id> + </execution> + </executions> + <configuration> + <finalName>wimba-moodle-${project.version}</finalName> + <descriptors> + <descriptor>${basedir}/src/main/assembly/descriptor.xml</descriptor> + </descriptors> + </configuration> + </plugin> + </plugins> + </build> + + <distributionManagement> + <repository> + <id>wimba-internal-repository</id> + <name>wimba artifactory (FR)</name> + <url>dav:http://artifactoryfr.wimba.com/artifactory/wimba-internal-repository</url> + <uniqueVersion>false</uniqueVersion> + </repository> + <snapshotRepository> + <uniqueVersion>true</uniqueVersion> + <id>wimba-internal-repository-snapshots</id> + <name>wimba artifactory (FR) snapshot</name> + <url>dav:http://artifactoryfr.wimba.com/artifactory/wimba-internal-repository-snapshots</url> + </snapshotRepository> + <site> + <id>wimba-site-fr</id> + <url>scp://mvn-site.wimba.com/var/www/html/mvn2-sites/moodle/${project.version}/</url> + </site> + </distributionManagement> + + </project> \ No newline at end of file Added: trunk/src/main/assembly/descriptor.xml =================================================================== --- trunk/src/main/assembly/descriptor.xml (rev 0) +++ trunk/src/main/assembly/descriptor.xml 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,25 @@ +<assembly> + <formats> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>target/generated-sources</directory> + + <outputDirectory></outputDirectory> + </fileSet> + <fileSet> + <directory>src/main/php</directory> + <excludes> + <exclude> + **/voicetools_generic/** + </exclude> + <exclude> + **/integrations_common/** + </exclude> + </excludes> + <outputDirectory></outputDirectory> + </fileSet> + </fileSets> +</assembly> \ No newline at end of file Added: trunk/src/main/php/blocks/bvoiceemail/block_bvoiceemail.php =================================================================== --- trunk/src/main/php/blocks/bvoiceemail/block_bvoiceemail.php (rev 0) +++ trunk/src/main/php/blocks/bvoiceemail/block_bvoiceemail.php 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,58 @@ +<?PHP + +require_once($CFG->libdir.'/datalib.php'); + +class block_bvoiceemail extends block_base { + + function init() { + $this->title = "Voice E-Mail"; + $this->version = 2004111200; + } + + function preferred_width() { + return 220; + } + + function applicable_formats() { + + return array('site-index' => false, + 'course-view' => true + ); + + } + + function get_content() { + + global $CFG, $USER, $COURSE; + if ($this->content !== NULL) { + return $this->content; + } + + $this->content = new stdClass; + $this->content->text = ''; + $this->content->footer = ''; + $this->content->text .= '<table>'; + $this->content->text .= '<tr><td align="center">'; + $this->content->text .= '<iframe src='.$CFG->wwwroot.'/mod/voiceemail/block.php?course_id='. $COURSE->id.'&block_id='.$this->instance->id.' name="frameWidget" style="overflow:hidden" FRAMEBORDER=0 width="220px" height="150px"></iframe>'; + $this->content->text .= '</td></tr>'; + $this->content->text .= '</table>'; + + return $this->content; + } + + function instance_allow_multiple() { + return true; + } + + + function instance_allow_config() { + return true; + } + function has_config() { + return true; + } + +} + + +?> \ No newline at end of file Added: trunk/src/main/php/blocks/bvoiceemail/config_instance.html =================================================================== --- trunk/src/main/php/blocks/bvoiceemail/config_instance.html (rev 0) +++ trunk/src/main/php/blocks/bvoiceemail/config_instance.html 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,9 @@ +<?php +global $COURSE; + +?> +<div align="center"> +<iframe width="750px" align="center" height="300px" src="<?php echo $CFG->wwwroot;?>/mod/voiceemail/block_config.php?course_id=<?php echo $COURSE->id?>&block_id=<?php echo $this->instance->id?>" style="overflow:hidden" FRAMEBORDER="0"></iframe> +</div> + + Added: trunk/src/main/php/blocks/bvoicerecorder/block_bvoiceemail.php =================================================================== --- trunk/src/main/php/blocks/bvoicerecorder/block_bvoiceemail.php (rev 0) +++ trunk/src/main/php/blocks/bvoicerecorder/block_bvoiceemail.php 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,58 @@ +<?PHP + +require_once($CFG->libdir.'/datalib.php'); + +class block_bvoiceemail extends block_base { + + function init() { + $this->title = "Voice E-Mail"; + $this->version = 2004111200; + } + + function preferred_width() { + return 220; + } + + function applicable_formats() { + + return array('site-index' => false, + 'course-view' => true + ); + + } + + function get_content() { + + global $CFG, $USER, $COURSE; + if ($this->content !== NULL) { + return $this->content; + } + + $this->content = new stdClass; + $this->content->text = ''; + $this->content->footer = ''; + $this->content->text .= '<table>'; + $this->content->text .= '<tr><td align="center">'; + $this->content->text .= '<iframe src='.$CFG->wwwroot.'/mod/voiceemail/block.php?course_id='. $COURSE->id.'&block_id='.$this->instance->id.' name="frameWidget" style="overflow:hidden" FRAMEBORDER=0 width="220px" height="150px"></iframe>'; + $this->content->text .= '</td></tr>'; + $this->content->text .= '</table>'; + + return $this->content; + } + + function instance_allow_multiple() { + return false; + } + + + function instance_allow_config() { + return true; + } + function has_config() { + return true; + } + +} + + +?> \ No newline at end of file Added: trunk/src/main/php/blocks/bvoicerecorder/block_bvoicerecorder.php =================================================================== --- trunk/src/main/php/blocks/bvoicerecorder/block_bvoicerecorder.php (rev 0) +++ trunk/src/main/php/blocks/bvoicerecorder/block_bvoicerecorder.php 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,76 @@ +<?PHP + + +require_once($CFG->libdir.'/datalib.php'); + + +class block_bvoicerecorder extends block_base { + + function init() { + + $this->title = "Voice Authoring"; + $this->version = 2008111200; + } + + function specialization() { + $block_info = get_record("voiceauthoring_block","bid",$this->instance->id); + $this->title = isset($block_info->title) ? format_string($block_info->title) : format_string("Voice Authoring"); + } + + function preferred_width() { + return 215 ; + } + + function applicable_formats() { + + return array('site-index' => false, + 'course-view' => true + ); + + } + + + function get_content() { + + global $CFG, $USER, $COURSE; + if ($this->content !== NULL) { + return $this->content; + } + + + + $this->content = new stdClass; + + $this->content->text = ''; + $this->content->footer = ''; + $this->content->text .= '<table>'; + $this->content->text .= '<tr><td align="center">'; + $this->content->text .= '<iframe src='.$CFG->wwwroot.'/mod/voiceauthoring/voiceauthoring.php?course_id='.$COURSE->id. + '&block_id='.$this->instance->id. + 'name="frameWidget" style="overflow:hidden;margin-top:-10px" + FRAMEBORDER=0 width="215px" height="150px"></iframe>'; + + $this->content->text .= '</td></tr>'; + $this->content->text .= '</table>'; + + + + return $this->content; + } + function instance_allow_multiple() { + return true; + } + + + function instance_allow_config() { + return false; + } + function has_config() { + return false; + } + +} + + +?> + Added: trunk/src/main/php/blocks/bvoicerecorder/config_global.html =================================================================== --- trunk/src/main/php/blocks/bvoicerecorder/config_global.html (rev 0) +++ trunk/src/main/php/blocks/bvoicerecorder/config_global.html 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,33 @@ + <table cellpadding="9" cellspacing="0"> +<tr valign="top"> + <td align="right"><?php print_string('coursenumbers', 'block_bliveclassroom') ?></td> + <td> + <input name="block" type="hidden" value="<?php echo intval($_REQUEST['block']); ?>" /> + <input name="block_bliveclassroom_coursenumber" type="text" size="5" value="<?php + if(isset($CFG->block_bliveclassroom_coursenumber)) { + p($CFG->block_bliveclassroom_coursenumber); + } else { + p(3); + } ?>" /> + </td> + +</tr> +<tr> +<tr valign="top"> + <td align="right"><?php print_string('globalnumbers', 'block_bliveclassroom') ?></td> + + <td> + <input name="block_bliveclassroom_globalnumber" type="text" size="5" value="<?php + if(isset($CFG->block_bliveclassroom_globalnumber)) { + p($CFG->block_bliveclassroom_globalnumber); + } else { + p(5); + } ?>" /> + </td> + +</tr> + + <td colspan="2" align="center"> + <input type="submit" value="<?php print_string('savechanges') ?>" /></td> +</tr> +</table> Added: trunk/src/main/php/blocks/bvoicerecorder/config_instance.html =================================================================== --- trunk/src/main/php/blocks/bvoicerecorder/config_instance.html (rev 0) +++ trunk/src/main/php/blocks/bvoicerecorder/config_instance.html 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,9 @@ +<?php +global $COURSE; + +?> +<div align="center"> +<iframe width="750px" align="center" height="300px" src="<?php echo $CFG->wwwroot;?>/mod/voiceauthoring/block_config.php?course_id=<?php echo $COURSE->id?>&block_id=<?php echo $this->instance->id?>" style="overflow:hidden" FRAMEBORDER="0"></iframe> +</div> + + Added: trunk/src/main/php/integrations_common/php/common/DatabaseManagement.php =================================================================== --- trunk/src/main/php/integrations_common/php/common/DatabaseManagement.php (rev 0) +++ trunk/src/main/php/integrations_common/php/common/DatabaseManagement.php 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,177 @@ +<?php + +function storeResource($rid,$course_id, $params) +{ + + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + // if(isset($params["name"])) + //{ + // $voicetools->name = $params["name"]; + //} + // $voicetools->type = $params["type"]; + + if ($params != null && $params["default"]=="false") + { + $voicetools->availability = $params["accessAvailable"]; + if ($params["start_date"] == "true") + { + $start_hr = intval($params["start_hr"]); + $start_min = intval($params["start_min"]); + $start_month = intval($params["start_month"]); + $start_day = intval($params["start_day"]); + $start_year = intval($params["start_year"]); + $voicetools->start_date = mktime($start_hr, $start_min, 0, $start_month, $start_day, $start_year); + } + else + { + $voicetools->start_date = -1; + } + + if ($params["end_date"] == "true") { + $end_hr = intval($params["end_hr"]); + $end_min = intval($params["end_min"]); + $end_month = intval($params["end_month"]); + $end_day = intval($params["end_day"]); + $end_year = intval($params["end_year"]); + $voicetools->end_date = mktime($end_hr, $end_min, 0, $end_month, $end_day, $end_year); + } + else + { + $voicetools->end_date = -1; + } + } + else + {//defualt value + $voicetools->availability = 1; + $voicetools->start_date = -1; + $voicetools->end_date = -1; + } + return @MODULE_NAME@_store_new_element($voicetools); +} + +function storeRecorderResource($rid,$course_id, $mid) +{ + + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + $voicetools->mid = $mid; + + + return @MODULE_NAME@_store_new_element($voicetools); +} + +function storeVmailResource($rid,$course_id, $block_id='0') +{ + + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + $voicetools->block = $block_id; + + + return @MODULE_NAME@_store_new_element($voicetools); +} + +function updateRecorderResource($rid,$course_id, $mid) +{ + + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + $voicetools->mid = $mid; + + + return @MODULE_NAME@_update_element($voicetools); +} + +function updateVmailResource($rid,$course_id, $block_id='') +{ + + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + $voicetools->block = $block_id; + + + return @MODULE_NAME@_update_element($voicetools); +} + + +function updateResource($rid,$course_id, $params) +{ + $voicetools = new Object(); + $voicetools->rid = $rid; + $voicetools->course = $course_id; + $voicetools->type = $params["type"]; + $voicetools->availability = $params["accessAvailable"]; + + if ($params["start_date"] == "true") + { + $start_hr = intval($params["start_hr"]); + $start_min = intval($params["start_min"]); + $start_month = intval($params["start_month"]); + $start_day = intval($params["start_day"]); + $start_year = intval($params["start_year"]); + $voicetools->start_date = mktime($start_hr, $start_min, 0, $start_month, $start_day, $start_year); + } + else + { + $voicetools->start_date = -1; + } + + if ($params["end_date"] == "true") { + $end_hr = intval($params["end_hr"]); + $end_min = intval($params["end_min"]); + $end_month = intval($params["end_month"]); + $end_day = intval($params["end_day"]); + $end_year = intval($params["end_year"]); + $voicetools->end_date = mktime($end_hr, $end_min, 0, $end_month, $end_day, $end_year); + } + else + { + $voicetools->end_date = -1; + } + return @MODULE_NAME@_update_element($voicetools); +} + +function isVtAvailable($rid) +{ + $preview = false; + $vt_informations = @MODULE_NAME@_get_voicetool_informations($rid); + + if ($vt_informations != null && $vt_informations->availability == 0) + { + $preview = false; + } + elseif ($vt_informations != null && $vt_informations->start_date == -1 && $vt_informations->end_date == -1) + { + $preview = true; + } + elseif ($vt_informations != null && $vt_informations->start_date == -1 && time() <= $vt_informations->end_date) + { + $preview = true; + } + elseif ($vt_informations != null && $vt_informations->start_date < time() && $vt_informations->end_date == -1) + { + $preview = true; + } + elseif ($vt_informations != null && $vt_informations->start_date < time() && time() < $vt_informations->end_date) + { + $preview = true; + } + else { + $preview = false; + } + + return $preview; +} + + + + + + +?> \ No newline at end of file Added: trunk/src/main/php/integrations_common/php/common/WimbaCommons.php =================================================================== --- trunk/src/main/php/integrations_common/php/common/WimbaCommons.php (rev 0) +++ trunk/src/main/php/integrations_common/php/common/WimbaCommons.php 2008-10-29 18:06:54 UTC (rev 261) @@ -0,0 +1,187 @@ +<?php +/****************************************************************************** + * * + * Copyright (c) 1999-2008 Wimba, All Rights Reserved. * + * * + * COPYRIGHT: * + * This software is the property of Wimba. * + * You can redistribute it and/or modify it under the terms of * + * the GNU General Public License as published by the * + * Free Software Foundation. * + * * + * WARRANTIES: * + * This software is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with the Wimba Moodle Integration; * + * if not, write to the Free Software Foundation, Inc., * + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * + * * + * Author: Thomas Rollinger * + * * + * Date: January 2007 * + * * + ******************************************************************************/ + +/* $Id: WimbaVoicetoolsAPI.php 45764 2007-02-28 22:04:25Z thomasr $ */ +class WimbaMoodleSession{ + + var $hparams=array(); + var $url_params; + var $signature=""; + var $currentVtUser ; + var $currentVtUserRigths; + var $timeOfLoad; + var $error=false; + var $request; + + + function WimbaMoodleSession($parameters=NULL){ + $this->timeOfLoad = time(); + $signature=""; + $this->request=$parameters; + if (($this->timeOfLoad - $parameters["time"] <= 10) && ($this->timeOfLoad - $parameters["time"] >= 0)) + {//30 min + ksort($parameters); + foreach ($parameters as $key => $value) + { + if (strstr($key, 'enc_'))//param use to signature + { + if( $value=="") + { + $this->hparams[substr($key,4)] =""; + } + else + { + $this->hparams[substr($key,4)] =rawurldecode($value); + } + $signature .= rawurldecode($value); + $this->url_params .= "enc_".substr($key,4)."=".rawurlencode($value)."&"; + } + } + + if ($parameters["signature"] != md5($signature))//good signatureature + { + $this->error="signature"; + } + $this->signature=md5($signature); + $this->url_params .="signature=".rawurlencode($this->signature); + } + else//session time out + { + $this->error="session"; + } + } + + function getCourseId(){ + + if(isset($this->hparams["course_id"])) + { + return $this->hparams["course_id"]; + } + return null; + } + + function getLcCurrentUser(){ + if($this->isInstructor()) + { + return $this->getCourseId()."_T"; + } + return $this->getCourseId()."_S"; + } + + function setCurrentVtUSer($product,$screenName="",$email="",$role=""){ + $this->currentVtUser = new VtUser(NULL); + $this->currentVtUserRigths = new VtRights(NULL); + + if($screenName=="") + { + $this->currentVtUser->setScreenName($this->hparams["firstname"]."_".$this->hparams["lastname"]); + } + else + { + $this->currentVtUser->setScreenName($screenName); + } + + if($email=="") + { + $this->currentVtUser->setEmail ($this->hparams["email"]); + } + else + { + $this->currentVtUser->setEmail ( $email); + } + + + if (($role!="" && $role=="Instructor") || ($role=="" && $this->hparams["role"]=="Instructor")) + { + $this->setVtUserRigths($product,"instructor"); + } + else + { + $this->setVtUserRigths($product,"student"); + } + + } + + + function getVtUser(){ + return $this->currentVtUser; + } + + function getVtUserRigths(){ + return $this->currentVtUserRigths; + } + + function setVtUserRigths($product,$role){ + $this->currentVtUserRigths->setProfile ( 'moodle.'.$product.'.'.$role); + if($product=="presentation") + { + $this->currentVtUserRigths->add("reply_message"); + } + } + + function isInstructor(){ + if($this->hparams["role"]!=null && $this->hparams["role"]=="Instructor") + { + return true; + } + return false; + } + + function getFirstname(){ + + if(isset($this->hparams["firstname"])) + { + return $this->hparams["firstname"]; + } + return ""; + } + + function getEmail(){ + + if(isset($this->hparams["email"])) + { + return $this->hparams["email"]; + } + return ""; + } + function getLastname(){ + + if(isset($this->hparams["lastname"])) + { + return $this->hparams["lastname"]; + } + return ""; + } + +} + + + + + +?> \ No newline at end of file Added: trunk/src/main/php/integrations_common/php/common/WimbaLib.php =======... [truncated message content] |