Revision: 4328
Author: seba.wagner
Date: Fri Sep 30 08:38:05 2011
Log: Update Moodle Plugin Part 1
http://code.google.com/p/openmeetings/source/detail?r=4328
Added:
/trunk/plugins/moodle_plugin/lang/de
/trunk/plugins/moodle_plugin/lang/de/openmeetings.php
Modified:
/trunk/plugins/moodle_plugin/db/install.xml
/trunk/plugins/moodle_plugin/lang/en/openmeetings.php
/trunk/plugins/moodle_plugin/lang/fr/openmeetings.php
/trunk/plugins/moodle_plugin/mod_form.php
/trunk/plugins/moodle_plugin/settings.php
/trunk/plugins/moodle_plugin/view.php
=======================================
--- /dev/null
+++ /trunk/plugins/moodle_plugin/lang/de/openmeetings.php Fri Sep 30
08:38:05 2011
@@ -0,0 +1,41 @@
+<?php
+
+$string['openmeetings'] = 'openmeetings';
+
+$string['modulename'] = 'OpenMeetings';
+$string['modulenameplural'] = 'OpenMeetings';
+
+$string['whiteboardfieldset'] = 'Custom example fieldset';
+$string['whiteboardintro'] = 'OpenMeetings Intro';
+$string['whiteboardname'] = 'Name';
+
+$string['red5host'] = 'OpenMeetings Server Host oder IP';
+$string['red5port'] = 'OpenMeetings Server Port';
+$string['openmeetingsAdminUser'] = 'OpenMeetings Admin Benutzer';
+$string['openmeetingsAdminUserPass'] = 'OpenMeetings Admin Benutzer
Passwort';
+$string['openmeetingsModuleKey'] = 'OpenMeetings Modul-SchlŸssel (falls
Sie mehrer Moodle Instanzen betreiben sollte der SchlŸssel bei jeder
Instanz anders sein)';
+
+$string['Room_Name'] = 'Raum name';
+$string['Room_Type'] = 'Raumtyp';
+$string['Room_Language'] = 'Raum-Sprache';
+$string['Max_User'] = 'Maximale Teilnehmerzahl';
+$string['Wait_for_teacher'] = 'Moderations-Modus';
+
+$string['recordings_label'] = 'Das Feld mit den aufgezeichneten Meetings
wird nur verwendet wenn der Raumtype "Aufzeichnung anzeigen" gewŠhlt
wurde.';
+$string['recordings_show'] = 'Aufgezeichnet Meetings';
+$string['Comment'] = 'Kommentar';
+
+$string['Conference'] = 'Konference (bis 16 Teilnehmer)';
+$string['Audience'] = 'Audience (bis 32 Teilnehmer)';
+$string['Restricted'] = 'Webinar (bis 150 Teilnehmer)';
+$string['Recording'] = 'Aufzeichnung anzeigen (Aufzeichnung auswŠhlen die
statt dem Konferenzraum dann angezeigt wird!)';
+
+$string['Moderation_TYPE_1'] = 'Teilnehmer mŸssen warten bis ein Moderator
im Raum erscheint (Moodle Administratoren, Lehrer und Kurs Moderatoren sind
automatisch Moderator)';
+$string['Moderation_TYPE_2'] = 'Teilnehmer kšnnen selbststŠndig anfangen
(der erste besucher wird Moderator im Raum)';
+$string['Moderation_TYPE_3'] = 'Jeder Teilnehmer ist automatisch Moderator
im Konferenz-Raum';
+
+$string['Allow_Recording'] = 'Funktion zum Aufzeichnen verfŸgbar';
+$string['Recording_TYPE_1'] = 'Die Funktion zum Aufzeichnen des
Konferenzraums ist aktiv und kann gestartet werden.';
+$string['Recording_TYPE_2'] = 'Die Funktion zum Aufzeichnen des
Konferenzraums ist nicht verfŸgbar.';
+
+?>
=======================================
--- /trunk/plugins/moodle_plugin/db/install.xml Sun Jan 9 03:16:06 2011
+++ /trunk/plugins/moodle_plugin/db/install.xml Fri Sep 30 08:38:05 2011
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<XMLDB PATH="mod/openmeetings/db" VERSION="20080512" COMMENT="XMLDB file
for OpenMeetings"
+<XMLDB PATH="mod/openmeetings/db" VERSION="20110930" COMMENT="XMLDB file
for OpenMeetings"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
@@ -19,7 +19,8 @@
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true"
UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false"
PREVIOUS="introformat" NEXT="timemodified"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true"
UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false"
PREVIOUS="timecreated" NEXT="room_id"/>
<FIELD NAME="room_id" TYPE="int" LENGTH="10" NOTNULL="true"
UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false"
PREVIOUS="timemodified" NEXT="room_recording_id"/>
- <FIELD NAME="room_recording_id" TYPE="int" LENGTH="10"
NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false"
PREVIOUS="room_id"/>
+ <FIELD NAME="room_recording_id" TYPE="int" LENGTH="10"
NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false"
COMMENT="room_recording_id" PREVIOUS="room_id" NEXT="allow_recording"/>
+ <FIELD NAME="allow_recording" TYPE="int" LENGTH="10"
NOTNULL="true" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false"
COMMENT="allow_recording" PREVIOUS="room_recording_id" />
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary
key for whiteboard"/>
=======================================
--- /trunk/plugins/moodle_plugin/lang/en/openmeetings.php Sun Jan 9
03:24:20 2011
+++ /trunk/plugins/moodle_plugin/lang/en/openmeetings.php Fri Sep 30
08:38:05 2011
@@ -25,5 +25,17 @@
$string['recordings_show'] = 'Available Recordings to Shows';
$string['Comment'] = 'Comment';
+$string['Conference'] = 'Conference (max 16 participants)';
+$string['Audience'] = 'Audience (max 32 participants)';
+$string['Restricted'] = 'Webinar (max 150 participants)';
+$string['Recording'] = 'Show Recording (select recording from drop down to
be shown instead of meeting)';
+
+$string['Moderation_TYPE_1'] = 'Participants need to wait till the teacher
enters the room';
+$string['Moderation_TYPE_2'] = 'Participants can already start (first User
in room becomes moderator)';
+$string['Moderation_TYPE_3'] = 'Every participant is automatically
moderator when he/she enters the room';
+
+$string['Allow_Recording'] = 'Recording allowed';
+$string['Recording_TYPE_1'] = 'Recording functionality is available.';
+$string['Recording_TYPE_2'] = 'Recording functionality is not available.';
?>
=======================================
--- /trunk/plugins/moodle_plugin/lang/fr/openmeetings.php Sun Jan 9
03:24:20 2011
+++ /trunk/plugins/moodle_plugin/lang/fr/openmeetings.php Fri Sep 30
08:38:05 2011
@@ -25,12 +25,16 @@
$string['recordings_show'] = 'Available Recordings to Shows';
$string['Comment'] = 'Comment';
-$string['Conference'] = 'Réunion';
-$string['Audience'] = 'Conférence';
-$string['Restricted'] = 'Accès restreint';
-
-$string['Start with teacher'] = 'Les participants doivent attendre un
enseignant pour pouvoir commencer';
-$string['Start without teacher'] = 'La réunion peut démarrer
immédiatement (le premier connecté devient le
modérateur)';
-
-
+$string['Conference'] = 'Réunion (max 16 participants)';
+$string['Audience'] = 'Conférence (max 32 participants)';
+$string['Restricted'] = 'Accès restreint (max 150 participants)';
+$string['Recording'] = 'Show Recording (select recording from drop down to
be shown instead of meeting)';
+
+$string['Moderation_TYPE_1'] = 'Les participants doivent attendre un
enseignant pour pouvoir commencer';
+$string['Moderation_TYPE_2'] = 'La réunion peut démarrer
immédiatement (le premier connecté devient le
modérateur)';
+$string['Moderation_TYPE_3'] = 'Every participant is automatically
moderator when he/she enters the room';
+
+$string['Allow_Recording'] = 'Recording allowed';
+$string['Recording_TYPE_1'] = 'Recording functionality is available.';
+$string['Recording_TYPE_2'] = 'Recording functionality is not available.';
?>
=======================================
--- /trunk/plugins/moodle_plugin/mod_form.php Sun Jun 19 03:05:13 2011
+++ /trunk/plugins/moodle_plugin/mod_form.php Fri Sep 30 08:38:05 2011
@@ -1,70 +1,73 @@
-<?php
+<?php
if (!defined('MOODLE_INTERNAL')) {
- die('Direct access to this script is forbidden.'); /// It must be
included from a Moodle page
+ die('Direct access to this script is forbidden.'); /// It must be
included from a Moodle page
}
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
class mod_openmeetings_mod_form extends moodleform_mod {
- function definition() {
-
- global $COURSE;
- $mform =& $this->_form;
-
-//-------------------------------------------------------------------------------
- /// Adding the "general" fieldset, where all the common settings are
showed
- $mform->addElement('header', 'general',
get_string('general', 'form'));
- /// Adding the standard "name" field
- $mform->addElement('text', 'name',
get_string('Room_Name', 'openmeetings'), array('size'=>'64'));
- $mform->setType('name', PARAM_TEXT);
- $mform->addRule('name', null, 'required', null, 'client');
-
- $mform->addElement('hidden', 'room_id', 'Room Id',
array('size'=>'64'));
-
- /// Adding the "Room Type" field
- $mform->addElement('select', 'type',
get_string('Room_Type', 'openmeetings'), array('1'=>'Conference
Room', '2'=>'Audience Room', '3'=>'Restricted Room', '0'=>'Show
Recording'));
-
- /// Some description
- $mform->addElement('static', 'description_room_recording_id',
get_string('recordings_label', 'openmeetings'), null);
-
- /// Adding the "Available Recordings to Shows" field
-
- //$recordings = array('1'=>'Recording 1', '2'=>'Recording 2');
- $recordings = array();
-
- $openmeetings_gateway = new openmeetings_gateway();
- if ($openmeetings_gateway->openmeetings_loginuser()) {
-
+ function definition() {
+
+ global $COURSE;
+ $mform =& $this->_form;
+
+
//-------------------------------------------------------------------------------
+ /// Adding the "general" fieldset, where all the common settings are
showed
+ $mform->addElement('header', 'general', get_string('general',
'form'));
+ /// Adding the standard "name" field
+ $mform->addElement('text', 'name',
get_string('Room_Name', 'openmeetings'), array('size'=>'64'));
+ $mform->setType('name', PARAM_TEXT);
+ $mform->addRule('name', null, 'required', null, 'client');
+
+ $mform->addElement('hidden', 'room_id', 'Room Id',
array('size'=>'64'));
+
+ /// Adding the "Room Type" field
+ $mform->addElement('select', 'type',
get_string('Room_Type', 'openmeetings'),
array('1'=>get_string('Conference', 'openmeetings'), '2'=>get_string('Audience', 'openmeetings'), '3'=>get_string('Restricted', 'openmeetings'), '0'=>get_string('Recording', 'openmeetings')));
+
+ /// Some description
+ //$mform->addElement('static', 'description_room_recording_id',
get_string('recordings_label', 'openmeetings'), null);
+
+ /// Adding the "Available Recordings to Shows" field
+
+ //$recordings = array('1'=>'Recording 1', '2'=>'Recording 2');
+ $recordings = array();
+
+ $openmeetings_gateway = new openmeetings_gateway();
+ if ($openmeetings_gateway->openmeetings_loginuser()) {
+
$recordingsArray =
$openmeetings_gateway->openmeetings_getRecordingsByExternalRooms();
-
-
+
+
foreach ($recordingsArray as $key => $value) {
//there is a bug, if a List has the length of 1
the type is wrong
if (is_array($value)) {
- //echo "Das Element " . $value["flvRecordingId"] . " enthŠlt den
Wert: " . $value["fileName"] . "<br>";
- $recordings[$value["flvRecordingId"]] =
$value["fileName"];
+ //echo "Das Element " . $value["flvRecordingId"] . " enthŠlt den
Wert: " . $value["fileName"] . "<br>";
+ $recordings[$value["flvRecordingId"]] =
$value["fileName"];
} else {
//echo "Das Element " . $recordingsArray["flvRecordingId"] . "
enthŠlt den Wert: " . $recordingsArray["fileName"] . "<br>";
$recordings[$recordingsArray["flvRecordingId"]] =
$recordingsArray["fileName"];
break;
}
- }
-
-
- }
-
- $mform->addElement('select', 'room_recording_id',
get_string('recordings_show', 'openmeetings'), $recordings);
-
- /// Adding the "Number of Participants" field
- $mform->addElement('select', 'max_user',
get_string('Max_User', 'openmeetings'),
array('2'=>'2', '4'=>'4', '8'=>'8', '16'=>'16', '24'=>'24', '36'=>'36', '50'=>'50', '100'=>'100', '200'=>'200', '500'=>'500', '1000'=>'1000'));
-
- /// Adding the "Is Moderated Room" field
- $mform->addElement('select', 'is_moderated_room',
get_string('Wait_for_teacher', 'openmeetings'), array('1'=>'Participants
need to wait till the teacher enters the room','2' => 'Participants can
already start (first User in Room becomes Moderator)'));
-
- /// Adding the "Room Language" field
- $language_array = array ('1' => 'english',
+ }
+
+
+ }
+
+ $mform->addElement('select', 'room_recording_id',
get_string('recordings_show', 'openmeetings'), $recordings);
+
+ /// Adding the "Number of Participants" field
+ $mform->addElement('select', 'max_user',
get_string('Max_User', 'openmeetings'),
array('2'=>'2', '4'=>'4', '8'=>'8', '16'=>'16', '24'=>'24', '36'=>'36', '50'=>'50', '100'=>'100', '150'=>'150', '200'=>'200', '250'=>'250', '500'=>'500', '1000'=>'1000'));
+
+ /// Adding the "Is Moderated Room" field
+ $mform->addElement('select', 'is_moderated_room',
get_string('Wait_for_teacher', 'openmeetings'), array('1'=>
get_string('Moderation_TYPE_1', 'openmeetings'),'2' =>
get_string('Moderation_TYPE_2', 'openmeetings'),'3' =>
get_string('Moderation_TYPE_3', 'openmeetings')));
+
+ $mform->addElement('select', 'allow_recording',
get_string('Allow_Recording', 'openmeetings'), array('1'=>
get_string('Recording_TYPE_2', 'openmeetings'),'2' =>
get_string('Recording_TYPE_2', 'openmeetings')));
+
+
+ /// Adding the "Room Language" field
+ $language_array = array ('1' => 'english',
'2' =>
'deutsch',
'3' =>
'deutsch (studIP)',
'4' =>
'french',
@@ -96,30 +99,30 @@
'30' =>
'bulgarian',
'31' =>
'danish',
'32' =>
'slovak');
-
- $mform->addElement('select', 'language',
get_string('Room_Language', 'openmeetings'), $language_array);
-
- /// Adding the optional "intro" and "introformat" pair of fields
- $mform->addElement('htmleditor', 'intro',
get_string('Comment', 'openmeetings'));
- $mform->setType('intro', PARAM_RAW);
- //$mform->addRule('intro', get_string('required'), 'required',
null, 'client');
- //$mform->setHelpButton('intro', array('writing', 'richtext'),
false, 'editorhelpbutton');
-
- //$mform->addElement('format', 'introformat',
get_string('format', 'openmeetings'));
- //$this->add_intro_editor(true,
get_string('description', 'mplayer'));
+
+ $mform->addElement('select', 'language',
get_string('Room_Language', 'openmeetings'), $language_array);
+
+ /// Adding the optional "intro" and "introformat" pair of fields
+ $mform->addElement('htmleditor', 'intro',
get_string('Comment', 'openmeetings'));
+ $mform->setType('intro', PARAM_RAW);
+ //$mform->addRule('intro', get_string('required'), 'required',
null, 'client');
+ //$mform->setHelpButton('intro', array('writing', 'richtext'),
false, 'editorhelpbutton');
+
+ //$mform->addElement('format', 'introformat',
get_string('format', 'openmeetings'));
+ //$this->add_intro_editor(true, get_string('description',
'mplayer'));
$this->add_intro_editor(true);
-
//-------------------------------------------------------------------------------
- // add standard elements, common to all modules
-
//$this->standard_coursemodule_elements(array('groups'=>true, 'groupings'=>true, 'groupmembersonly'=>true));
- $this->standard_coursemodule_elements();
-
-
//-------------------------------------------------------------------------------
- // add standard buttons, common to all modules
- $this->add_action_buttons();
-
- }
+
//-------------------------------------------------------------------------------
+ // add standard elements, common to all modules
+
//$this->standard_coursemodule_elements(array('groups'=>true, 'groupings'=>true, 'groupmembersonly'=>true));
+ $this->standard_coursemodule_elements();
+
+
//-------------------------------------------------------------------------------
+ // add standard buttons, common to all modules
+ $this->add_action_buttons();
+
+ }
}
?>
=======================================
--- /trunk/plugins/moodle_plugin/settings.php Sun Jan 9 02:59:47 2011
+++ /trunk/plugins/moodle_plugin/settings.php Fri Sep 30 08:38:05 2011
@@ -13,7 +13,7 @@
get_string('openmeetingsAdminUser', 'openmeetings'), "admin", PARAM_TEXT));
$settings->add(new
admin_setting_configtext('openmeetings_openmeetingsAdminUserPass',
get_string('openmeetingsAdminUserPass', 'openmeetings'),
-
get_string('openmeetingsAdminUserPass', 'openmeetings'), "password",
PARAM_TEXT));
+
get_string('openmeetingsAdminUserPass', 'openmeetings'), "password",
PARAM_PASSWORD));
$settings->add(new
admin_setting_configtext('openmeetings_openmeetingsModuleKey',
get_string('openmeetingsModuleKey', 'openmeetings'),
get_string('openmeetingsModuleKey', 'openmeetings'), "moodle", PARAM_TEXT));
=======================================
--- /trunk/plugins/moodle_plugin/view.php Sun Jan 9 03:57:47 2011
+++ /trunk/plugins/moodle_plugin/view.php Fri Sep 30 08:38:05 2011
@@ -165,7 +165,7 @@
"/" .
"openmeetings/?" .
"secureHash=" .
$returnVal .
"&scopeRoomId="
. $scope_room_id .
-
//"&swf=maindebug.swf8.swf" .
+
"&swf=maindebug.swf8.swf" .
"&language=" .
$openmeetings->language .
"&picture=" .
$USER->picture .
"&user_id=".
$USER->id .
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.