@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | global $DB; |
233 | 233 | |
234 | 234 | $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id, |
235 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
236 | - 'userid' => $user->id, |
|
237 | - 'log' => 'Join', ), '*'); |
|
235 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
236 | + 'userid' => $user->id, |
|
237 | + 'log' => 'Join', ), '*'); |
|
238 | 238 | |
239 | 239 | if ($completed > 0) { |
240 | 240 | return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '. |
@@ -254,9 +254,9 @@ discard block |
||
254 | 254 | function bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn) { |
255 | 255 | global $DB; |
256 | 256 | $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id, |
257 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
258 | - 'userid' => $user->id, |
|
259 | - 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
257 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
258 | + 'userid' => $user->id, |
|
259 | + 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
260 | 260 | |
261 | 261 | return $completed > 0; |
262 | 262 | } |
@@ -329,12 +329,12 @@ discard block |
||
329 | 329 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
330 | 330 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
331 | 331 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
332 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
332 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
333 | 333 | $str .= ' </div>'."\n"; |
334 | 334 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
335 | 335 | '</div>'."\n"; |
336 | 336 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
337 | - .'</div>'."\n"; |
|
337 | + .'</div>'."\n"; |
|
338 | 338 | $str .= '</div>'."\n"; |
339 | 339 | |
340 | 340 | return $str; |
@@ -203,8 +203,8 @@ discard block |
||
203 | 203 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
204 | 204 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
205 | 205 | ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
206 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
207 | - ); |
|
206 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
207 | + ); |
|
208 | 208 | } else { |
209 | 209 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
210 | 210 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $field['description_key'], $cfg['recordings_html_default']); |
247 | 247 | |
248 | 248 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted_activities', 'data_type' => PARAM_INT, |
249 | - 'description_key' => null]; |
|
249 | + 'description_key' => null]; |
|
250 | 250 | if ($cfg['recordings_deleted_activities_editable']) { |
251 | 251 | $field['type'] = 'checkbox'; |
252 | 252 | $field['description_key'] = 'mod_form_field_recordings_deleted_activities'; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | html_writer::select($participantselection['type_options'], 'bigbluebuttonbn_participant_selection_type', |
302 | 302 | $participantselection['type_selected'], array(), |
303 | 303 | array('id' => 'bigbluebuttonbn_participant_selection_type', |
304 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
304 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participant_selection_set(); return 0;')).' '. |
|
305 | 305 | html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
306 | 306 | $participantselection['selected'], array(), |
307 | 307 | array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')).' '. |
@@ -178,14 +178,14 @@ |
||
178 | 178 | $bbbrectags = $tags; |
179 | 179 | } |
180 | 180 | $metadata = array('bbb-origin' => $bbbsession['origin'], |
181 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
182 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
183 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
184 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
185 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
186 | - 'bbb-recording-name' => $bbbrecname, |
|
187 | - 'bbb-recording-description' => $bbbrecdescription, |
|
188 | - 'bbb-recording-tags' => $bbbrectags, |
|
181 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
182 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
183 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
184 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
185 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
186 | + 'bbb-recording-name' => $bbbrecname, |
|
187 | + 'bbb-recording-description' => $bbbrecdescription, |
|
188 | + 'bbb-recording-tags' => $bbbrectags, |
|
189 | 189 | ); |
190 | 190 | |
191 | 191 | if (bigbluebuttonbn_is_bn_server()) { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * recordings from a different activity even from a different course. |
95 | 95 | **/ |
96 | 96 | |
97 | - /* |
|
97 | + /* |
|
98 | 98 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
99 | 99 | * activities will have the 'import recordings' capability enabled. |
100 | 100 | */ |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * 'Join session' button enabled |
116 | 116 | **/ |
117 | 117 | |
118 | - /* |
|
118 | + /* |
|
119 | 119 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
120 | 120 | * activities will have the 'wait for moderator' capability enabled by |
121 | 121 | * default. |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * 5. CONFIGURATION FOR "STATIC VOICE BRIDGE" FEATURE |
150 | 150 | * |
151 | 151 | **/ |
152 | - /* |
|
152 | + /* |
|
153 | 153 | * A conference voice bridge number can be permanently assigned to a room |
154 | 154 | * or activity. |
155 | 155 | */ |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * 6. CONFIGURATION FOR "PRE-UPLOAD PRESENTATION" FEATURE |
160 | 160 | * |
161 | 161 | **/ |
162 | - /* |
|
162 | + /* |
|
163 | 163 | * Since version 0.8, BigBluebutton has an implementation for allowing |
164 | 164 | * preuploading presentation. When this feature is enabled, users creating or |
165 | 165 | * editing a room or activity can upload a PDF or Office document to the |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * applied to each room or activity, or globally. |
177 | 177 | **/ |
178 | 178 | |
179 | - /* |
|
179 | + /* |
|
180 | 180 | * The number of users allowed in a session by default when a new room or |
181 | 181 | * conference is added. If the number is set to 0, no limit is established. |
182 | 182 | * $CFG->bigbluebuttonbn['userlimit_default'] = 0; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * By default only the owner is assigned. |
198 | 198 | **/ |
199 | 199 | |
200 | - /* |
|
200 | + /* |
|
201 | 201 | * The values for this parameter can be 'owner' and/or any of the roles defined in |
202 | 202 | * Moodle (including the custom parameters). The value used will be the key for the role. |
203 | 203 | * [owner|manager|coursecreator|editingteacher|teacher|student|guest|user|frontpage|ANY_CUSTOM_ROLE] |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * 9. CONFIGURATION FOR "NOTIFICATION SENDING" FEATURE |
209 | 209 | * |
210 | 210 | **/ |
211 | - /* |
|
211 | + /* |
|
212 | 212 | * When the value is set to 1 (checked) the 'notification sending' |
213 | 213 | * capability can be used by the user creating or editing the room or |
214 | 214 | * activity. |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * 10. CONFIGURATION FOR "RECORDING READY" FEATURE |
223 | 223 | * |
224 | 224 | **/ |
225 | - /* |
|
225 | + /* |
|
226 | 226 | * When the value is set to 1 (checked) the 'notify users when recording ready' |
227 | 227 | * capability is enabled, meaning that a message will be sent to all enrolled |
228 | 228 | * users in a course when a recording is ready |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | * 12. GENERAL CONFIGURATION FOR RECORDINGS UI |
246 | 246 | * |
247 | 247 | **/ |
248 | - /* |
|
248 | + /* |
|
249 | 249 | * When the value is set to 1 (checked) the bigbluebuttonbn resources |
250 | 250 | * will show the recodings in an html table by default. |
251 | 251 | * $CFG->bigbluebuttonbn['recordings_html_default'] = 0; |
@@ -93,8 +93,8 @@ |
||
93 | 93 | $output .= html_writer::start_tag('br'); |
94 | 94 | $output .= html_writer::tag('input', '', |
95 | 95 | array('type' => 'button', 'class' => 'btn btn-secondary', |
96 | - 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
97 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
96 | + 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
97 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
98 | 98 | |
99 | 99 | // JavaScript for locales. |
100 | 100 | $stringman = get_string_manager(); |
@@ -36,23 +36,23 @@ discard block |
||
36 | 36 | |
37 | 37 | // Change welcome, allow null. |
38 | 38 | $fielddefinition = array('type' => XMLDB_TYPE_TEXT, |
39 | - 'precision' => null, |
|
40 | - 'unsigned' => null, |
|
41 | - 'notnull' => XMLDB_NOTNULL, |
|
42 | - 'sequence' => null, |
|
43 | - 'default' => null, |
|
44 | - 'previous' => 'type'); |
|
39 | + 'precision' => null, |
|
40 | + 'unsigned' => null, |
|
41 | + 'notnull' => XMLDB_NOTNULL, |
|
42 | + 'sequence' => null, |
|
43 | + 'default' => null, |
|
44 | + 'previous' => 'type'); |
|
45 | 45 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'welcome', |
46 | 46 | $fielddefinition); |
47 | 47 | |
48 | 48 | // Change userid definition in bigbluebuttonbn_log. |
49 | 49 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
50 | - 'precision' => '10', |
|
51 | - 'unsigned' => null, |
|
52 | - 'notnull' => XMLDB_NOTNULL, |
|
53 | - 'sequence' => null, |
|
54 | - 'default' => null, |
|
55 | - 'previous' => 'bigbluebuttonbnid'); |
|
50 | + 'precision' => '10', |
|
51 | + 'unsigned' => null, |
|
52 | + 'notnull' => XMLDB_NOTNULL, |
|
53 | + 'sequence' => null, |
|
54 | + 'default' => null, |
|
55 | + 'previous' => 'bigbluebuttonbnid'); |
|
56 | 56 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn_log', 'userid', |
57 | 57 | $fielddefinition); |
58 | 58 | |
@@ -78,34 +78,34 @@ discard block |
||
78 | 78 | |
79 | 79 | // Add field type. |
80 | 80 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
81 | - 'precision' => '2', |
|
82 | - 'unsigned' => null, |
|
83 | - 'notnull' => XMLDB_NOTNULL, |
|
84 | - 'sequence' => null, |
|
85 | - 'default' => 0, |
|
86 | - 'previous' => 'id'); |
|
81 | + 'precision' => '2', |
|
82 | + 'unsigned' => null, |
|
83 | + 'notnull' => XMLDB_NOTNULL, |
|
84 | + 'sequence' => null, |
|
85 | + 'default' => 0, |
|
86 | + 'previous' => 'id'); |
|
87 | 87 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'type', |
88 | 88 | $fielddefinition); |
89 | 89 | |
90 | 90 | // Add field recordings_html. |
91 | 91 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
92 | - 'precision' => '1', |
|
93 | - 'unsigned' => null, |
|
94 | - 'notnull' => XMLDB_NOTNULL, |
|
95 | - 'sequence' => null, |
|
96 | - 'default' => 0, |
|
97 | - 'previous' => null); |
|
92 | + 'precision' => '1', |
|
93 | + 'unsigned' => null, |
|
94 | + 'notnull' => XMLDB_NOTNULL, |
|
95 | + 'sequence' => null, |
|
96 | + 'default' => 0, |
|
97 | + 'previous' => null); |
|
98 | 98 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_html', |
99 | 99 | $fielddefinition); |
100 | 100 | |
101 | 101 | // Add field recordings_deleted_activities. |
102 | 102 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
103 | - 'precision' => '1', |
|
104 | - 'unsigned' => null, |
|
105 | - 'notnull' => XMLDB_NOTNULL, |
|
106 | - 'sequence' => null, |
|
107 | - 'default' => 1, |
|
108 | - 'previous' => null); |
|
103 | + 'precision' => '1', |
|
104 | + 'unsigned' => null, |
|
105 | + 'notnull' => XMLDB_NOTNULL, |
|
106 | + 'sequence' => null, |
|
107 | + 'default' => 1, |
|
108 | + 'previous' => null); |
|
109 | 109 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_deleted_activities', |
110 | 110 | $fielddefinition); |
111 | 111 | |
@@ -122,12 +122,12 @@ discard block |
||
122 | 122 | $table = new xmldb_table($tablename); |
123 | 123 | $field = new xmldb_field($fieldname); |
124 | 124 | $field->set_attributes($fielddefinition['type'], |
125 | - $fielddefinition['precision'], |
|
126 | - $fielddefinition['unsigned'], |
|
127 | - $fielddefinition['notnull'], |
|
128 | - $fielddefinition['sequence'], |
|
129 | - $fielddefinition['default'], |
|
130 | - $fielddefinition['previous']); |
|
125 | + $fielddefinition['precision'], |
|
126 | + $fielddefinition['unsigned'], |
|
127 | + $fielddefinition['notnull'], |
|
128 | + $fielddefinition['sequence'], |
|
129 | + $fielddefinition['default'], |
|
130 | + $fielddefinition['previous']); |
|
131 | 131 | if ($dbman->field_exists($table, $field)) { |
132 | 132 | $dbman->change_field_type($table, $field, true, true); |
133 | 133 | $dbman->change_field_precision($table, $field, true, true); |
@@ -554,11 +554,11 @@ |
||
554 | 554 | 'recording_import' => ['id' => 'The recordingID must be specified.'], |
555 | 555 | 'recording_ready' => [ |
556 | 556 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
557 | - ], |
|
557 | + ], |
|
558 | 558 | 'live_session_events' => [ |
559 | 559 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
560 | - ] |
|
561 | - ]; |
|
560 | + ] |
|
561 | + ]; |
|
562 | 562 | |
563 | 563 | if (!isset($params['callback'])) { |
564 | 564 | return 'This call must include a javascript callback.'; |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | // BigBlueButton API Calls. |
85 | 85 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
86 | 86 | $data = ['meetingID' => $meetingid, |
87 | - 'fullName' => $username, |
|
88 | - 'password' => $pw, |
|
89 | - 'logoutURL' => $logouturl, |
|
87 | + 'fullName' => $username, |
|
88 | + 'password' => $pw, |
|
89 | + 'logoutURL' => $logouturl, |
|
90 | 90 | ]; |
91 | 91 | |
92 | 92 | if (!is_null($configtoken)) { |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | function bigbluebuttonbn_get_create_meeting_url($name, $meetingid, $attendeepw, $moderatorpw, $welcome, |
103 | 103 | $logouturl, $record = 'false', $duration = 0, $voicebridge = 0, $maxparticipants = 0, $metadata = array()) { |
104 | 104 | $data = ['meetingID' => $meetingid, |
105 | - 'name' => $name, |
|
106 | - 'attendeePW' => $attendeepw, |
|
107 | - 'moderatorPW' => $moderatorpw, |
|
108 | - 'logoutURL' => $logouturl, |
|
109 | - 'record' => $record, |
|
105 | + 'name' => $name, |
|
106 | + 'attendeePW' => $attendeepw, |
|
107 | + 'moderatorPW' => $moderatorpw, |
|
108 | + 'logoutURL' => $logouturl, |
|
109 | + 'record' => $record, |
|
110 | 110 | ]; |
111 | 111 | |
112 | 112 | $voicebridge = intval($voicebridge); |
@@ -238,24 +238,24 @@ discard block |
||
238 | 238 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
239 | 239 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
240 | 240 | bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
241 | - ); |
|
241 | + ); |
|
242 | 242 | |
243 | 243 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
244 | 244 | // Meeting info was returned. |
245 | 245 | return array('returncode' => $xml->returncode, |
246 | - 'meetingID' => $xml->meetingID, |
|
247 | - 'moderatorPW' => $xml->moderatorPW, |
|
248 | - 'attendeePW' => $xml->attendeePW, |
|
249 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
250 | - 'running' => $xml->running, |
|
251 | - 'recording' => $xml->recording, |
|
252 | - 'startTime' => $xml->startTime, |
|
253 | - 'endTime' => $xml->endTime, |
|
254 | - 'participantCount' => $xml->participantCount, |
|
255 | - 'moderatorCount' => $xml->moderatorCount, |
|
256 | - 'attendees' => $xml->attendees, |
|
257 | - 'metadata' => $xml->metadata, |
|
258 | - ); |
|
246 | + 'meetingID' => $xml->meetingID, |
|
247 | + 'moderatorPW' => $xml->moderatorPW, |
|
248 | + 'attendeePW' => $xml->attendeePW, |
|
249 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
250 | + 'running' => $xml->running, |
|
251 | + 'recording' => $xml->recording, |
|
252 | + 'startTime' => $xml->startTime, |
|
253 | + 'endTime' => $xml->endTime, |
|
254 | + 'participantCount' => $xml->participantCount, |
|
255 | + 'moderatorCount' => $xml->moderatorCount, |
|
256 | + 'attendees' => $xml->attendees, |
|
257 | + 'metadata' => $xml->metadata, |
|
258 | + ); |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | if ($xml) { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | // Do getRecordings is executed using a method GET (supported by all versions of BBB). |
322 | 322 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
323 | 323 | bigbluebuttonbn_bigbluebutton_action_url('getRecordings', ['meetingID' => implode(',', $mids)]) |
324 | - ); |
|
324 | + ); |
|
325 | 325 | if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) { |
326 | 326 | // If there were meetings already created. |
327 | 327 | foreach ($xml->recordings->recording as $recording) { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | function bigbluebuttonbn_get_default_config_xml() { |
393 | 393 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
394 | 394 | bigbluebuttonbn_bigbluebutton_action_url('getDefaultConfigXML') |
395 | - ); |
|
395 | + ); |
|
396 | 396 | |
397 | 397 | return $xml; |
398 | 398 | } |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | foreach ($ids as $id) { |
460 | 460 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
461 | 461 | bigbluebuttonbn_bigbluebutton_action_url('deleteRecordings', ['recordID' => $id]) |
462 | - ); |
|
462 | + ); |
|
463 | 463 | if ($xml && $xml->returncode != 'SUCCESS') { |
464 | 464 | return false; |
465 | 465 | } |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | foreach ($ids as $id) { |
478 | 478 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
479 | 479 | bigbluebuttonbn_bigbluebutton_action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
480 | - ); |
|
480 | + ); |
|
481 | 481 | if ($xml && $xml->returncode != 'SUCCESS') { |
482 | 482 | return false; |
483 | 483 | } |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | foreach ($ids as $id) { |
496 | 496 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
497 | 497 | bigbluebuttonbn_bigbluebutton_action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
498 | - ); |
|
498 | + ); |
|
499 | 499 | if ($xml && $xml->returncode != 'SUCCESS') { |
500 | 500 | return false; |
501 | 501 | } |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
512 | 512 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
513 | 513 | bigbluebuttonbn_bigbluebutton_action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
514 | - ); |
|
514 | + ); |
|
515 | 515 | |
516 | 516 | if ($xml) { |
517 | 517 | // If the xml packet returned failure it displays the message to the user. |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | function bigbluebuttonbn_is_meeting_running($meetingid) { |
529 | 529 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
530 | 530 | bigbluebuttonbn_bigbluebutton_action_url('isMeetingRunning', ['meetingID' => $meetingid]) |
531 | - ); |
|
531 | + ); |
|
532 | 532 | |
533 | 533 | if ($xml && $xml->returncode == 'SUCCESS') { |
534 | 534 | return ($xml->running == 'true'); |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | function bigbluebuttonbn_get_server_version() { |
541 | 541 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
542 | 542 | bigbluebuttonbn_bigbluebutton_action_url() |
543 | - ); |
|
543 | + ); |
|
544 | 544 | |
545 | 545 | if ($xml && $xml->returncode == 'SUCCESS') { |
546 | 546 | return $xml->version; |
@@ -606,10 +606,10 @@ discard block |
||
606 | 606 | |
607 | 607 | $options = array(); |
608 | 608 | $options['CURLOPT_HTTPHEADER'] = array( |
609 | - 'Content-Type: '.$contenttype, |
|
610 | - 'Content-Length: '.strlen($data), |
|
611 | - 'Content-Language: en-US', |
|
612 | - ); |
|
609 | + 'Content-Type: '.$contenttype, |
|
610 | + 'Content-Length: '.strlen($data), |
|
611 | + 'Content-Language: en-US', |
|
612 | + ); |
|
613 | 613 | |
614 | 614 | return $c->post($url, $data, $options); |
615 | 615 | } |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | $roles[$key] = array('id' => $value->id, 'name' => $value->localname); |
669 | 669 | } |
670 | 670 | return $roles; |
671 | - } |
|
671 | + } |
|
672 | 672 | |
673 | 673 | function bigbluebuttonbn_get_role($id) { |
674 | 674 | $roles = (array) role_get_names(); |
@@ -688,18 +688,18 @@ discard block |
||
688 | 688 | 'all' => array( |
689 | 689 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
690 | 690 | 'children' => [] |
691 | - ) |
|
692 | - ); |
|
691 | + ) |
|
692 | + ); |
|
693 | 693 | |
694 | 694 | $data['role'] = array( |
695 | 695 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
696 | 696 | 'children' => bigbluebuttonbn_get_roles_select($context) |
697 | - ); |
|
697 | + ); |
|
698 | 698 | |
699 | 699 | $data['user'] = array( |
700 | 700 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
701 | 701 | 'children' => bigbluebuttonbn_get_users_select($context) |
702 | - ); |
|
702 | + ); |
|
703 | 703 | |
704 | 704 | return $data; |
705 | 705 | } |
@@ -746,9 +746,9 @@ discard block |
||
746 | 746 | } |
747 | 747 | |
748 | 748 | $participantlistarray[] = array( |
749 | - 'selectiontype' => 'role', |
|
750 | - 'selectionid' => $moderatordefault, |
|
751 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
749 | + 'selectiontype' => 'role', |
|
750 | + 'selectionid' => $moderatordefault, |
|
751 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
752 | 752 | } |
753 | 753 | |
754 | 754 | return $participantlistarray; |
@@ -760,11 +760,11 @@ discard block |
||
760 | 760 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
761 | 761 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
762 | 762 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
763 | - ], |
|
763 | + ], |
|
764 | 764 | 'type_selected' => 'all', |
765 | 765 | 'options' => ['all' => '---------------'], |
766 | 766 | 'selected' => 'all', |
767 | - ]; |
|
767 | + ]; |
|
768 | 768 | } |
769 | 769 | |
770 | 770 | function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) { |
@@ -896,8 +896,8 @@ discard block |
||
896 | 896 | } |
897 | 897 | |
898 | 898 | $parray = array('url' => $purl, 'name' => $pname, |
899 | - 'icon' => $picon, |
|
900 | - 'mimetype_description' => $pmimetypedescrip); |
|
899 | + 'icon' => $picon, |
|
900 | + 'mimetype_description' => $pmimetypedescrip); |
|
901 | 901 | |
902 | 902 | return $parray; |
903 | 903 | } |
@@ -961,7 +961,7 @@ discard block |
||
961 | 961 | $eventproperties['other'] = $eventsubtype; |
962 | 962 | } |
963 | 963 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
964 | - array($eventproperties)); |
|
964 | + array($eventproperties)); |
|
965 | 965 | $event->trigger(); |
966 | 966 | } |
967 | 967 | |
@@ -1008,7 +1008,7 @@ discard block |
||
1008 | 1008 | // Ping again and refresh the cache. |
1009 | 1009 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
1010 | 1010 | bigbluebuttonbn_bigbluebutton_action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1011 | - ); |
|
1011 | + ); |
|
1012 | 1012 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
1013 | 1013 | |
1014 | 1014 | return $meetinginfo; |
@@ -1146,7 +1146,7 @@ discard block |
||
1146 | 1146 | $actionbar .= bigbluebuttonbn_actionbar_render_button( |
1147 | 1147 | $recording, |
1148 | 1148 | bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool) |
1149 | - ); |
|
1149 | + ); |
|
1150 | 1150 | } |
1151 | 1151 | |
1152 | 1152 | $head = html_writer::start_tag('div', array( |
@@ -1232,7 +1232,7 @@ discard block |
||
1232 | 1232 | |
1233 | 1233 | $recordingtypes = html_writer::start_tag('div', |
1234 | 1234 | array('id' => 'playbacks-'.$recording['recordID'], 'data-imported' => $dataimported, |
1235 | - 'title' => $title, $visibility => $visibility)); |
|
1235 | + 'title' => $title, $visibility => $visibility)); |
|
1236 | 1236 | foreach ($recording['playbacks'] as $playback) { |
1237 | 1237 | $recordingtypes .= $OUTPUT->action_link($playback['url'], get_string('view_recording_format_'.$playback['type'], |
1238 | 1238 | 'bigbluebuttonbn'), null, array('title' => get_string('view_recording_format_'.$playback['type'], |
@@ -1274,7 +1274,7 @@ discard block |
||
1274 | 1274 | $payload['source'] = 'meta_contextactivitydescription'; |
1275 | 1275 | $metadescription = trim($recording[$payload['source']]); |
1276 | 1276 | if (!empty($metadescription)) { |
1277 | - return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload); |
|
1277 | + return bigbluebuttonbn_get_recording_data_row_text($recording, $metadescription, $payload); |
|
1278 | 1278 | } |
1279 | 1279 | } |
1280 | 1280 | |
@@ -1331,7 +1331,7 @@ discard block |
||
1331 | 1331 | 'onclick' => $onclick, |
1332 | 1332 | 'data-action' => $data['action'], |
1333 | 1333 | 'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID']) |
1334 | - ); |
|
1334 | + ); |
|
1335 | 1335 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
1336 | 1336 | } |
1337 | 1337 | |
@@ -1932,22 +1932,22 @@ discard block |
||
1932 | 1932 | */ |
1933 | 1933 | function bigbluebuttonbn_get_cfg_options() { |
1934 | 1934 | return [ |
1935 | - 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
1936 | - 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
1937 | - 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
1938 | - 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
1939 | - 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
1940 | - 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
1941 | - 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
1942 | - 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
1943 | - 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
1944 | - 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
1945 | - 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
1946 | - 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
1947 | - 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
1948 | - 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
1949 | - 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
1950 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
1935 | + 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
1936 | + 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
1937 | + 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
1938 | + 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
1939 | + 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
1940 | + 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
1941 | + 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
1942 | + 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
1943 | + 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
1944 | + 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
1945 | + 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
1946 | + 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
1947 | + 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
1948 | + 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
1949 | + 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
1950 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
1951 | 1951 | ]; |
1952 | 1952 | } |
1953 | 1953 | |
@@ -2148,8 +2148,8 @@ discard block |
||
2148 | 2148 | $activitytime = ''; |
2149 | 2149 | if ($time) { |
2150 | 2150 | $activitytime = calendar_day_representation($time).' '. |
2151 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2152 | - calendar_time_representation($time); |
|
2151 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2152 | + calendar_time_representation($time); |
|
2153 | 2153 | } |
2154 | 2154 | |
2155 | 2155 | return $activitytime; |
@@ -272,11 +272,11 @@ discard block |
||
272 | 272 | |
273 | 273 | echo $OUTPUT->box_start('generalbox boxaligncenter'); |
274 | 274 | echo '<br><div class="alert alert-warning">'.get_string('view_groups_selection_warning', 'bigbluebuttonbn'). |
275 | - '</div>'; |
|
275 | + '</div>'; |
|
276 | 276 | echo $OUTPUT->box_end(); |
277 | 277 | |
278 | 278 | groups_print_activity_menu( |
279 | - $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
279 | + $bbbsession['cm'], $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id, false, $onlyexistentgroups); |
|
280 | 280 | echo '<br><br>'; |
281 | 281 | } |
282 | 282 | |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | // JavaScript variables for recordings. |
389 | 389 | $jsvars += array( |
390 | 390 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
391 | - ); |
|
391 | + ); |
|
392 | 392 | |
393 | 393 | // If there are meetings with recordings load the data to the table. |
394 | 394 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | $jsvars += array( |
401 | 401 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
402 | 402 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
403 | - ); |
|
403 | + ); |
|
404 | 404 | |
405 | 405 | // Render a YUI table. |
406 | 406 | return html_writer::div('', '', array('id' => 'bigbluebuttonbn_yui_table')); |
@@ -411,10 +411,10 @@ discard block |
||
411 | 411 | |
412 | 412 | $button = html_writer::tag('input', '', |
413 | 413 | array('type' => 'button', |
414 | - 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
415 | - 'class' => 'btn btn-secondary', |
|
416 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
417 | - $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
414 | + 'value' => get_string('view_recording_button_import', 'bigbluebuttonbn'), |
|
415 | + 'class' => 'btn btn-secondary', |
|
416 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/import_view.php?bn='. |
|
417 | + $bbbsession['bigbluebuttonbn']->id.'\'')); |
|
418 | 418 | $output = html_writer::start_tag('br'); |
419 | 419 | $output .= html_writer::tag('span', $button, array('id' => 'import_recording_links_button')); |
420 | 420 | $output .= html_writer::tag('span', '', array('id' => 'import_recording_links_table')); |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | return '<h4>'.get_string('view_section_title_presentation', 'bigbluebuttonbn').'</h4>'. |
433 | 433 | ''.$OUTPUT->action_icon($bbbsession['presentation']['url'], $icon, null, array(), false).''. |
434 | 434 | ''.$OUTPUT->action_link($bbbsession['presentation']['url'], |
435 | - $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
435 | + $bbbsession['presentation']['name'], null, $attributes).'<br><br>'; |
|
436 | 436 | } |
437 | 437 | |
438 | 438 | return ''; |