@@ -198,10 +198,10 @@ discard block |
||
198 | 198 | */ |
199 | 199 | function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession) { |
200 | 200 | $data = ['meetingID' => $bbbsession['meetingid'], |
201 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
202 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
203 | - 'moderatorPW' => $bbbsession['modPW'], |
|
204 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
201 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
202 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
203 | + 'moderatorPW' => $bbbsession['modPW'], |
|
204 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
205 | 205 | ]; |
206 | 206 | $data['record'] = bigbluebutton_bbb_view_create_meeting_data_record($bbbsession['record']); |
207 | 207 | $data['welcome'] = trim($bbbsession['welcome']); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | '%duration%', |
215 | 215 | (string) $durationtime, |
216 | 216 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
217 | - ); |
|
217 | + ); |
|
218 | 218 | } |
219 | 219 | $voicebridge = intval($bbbsession['voicebridge']); |
220 | 220 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -253,22 +253,22 @@ discard block |
||
253 | 253 | function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) { |
254 | 254 | global $USER; |
255 | 255 | $metadata = ['bbb-origin' => $bbbsession['origin'], |
256 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
257 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
258 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
259 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
260 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
261 | - 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
262 | - 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
263 | - 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
256 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
257 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
258 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
259 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
260 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
261 | + 'bbb-recording-name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
262 | + 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
263 | + 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
264 | 264 | ]; |
265 | 265 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
266 | 266 | $metadata["bn-recording-status"] = json_encode( |
267 | 267 | array( |
268 | 268 | 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
269 | 269 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
270 | - ) |
|
271 | - ); |
|
270 | + ) |
|
271 | + ); |
|
272 | 272 | } |
273 | 273 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
274 | 274 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |
@@ -77,8 +77,8 @@ |
||
77 | 77 | $body .= html_writer::start_tag('br'); |
78 | 78 | $body .= html_writer::tag('input', '', |
79 | 79 | array('type' => 'button', 'class' => 'btn btn-secondary', |
80 | - 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
81 | - 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
80 | + 'value' => get_string('view_recording_button_return', 'bigbluebuttonbn'), |
|
81 | + 'onclick' => 'window.location=\''.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id.'\'')); |
|
82 | 82 | // JavaScript for locales. |
83 | 83 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); |
84 | 84 | // Require JavaScript modules. |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Remove this block when restored |
69 | 69 | */ |
70 | 70 | |
71 | - /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
71 | + /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */ |
|
72 | 72 | const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/'; |
73 | 73 | /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */ |
74 | 74 | const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6'; |
@@ -345,12 +345,12 @@ discard block |
||
345 | 345 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
346 | 346 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
347 | 347 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
348 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
348 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
349 | 349 | $str .= ' </div>'."\n"; |
350 | 350 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
351 | 351 | '</div>'."\n"; |
352 | 352 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
353 | - .'</div>'."\n"; |
|
353 | + .'</div>'."\n"; |
|
354 | 354 | $str .= '</div>'."\n"; |
355 | 355 | return $str; |
356 | 356 | } |
@@ -205,7 +205,7 @@ |
||
205 | 205 | !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) || |
206 | 206 | !isset($CFG->bigbluebuttonbn['recordings_preview_default']) || |
207 | 207 | !isset($CFG->bigbluebuttonbn['recordings_preview_editable']) |
208 | - ); |
|
208 | + ); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * recordings from a different activity even from a different course. |
99 | 99 | **/ |
100 | 100 | |
101 | - /* |
|
101 | + /* |
|
102 | 102 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
103 | 103 | * activities will have the 'import recordings' capability enabled. |
104 | 104 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * 'Join session' button enabled |
120 | 120 | **/ |
121 | 121 | |
122 | - /* |
|
122 | + /* |
|
123 | 123 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
124 | 124 | * activities will have the 'wait for moderator' capability enabled by |
125 | 125 | * default. |
@@ -259,13 +259,13 @@ discard block |
||
259 | 259 | * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1; |
260 | 260 | */ |
261 | 261 | |
262 | - /* |
|
262 | + /* |
|
263 | 263 | * When the value is set to 1 (checked) the bigbluebuttonbn resources |
264 | 264 | * will show the recodings with thumbnails. |
265 | 265 | * $CFG->bigbluebuttonbn['recordings_preview_default'] = 1; |
266 | 266 | */ |
267 | 267 | |
268 | - /* |
|
268 | + /* |
|
269 | 269 | * When the value is set to 1 (checked) the 'preview ui' capability can be |
270 | 270 | * enabled/disabled by the user creating or editing the resource. |
271 | 271 | * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0; |
@@ -310,27 +310,27 @@ discard block |
||
310 | 310 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
311 | 311 | */ |
312 | 312 | |
313 | - /* |
|
313 | + /* |
|
314 | 314 | * The warning box is always shown to administrators, but it is also possible to define other roles |
315 | 315 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
316 | 316 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
317 | 317 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
318 | 318 | */ |
319 | 319 | |
320 | - /* |
|
320 | + /* |
|
321 | 321 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
322 | 322 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
323 | 323 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
324 | 324 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
325 | 325 | */ |
326 | 326 | |
327 | - /* |
|
327 | + /* |
|
328 | 328 | * Additionally, when general_warning_button_href value is different than "", a button |
329 | 329 | * can also be shown right after the message. |
330 | 330 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
331 | 331 | */ |
332 | 332 | |
333 | - /* |
|
333 | + /* |
|
334 | 334 | * Finally, the text and class for the button can be modified |
335 | 335 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
336 | 336 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -437,26 +437,26 @@ discard block |
||
437 | 437 | return array( |
438 | 438 | 'status' => false, |
439 | 439 | 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn') |
440 | - ); |
|
440 | + ); |
|
441 | 441 | } |
442 | 442 | if ($realrecordings[$params['id']]['published'] !== 'true') { |
443 | 443 | return array( |
444 | 444 | 'status' => false, |
445 | 445 | 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn') |
446 | - ); |
|
446 | + ); |
|
447 | 447 | } |
448 | 448 | return array( |
449 | 449 | 'status' => bigbluebuttonbn_publish_recording_imported( |
450 | 450 | $recordings[$params['id']]['imported'], true |
451 | 451 | ) |
452 | - ); |
|
452 | + ); |
|
453 | 453 | } |
454 | 454 | // As the recordingid was not identified as imported recording link, execute actual publish. |
455 | 455 | return array( |
456 | 456 | 'status' => bigbluebuttonbn_publish_recordings( |
457 | 457 | $params['id'], 'true' |
458 | 458 | ) |
459 | - ); |
|
459 | + ); |
|
460 | 460 | } |
461 | 461 | |
462 | 462 | /** |
@@ -477,26 +477,26 @@ discard block |
||
477 | 477 | return array( |
478 | 478 | 'status' => false, |
479 | 479 | 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn') |
480 | - ); |
|
480 | + ); |
|
481 | 481 | } |
482 | 482 | if ($realrecordings[$params['id']]['protected'] === 'true') { |
483 | 483 | return array( |
484 | 484 | 'status' => false, |
485 | 485 | 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn') |
486 | - ); |
|
486 | + ); |
|
487 | 487 | } |
488 | 488 | return array( |
489 | 489 | 'status' => bigbluebuttonbn_protect_recording_imported( |
490 | 490 | $recordings[$params['id']]['imported'], false |
491 | 491 | ) |
492 | - ); |
|
492 | + ); |
|
493 | 493 | } |
494 | 494 | // As the recordingid was not identified as imported recording link, execute actual uprotect. |
495 | 495 | return array( |
496 | 496 | 'status' => bigbluebuttonbn_update_recordings( |
497 | 497 | $params['id'], array('protect' => 'false') |
498 | 498 | ) |
499 | - ); |
|
499 | + ); |
|
500 | 500 | } |
501 | 501 | |
502 | 502 | /** |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | 'status' => bigbluebuttonbn_publish_recording_imported( |
516 | 516 | $recordings[$params['id']]['imported'], false |
517 | 517 | ) |
518 | - ); |
|
518 | + ); |
|
519 | 519 | } |
520 | 520 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
521 | 521 | // First: Unpublish imported links associated to the recording. |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | 'status' => bigbluebuttonbn_publish_recordings( |
534 | 534 | $params['id'], 'false' |
535 | 535 | ) |
536 | - ); |
|
536 | + ); |
|
537 | 537 | } |
538 | 538 | |
539 | 539 | /** |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | 'status' => bigbluebuttonbn_protect_recording_imported( |
553 | 553 | $recordings[$params['id']]['imported'], true |
554 | 554 | ) |
555 | - ); |
|
555 | + ); |
|
556 | 556 | } |
557 | 557 | // As the recordingid was not identified as imported recording link, execute protect on a real recording. |
558 | 558 | // First: Protect imported links associated to the recording. |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | 'status' => bigbluebuttonbn_update_recordings( |
571 | 571 | $params['id'], array('protect' => 'true') |
572 | 572 | ) |
573 | - ); |
|
573 | + ); |
|
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | 'status' => bigbluebuttonbn_delete_recording_imported( |
590 | 590 | $recordings[$params['id']]['imported'] |
591 | 591 | ) |
592 | - ); |
|
592 | + ); |
|
593 | 593 | } |
594 | 594 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
595 | 595 | // First: Delete imported links associated to the recording. |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | // Second: Execute the actual delete. |
604 | 604 | return array( |
605 | 605 | 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
606 | - ); |
|
606 | + ); |
|
607 | 607 | } |
608 | 608 | |
609 | 609 | /** |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | 'status' => bigbluebuttonbn_update_recording_imported( |
622 | 622 | $recordings[$params['id']]['imported'], json_decode($params['meta'], true) |
623 | 623 | ) |
624 | - ); |
|
624 | + ); |
|
625 | 625 | } |
626 | 626 | |
627 | 627 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | 'status' => bigbluebuttonbn_update_recordings( |
632 | 632 | $params['id'], json_decode($params['meta']) |
633 | 633 | ) |
634 | - ); |
|
634 | + ); |
|
635 | 635 | } |
636 | 636 | |
637 | 637 | /** |
@@ -802,10 +802,10 @@ discard block |
||
802 | 802 | $params['recording_import'] = ['id' => 'The recordingID must be specified.']; |
803 | 803 | $params['recording_ready'] = [ |
804 | 804 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
805 | - ]; |
|
805 | + ]; |
|
806 | 806 | $params['live_session_events'] = [ |
807 | 807 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
808 | - ]; |
|
808 | + ]; |
|
809 | 809 | return $params; |
810 | 810 | } |
811 | 811 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | 'objectid' => $this->objectid, |
81 | 81 | 'contextinstanceid' => $this->contextinstanceid, |
82 | 82 | 'other' => $this->other |
83 | - ); |
|
83 | + ); |
|
84 | 84 | $string = $this->description; |
85 | 85 | foreach ($vars as $key => $value) { |
86 | 86 | $string = str_replace("##" . $key, $value, $string); |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function _get_metadata(collection $collection) { |
63 | 63 | |
64 | - // The table bigbluebuttonbn stores only the room properties. |
|
65 | - // However, there is a chance that some personal information is stored as metadata. |
|
66 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
67 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
68 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
64 | + // The table bigbluebuttonbn stores only the room properties. |
|
65 | + // However, there is a chance that some personal information is stored as metadata. |
|
66 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
67 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
68 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
69 | 69 | $collection->add_database_table('bigbluebuttonbn', [ |
70 | 70 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
71 | 71 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | 'meetingid' => $record->meetingid, |
209 | 209 | 'log' => $record->log, |
210 | 210 | 'meta' => $record->meta, |
211 | - ]; |
|
211 | + ]; |
|
212 | 212 | return $carry; |
213 | 213 | }, |
214 | 214 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -121,9 +121,9 @@ discard block |
||
121 | 121 | */ |
122 | 122 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
123 | 123 | $data = ['meetingID' => $meetingid, |
124 | - 'fullName' => $username, |
|
125 | - 'password' => $pw, |
|
126 | - 'logoutURL' => $logouturl, |
|
124 | + 'fullName' => $username, |
|
125 | + 'password' => $pw, |
|
126 | + 'logoutURL' => $logouturl, |
|
127 | 127 | ]; |
128 | 128 | if (!is_null($configtoken)) { |
129 | 129 | $data['configToken'] = $configtoken; |
@@ -175,23 +175,23 @@ discard block |
||
175 | 175 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
176 | 176 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
177 | 177 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
178 | - ); |
|
178 | + ); |
|
179 | 179 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
180 | 180 | // Meeting info was returned. |
181 | 181 | return array('returncode' => $xml->returncode, |
182 | - 'meetingID' => $xml->meetingID, |
|
183 | - 'moderatorPW' => $xml->moderatorPW, |
|
184 | - 'attendeePW' => $xml->attendeePW, |
|
185 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
186 | - 'running' => $xml->running, |
|
187 | - 'recording' => $xml->recording, |
|
188 | - 'startTime' => $xml->startTime, |
|
189 | - 'endTime' => $xml->endTime, |
|
190 | - 'participantCount' => $xml->participantCount, |
|
191 | - 'moderatorCount' => $xml->moderatorCount, |
|
192 | - 'attendees' => $xml->attendees, |
|
193 | - 'metadata' => $xml->metadata, |
|
194 | - ); |
|
182 | + 'meetingID' => $xml->meetingID, |
|
183 | + 'moderatorPW' => $xml->moderatorPW, |
|
184 | + 'attendeePW' => $xml->attendeePW, |
|
185 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
186 | + 'running' => $xml->running, |
|
187 | + 'recording' => $xml->recording, |
|
188 | + 'startTime' => $xml->startTime, |
|
189 | + 'endTime' => $xml->endTime, |
|
190 | + 'participantCount' => $xml->participantCount, |
|
191 | + 'moderatorCount' => $xml->moderatorCount, |
|
192 | + 'attendees' => $xml->attendees, |
|
193 | + 'metadata' => $xml->metadata, |
|
194 | + ); |
|
195 | 195 | } |
196 | 196 | if ($xml) { |
197 | 197 | // Either failure or success without meeting info. |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | function bigbluebuttonbn_get_default_config_xml() { |
328 | 328 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
329 | 329 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
330 | - ); |
|
330 | + ); |
|
331 | 331 | return $xml; |
332 | 332 | } |
333 | 333 | |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | foreach ($ids as $id) { |
429 | 429 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
430 | 430 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
431 | - ); |
|
431 | + ); |
|
432 | 432 | if ($xml && $xml->returncode != 'SUCCESS') { |
433 | 433 | return false; |
434 | 434 | } |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | foreach ($ids as $id) { |
448 | 448 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
449 | 449 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
450 | - ); |
|
450 | + ); |
|
451 | 451 | if ($xml && $xml->returncode != 'SUCCESS') { |
452 | 452 | return false; |
453 | 453 | } |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | foreach ($ids as $id) { |
467 | 467 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
468 | 468 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
469 | - ); |
|
469 | + ); |
|
470 | 470 | if ($xml && $xml->returncode != 'SUCCESS') { |
471 | 471 | return false; |
472 | 472 | } |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
484 | 484 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
485 | 485 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
486 | - ); |
|
486 | + ); |
|
487 | 487 | if ($xml) { |
488 | 488 | // If the xml packet returned failure it displays the message to the user. |
489 | 489 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | function bigbluebuttonbn_get_server_version() { |
501 | 501 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
502 | 502 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
503 | - ); |
|
503 | + ); |
|
504 | 504 | if ($xml && $xml->returncode == 'SUCCESS') { |
505 | 505 | return $xml->version; |
506 | 506 | } |
@@ -567,10 +567,10 @@ discard block |
||
567 | 567 | } |
568 | 568 | $options = array(); |
569 | 569 | $options['CURLOPT_HTTPHEADER'] = array( |
570 | - 'Content-Type: '.$contenttype, |
|
571 | - 'Content-Length: '.strlen($data), |
|
572 | - 'Content-Language: en-US', |
|
573 | - ); |
|
570 | + 'Content-Type: '.$contenttype, |
|
571 | + 'Content-Length: '.strlen($data), |
|
572 | + 'Content-Language: en-US', |
|
573 | + ); |
|
574 | 574 | |
575 | 575 | return $c->post($url, $data, $options); |
576 | 576 | } |
@@ -717,16 +717,16 @@ discard block |
||
717 | 717 | 'all' => array( |
718 | 718 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
719 | 719 | 'children' => [] |
720 | - ) |
|
721 | - ); |
|
720 | + ) |
|
721 | + ); |
|
722 | 722 | $data['role'] = array( |
723 | 723 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
724 | 724 | 'children' => bigbluebuttonbn_get_roles_select($context) |
725 | - ); |
|
725 | + ); |
|
726 | 726 | $data['user'] = array( |
727 | 727 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
728 | 728 | 'children' => bigbluebuttonbn_get_users_select($context) |
729 | - ); |
|
729 | + ); |
|
730 | 730 | return $data; |
731 | 731 | } |
732 | 732 | |
@@ -771,9 +771,9 @@ discard block |
||
771 | 771 | continue; |
772 | 772 | } |
773 | 773 | $participantlistarray[] = array( |
774 | - 'selectiontype' => 'role', |
|
775 | - 'selectionid' => $moderatordefault, |
|
776 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
774 | + 'selectiontype' => 'role', |
|
775 | + 'selectionid' => $moderatordefault, |
|
776 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
777 | 777 | } |
778 | 778 | return $participantlistarray; |
779 | 779 | } |
@@ -816,11 +816,11 @@ discard block |
||
816 | 816 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
817 | 817 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
818 | 818 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
819 | - ], |
|
819 | + ], |
|
820 | 820 | 'type_selected' => 'all', |
821 | 821 | 'options' => ['all' => '---------------'], |
822 | 822 | 'selected' => 'all', |
823 | - ]; |
|
823 | + ]; |
|
824 | 824 | } |
825 | 825 | |
826 | 826 | /** |
@@ -1102,7 +1102,7 @@ discard block |
||
1102 | 1102 | $eventproperties['other'] = $options['other']; |
1103 | 1103 | } |
1104 | 1104 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
1105 | - array($eventproperties)); |
|
1105 | + array($eventproperties)); |
|
1106 | 1106 | $event->trigger(); |
1107 | 1107 | } |
1108 | 1108 | |
@@ -1146,7 +1146,7 @@ discard block |
||
1146 | 1146 | // Ping again and refresh the cache. |
1147 | 1147 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
1148 | 1148 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1149 | - ); |
|
1149 | + ); |
|
1150 | 1150 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
1151 | 1151 | return $meetinginfo; |
1152 | 1152 | } |
@@ -1558,8 +1558,8 @@ discard block |
||
1558 | 1558 | } |
1559 | 1559 | $id = 'playbacks-'.$recording['recordID']; |
1560 | 1560 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
1561 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1562 | - 'title' => $title, $visibility => $visibility)); |
|
1561 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1562 | + 'title' => $title, $visibility => $visibility)); |
|
1563 | 1563 | foreach ($recording['playbacks'] as $playback) { |
1564 | 1564 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback); |
1565 | 1565 | } |
@@ -1583,7 +1583,7 @@ discard block |
||
1583 | 1583 | } |
1584 | 1584 | $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
1585 | 1585 | $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
1586 | - '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1586 | + '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1587 | 1587 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
1588 | 1588 | $href .= '&href='.urlencode(trim($playback['url'])); |
1589 | 1589 | } |
@@ -1594,7 +1594,7 @@ discard block |
||
1594 | 1594 | 'data-action' => 'play', |
1595 | 1595 | 'data-target' => $playback['type'], |
1596 | 1596 | 'data-href' => $href, |
1597 | - ); |
|
1597 | + ); |
|
1598 | 1598 | if (!bigbluebuttonbn_validate_resource(trim($playback['url']))) { |
1599 | 1599 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
1600 | 1600 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
@@ -1730,10 +1730,10 @@ discard block |
||
1730 | 1730 | 'id' => $id, |
1731 | 1731 | 'onclick' => $onclick, |
1732 | 1732 | 'data-action' => $data['action'] |
1733 | - ); |
|
1733 | + ); |
|
1734 | 1734 | if (!isset($recording['imported'])) { |
1735 | 1735 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
1736 | - $recording['recordID']); |
|
1736 | + $recording['recordID']); |
|
1737 | 1737 | } |
1738 | 1738 | if (isset($data['disabled'])) { |
1739 | 1739 | $iconattributes['class'] .= ' fa-' . $data['disabled']; |
@@ -2274,8 +2274,8 @@ discard block |
||
2274 | 2274 | $activitytime = ''; |
2275 | 2275 | if ($time) { |
2276 | 2276 | $activitytime = calendar_day_representation($time).' '. |
2277 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2278 | - calendar_time_representation($time); |
|
2277 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2278 | + calendar_time_representation($time); |
|
2279 | 2279 | } |
2280 | 2280 | return $activitytime; |
2281 | 2281 | } |
@@ -2371,7 +2371,7 @@ discard block |
||
2371 | 2371 | global $BIGBLUEBUTTONBN_CFG; |
2372 | 2372 | if (isset($BIGBLUEBUTTONBN_CFG)) { |
2373 | 2373 | $renderer->render_warning_message('general_warning', |
2374 | - get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2374 | + get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2375 | 2375 | } |
2376 | 2376 | } |
2377 | 2377 | |
@@ -2579,7 +2579,7 @@ discard block |
||
2579 | 2579 | $renderer->render_group_element('participant_moderator_default', |
2580 | 2580 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
2581 | 2581 | array_keys($owner), array_merge($owner, $roles)) |
2582 | - ); |
|
2582 | + ); |
|
2583 | 2583 | } |
2584 | 2584 | } |
2585 | 2585 | |
@@ -2683,7 +2683,7 @@ discard block |
||
2683 | 2683 | return $output; |
2684 | 2684 | } |
2685 | 2685 | $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
2686 | - 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2686 | + 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2687 | 2687 | $output .= ' ' . $message . "\n"; |
2688 | 2688 | $output .= ' <div class="singlebutton pull-right">' . "\n"; |
2689 | 2689 | if (!empty($href)) { |