@@ -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 ''; |
@@ -85,9 +85,9 @@ discard block |
||
| 85 | 85 | // BigBlueButton API Calls. |
| 86 | 86 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
| 87 | 87 | $data = ['meetingID' => $meetingid, |
| 88 | - 'fullName' => $username, |
|
| 89 | - 'password' => $pw, |
|
| 90 | - 'logoutURL' => $logouturl, |
|
| 88 | + 'fullName' => $username, |
|
| 89 | + 'password' => $pw, |
|
| 90 | + 'logoutURL' => $logouturl, |
|
| 91 | 91 | ]; |
| 92 | 92 | |
| 93 | 93 | if (!is_null($configtoken)) { |
@@ -188,24 +188,24 @@ discard block |
||
| 188 | 188 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 189 | 189 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 190 | 190 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 191 | - ); |
|
| 191 | + ); |
|
| 192 | 192 | |
| 193 | 193 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 194 | 194 | // Meeting info was returned. |
| 195 | 195 | return array('returncode' => $xml->returncode, |
| 196 | - 'meetingID' => $xml->meetingID, |
|
| 197 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 198 | - 'attendeePW' => $xml->attendeePW, |
|
| 199 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 200 | - 'running' => $xml->running, |
|
| 201 | - 'recording' => $xml->recording, |
|
| 202 | - 'startTime' => $xml->startTime, |
|
| 203 | - 'endTime' => $xml->endTime, |
|
| 204 | - 'participantCount' => $xml->participantCount, |
|
| 205 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 206 | - 'attendees' => $xml->attendees, |
|
| 207 | - 'metadata' => $xml->metadata, |
|
| 208 | - ); |
|
| 196 | + 'meetingID' => $xml->meetingID, |
|
| 197 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 198 | + 'attendeePW' => $xml->attendeePW, |
|
| 199 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 200 | + 'running' => $xml->running, |
|
| 201 | + 'recording' => $xml->recording, |
|
| 202 | + 'startTime' => $xml->startTime, |
|
| 203 | + 'endTime' => $xml->endTime, |
|
| 204 | + 'participantCount' => $xml->participantCount, |
|
| 205 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 206 | + 'attendees' => $xml->attendees, |
|
| 207 | + 'metadata' => $xml->metadata, |
|
| 208 | + ); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | if ($xml) { |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | // Do getRecordings is executed using a method GET (supported by all versions of BBB). |
| 270 | 270 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 271 | 271 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getRecordings', ['meetingID' => implode(',', $mids)]) |
| 272 | - ); |
|
| 272 | + ); |
|
| 273 | 273 | if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) { |
| 274 | 274 | // If there were meetings already created. |
| 275 | 275 | foreach ($xml->recordings->recording as $recording) { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | function bigbluebuttonbn_get_default_config_xml() { |
| 333 | 333 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 334 | 334 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 335 | - ); |
|
| 335 | + ); |
|
| 336 | 336 | |
| 337 | 337 | return $xml; |
| 338 | 338 | } |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | foreach ($ids as $id) { |
| 407 | 407 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 408 | 408 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 409 | - ); |
|
| 409 | + ); |
|
| 410 | 410 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 411 | 411 | return false; |
| 412 | 412 | } |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | foreach ($ids as $id) { |
| 425 | 425 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 426 | 426 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 427 | - ); |
|
| 427 | + ); |
|
| 428 | 428 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 429 | 429 | return false; |
| 430 | 430 | } |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | foreach ($ids as $id) { |
| 443 | 443 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 444 | 444 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 445 | - ); |
|
| 445 | + ); |
|
| 446 | 446 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 447 | 447 | return false; |
| 448 | 448 | } |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 502 | 502 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 503 | 503 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 504 | - ); |
|
| 504 | + ); |
|
| 505 | 505 | |
| 506 | 506 | if ($xml) { |
| 507 | 507 | // If the xml packet returned failure it displays the message to the user. |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | function bigbluebuttonbn_is_meeting_running($meetingid) { |
| 519 | 519 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 520 | 520 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('isMeetingRunning', ['meetingID' => $meetingid]) |
| 521 | - ); |
|
| 521 | + ); |
|
| 522 | 522 | |
| 523 | 523 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 524 | 524 | return ($xml->running == 'true'); |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | function bigbluebuttonbn_get_server_version() { |
| 531 | 531 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 532 | 532 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 533 | - ); |
|
| 533 | + ); |
|
| 534 | 534 | |
| 535 | 535 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 536 | 536 | return $xml->version; |
@@ -591,10 +591,10 @@ discard block |
||
| 591 | 591 | |
| 592 | 592 | $options = array(); |
| 593 | 593 | $options['CURLOPT_HTTPHEADER'] = array( |
| 594 | - 'Content-Type: '.$contenttype, |
|
| 595 | - 'Content-Length: '.strlen($data), |
|
| 596 | - 'Content-Language: en-US', |
|
| 597 | - ); |
|
| 594 | + 'Content-Type: '.$contenttype, |
|
| 595 | + 'Content-Length: '.strlen($data), |
|
| 596 | + 'Content-Language: en-US', |
|
| 597 | + ); |
|
| 598 | 598 | |
| 599 | 599 | return $c->post($url, $data, $options); |
| 600 | 600 | } |
@@ -673,18 +673,18 @@ discard block |
||
| 673 | 673 | 'all' => array( |
| 674 | 674 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 675 | 675 | 'children' => [] |
| 676 | - ) |
|
| 677 | - ); |
|
| 676 | + ) |
|
| 677 | + ); |
|
| 678 | 678 | |
| 679 | 679 | $data['role'] = array( |
| 680 | 680 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 681 | 681 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 682 | - ); |
|
| 682 | + ); |
|
| 683 | 683 | |
| 684 | 684 | $data['user'] = array( |
| 685 | 685 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 686 | 686 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 687 | - ); |
|
| 687 | + ); |
|
| 688 | 688 | |
| 689 | 689 | return $data; |
| 690 | 690 | } |
@@ -731,9 +731,9 @@ discard block |
||
| 731 | 731 | } |
| 732 | 732 | |
| 733 | 733 | $participantlistarray[] = array( |
| 734 | - 'selectiontype' => 'role', |
|
| 735 | - 'selectionid' => $moderatordefault, |
|
| 736 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 734 | + 'selectiontype' => 'role', |
|
| 735 | + 'selectionid' => $moderatordefault, |
|
| 736 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 737 | 737 | } |
| 738 | 738 | |
| 739 | 739 | return $participantlistarray; |
@@ -745,11 +745,11 @@ discard block |
||
| 745 | 745 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 746 | 746 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 747 | 747 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 748 | - ], |
|
| 748 | + ], |
|
| 749 | 749 | 'type_selected' => 'all', |
| 750 | 750 | 'options' => ['all' => '---------------'], |
| 751 | 751 | 'selected' => 'all', |
| 752 | - ]; |
|
| 752 | + ]; |
|
| 753 | 753 | } |
| 754 | 754 | |
| 755 | 755 | function bigbluebuttonbn_is_moderator($context, $participants, $userid = null, $userroles = null) { |
@@ -880,8 +880,8 @@ discard block |
||
| 880 | 880 | } |
| 881 | 881 | |
| 882 | 882 | $parray = array('url' => $purl, 'name' => $pname, |
| 883 | - 'icon' => $picon, |
|
| 884 | - 'mimetype_description' => $pmimetypedescrip); |
|
| 883 | + 'icon' => $picon, |
|
| 884 | + 'mimetype_description' => $pmimetypedescrip); |
|
| 885 | 885 | |
| 886 | 886 | return $parray; |
| 887 | 887 | } |
@@ -961,7 +961,7 @@ discard block |
||
| 961 | 961 | } |
| 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 | |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | // Ping again and refresh the cache. |
| 1010 | 1010 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1011 | 1011 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1012 | - ); |
|
| 1012 | + ); |
|
| 1013 | 1013 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1014 | 1014 | |
| 1015 | 1015 | return $meetinginfo; |
@@ -1150,7 +1150,7 @@ discard block |
||
| 1150 | 1150 | $actionbar .= bigbluebuttonbn_actionbar_render_button( |
| 1151 | 1151 | $recording, |
| 1152 | 1152 | bigbluebuttonbn_get_recording_data_row_actionbar_payload($recording, $tool) |
| 1153 | - ); |
|
| 1153 | + ); |
|
| 1154 | 1154 | } |
| 1155 | 1155 | $head = html_writer::start_tag('div', array( |
| 1156 | 1156 | 'id' => 'recording-actionbar-' . $recording['recordID'], |
@@ -1233,8 +1233,8 @@ discard block |
||
| 1233 | 1233 | |
| 1234 | 1234 | $id = 'playbacks-'.$recording['recordID']; |
| 1235 | 1235 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1236 | - 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1237 | - 'title' => $title, $visibility => $visibility)); |
|
| 1236 | + 'data-recordingid' => $recording['recordID'], 'data-meetingid' => $recording['meetingID'], |
|
| 1237 | + 'title' => $title, $visibility => $visibility)); |
|
| 1238 | 1238 | foreach ($recording['playbacks'] as $playback) { |
| 1239 | 1239 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recording_play(this);'; |
| 1240 | 1240 | $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=playback&bn='.$bigbluebuttonbnid. |
@@ -1340,7 +1340,7 @@ discard block |
||
| 1340 | 1340 | 'onclick' => $onclick, |
| 1341 | 1341 | 'data-action' => $data['action'], |
| 1342 | 1342 | 'data-links' => bigbluebuttonbn_get_count_recording_imported_instances($recording['recordID']) |
| 1343 | - ); |
|
| 1343 | + ); |
|
| 1344 | 1344 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
| 1345 | 1345 | } |
| 1346 | 1346 | |
@@ -1679,8 +1679,8 @@ discard block |
||
| 1679 | 1679 | $activitytime = ''; |
| 1680 | 1680 | if ($time) { |
| 1681 | 1681 | $activitytime = calendar_day_representation($time).' '. |
| 1682 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1683 | - calendar_time_representation($time); |
|
| 1682 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 1683 | + calendar_time_representation($time); |
|
| 1684 | 1684 | } |
| 1685 | 1685 | |
| 1686 | 1686 | return $activitytime; |
@@ -118,28 +118,28 @@ |
||
| 118 | 118 | isset($CFG->bigbluebuttonbn['recording_editable'])); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - /** |
|
| 122 | - * @return array |
|
| 123 | - */ |
|
| 121 | + /** |
|
| 122 | + * @return array |
|
| 123 | + */ |
|
| 124 | 124 | public static function get_options() { |
| 125 | 125 | return [ |
| 126 | - 'version_major' => self::get_moodle_version_major(), |
|
| 127 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | - 'recording_default' => self::get('recording_default'), |
|
| 129 | - 'recording_editable' => self::get('recording_editable'), |
|
| 130 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | - 'recordings_deleted_activities_default' => self::get('recordings_deleted_activities_default'), |
|
| 139 | - 'recordings_deleted_activities_editable' => self::get('recordings_deleted_activities_editable'), |
|
| 140 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 141 | - 'instance_type_enabled' => self::recordings_enabled(), |
|
| 142 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 143 | - ]; |
|
| 126 | + 'version_major' => self::get_moodle_version_major(), |
|
| 127 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 128 | + 'recording_default' => self::get('recording_default'), |
|
| 129 | + 'recording_editable' => self::get('recording_editable'), |
|
| 130 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 131 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 132 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 133 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 134 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 135 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 136 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 137 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 138 | + 'recordings_deleted_activities_default' => self::get('recordings_deleted_activities_default'), |
|
| 139 | + 'recordings_deleted_activities_editable' => self::get('recordings_deleted_activities_editable'), |
|
| 140 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 141 | + 'instance_type_enabled' => self::recordings_enabled(), |
|
| 142 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
| 143 | + ]; |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | // along with Moodle. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * The mod_bigbluebuttonbn abstract base event. |
|
| 19 | - * |
|
| 20 | - * @package mod_bigbluebuttonbn |
|
| 21 | - * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
|
| 22 | - * @copyright 2017 - present, Blindside Networks Inc |
|
| 23 | - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
|
| 24 | - */ |
|
| 18 | + * The mod_bigbluebuttonbn abstract base event. |
|
| 19 | + * |
|
| 20 | + * @package mod_bigbluebuttonbn |
|
| 21 | + * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
|
| 22 | + * @copyright 2017 - present, Blindside Networks Inc |
|
| 23 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
|
| 24 | + */ |
|
| 25 | 25 | |
| 26 | 26 | namespace mod_bigbluebuttonbn\event; |
| 27 | 27 | |
@@ -178,10 +178,10 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | function bigbluebutton_bbb_view_create_meeting_data(&$bbbsession, $bigbluebuttonbn) { |
| 180 | 180 | $data = ['meetingID' => $bbbsession['meetingid'], |
| 181 | - 'name' => $bbbsession['meetingname'], |
|
| 182 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
| 183 | - 'moderatorPW' => $bbbsession['modPW'], |
|
| 184 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
| 181 | + 'name' => $bbbsession['meetingname'], |
|
| 182 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
| 183 | + 'moderatorPW' => $bbbsession['modPW'], |
|
| 184 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
| 185 | 185 | ]; |
| 186 | 186 | |
| 187 | 187 | $data['record'] = 'false'; |
@@ -219,14 +219,14 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | function bigbluebutton_bbb_view_create_meeting_metadata(&$bbbsession) { |
| 221 | 221 | $metadata = ['bbb-origin' => $bbbsession['origin'], |
| 222 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 223 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 224 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 225 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 226 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
| 227 | - 'bbb-recording-name' => $bbbsession['meetingname'], |
|
| 228 | - 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 229 | - 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 222 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
| 223 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
| 224 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
| 225 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
| 226 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
| 227 | + 'bbb-recording-name' => $bbbsession['meetingname'], |
|
| 228 | + 'bbb-recording-description' => bigbluebuttonbn_html2text($bbbsession['meetingdescription'], 64), |
|
| 229 | + 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
|
| 230 | 230 | ]; |
| 231 | 231 | |
| 232 | 232 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | array( |
| 235 | 235 | 'email' => bigbluebuttonbn_get_moderator_email($bbbsession['context']), |
| 236 | 236 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
| 237 | - ) |
|
| 238 | - ); |
|
| 237 | + ) |
|
| 238 | + ); |
|
| 239 | 239 | } |
| 240 | 240 | if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
| 241 | 241 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |