@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) { |
| 121 | 121 | $data = ['meetingID' => $meetingid, |
| 122 | - 'fullName' => $username, |
|
| 123 | - 'password' => $pw, |
|
| 124 | - 'logoutURL' => $logouturl, |
|
| 122 | + 'fullName' => $username, |
|
| 123 | + 'password' => $pw, |
|
| 124 | + 'logoutURL' => $logouturl, |
|
| 125 | 125 | ]; |
| 126 | 126 | if (!is_null($configtoken)) { |
| 127 | 127 | $data['configToken'] = $configtoken; |
@@ -173,23 +173,23 @@ discard block |
||
| 173 | 173 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
| 174 | 174 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 175 | 175 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 176 | - ); |
|
| 176 | + ); |
|
| 177 | 177 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
| 178 | 178 | // Meeting info was returned. |
| 179 | 179 | return array('returncode' => $xml->returncode, |
| 180 | - 'meetingID' => $xml->meetingID, |
|
| 181 | - 'moderatorPW' => $xml->moderatorPW, |
|
| 182 | - 'attendeePW' => $xml->attendeePW, |
|
| 183 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 184 | - 'running' => $xml->running, |
|
| 185 | - 'recording' => $xml->recording, |
|
| 186 | - 'startTime' => $xml->startTime, |
|
| 187 | - 'endTime' => $xml->endTime, |
|
| 188 | - 'participantCount' => $xml->participantCount, |
|
| 189 | - 'moderatorCount' => $xml->moderatorCount, |
|
| 190 | - 'attendees' => $xml->attendees, |
|
| 191 | - 'metadata' => $xml->metadata, |
|
| 192 | - ); |
|
| 180 | + 'meetingID' => $xml->meetingID, |
|
| 181 | + 'moderatorPW' => $xml->moderatorPW, |
|
| 182 | + 'attendeePW' => $xml->attendeePW, |
|
| 183 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
| 184 | + 'running' => $xml->running, |
|
| 185 | + 'recording' => $xml->recording, |
|
| 186 | + 'startTime' => $xml->startTime, |
|
| 187 | + 'endTime' => $xml->endTime, |
|
| 188 | + 'participantCount' => $xml->participantCount, |
|
| 189 | + 'moderatorCount' => $xml->moderatorCount, |
|
| 190 | + 'attendees' => $xml->attendees, |
|
| 191 | + 'metadata' => $xml->metadata, |
|
| 192 | + ); |
|
| 193 | 193 | } |
| 194 | 194 | if ($xml) { |
| 195 | 195 | // Either failure or success without meeting info. |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | function bigbluebuttonbn_get_default_config_xml() { |
| 326 | 326 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 327 | 327 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
| 328 | - ); |
|
| 328 | + ); |
|
| 329 | 329 | return $xml; |
| 330 | 330 | } |
| 331 | 331 | |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | foreach ($ids as $id) { |
| 416 | 416 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 417 | 417 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id]) |
| 418 | - ); |
|
| 418 | + ); |
|
| 419 | 419 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 420 | 420 | return false; |
| 421 | 421 | } |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | foreach ($ids as $id) { |
| 435 | 435 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 436 | 436 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
| 437 | - ); |
|
| 437 | + ); |
|
| 438 | 438 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 439 | 439 | return false; |
| 440 | 440 | } |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | foreach ($ids as $id) { |
| 454 | 454 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 455 | 455 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
| 456 | - ); |
|
| 456 | + ); |
|
| 457 | 457 | if ($xml && $xml->returncode != 'SUCCESS') { |
| 458 | 458 | return false; |
| 459 | 459 | } |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
| 471 | 471 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 472 | 472 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
| 473 | - ); |
|
| 473 | + ); |
|
| 474 | 474 | if ($xml) { |
| 475 | 475 | // If the xml packet returned failure it displays the message to the user. |
| 476 | 476 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | */ |
| 491 | 491 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 492 | 492 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 493 | - ); |
|
| 493 | + ); |
|
| 494 | 494 | return ($xml && $xml->returncode == 'SUCCESS'); |
| 495 | 495 | } |
| 496 | 496 | |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | function bigbluebuttonbn_get_server_version() { |
| 503 | 503 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 504 | 504 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
| 505 | - ); |
|
| 505 | + ); |
|
| 506 | 506 | if ($xml && $xml->returncode == 'SUCCESS') { |
| 507 | 507 | return $xml->version; |
| 508 | 508 | } |
@@ -570,10 +570,10 @@ discard block |
||
| 570 | 570 | |
| 571 | 571 | $options = array(); |
| 572 | 572 | $options['CURLOPT_HTTPHEADER'] = array( |
| 573 | - 'Content-Type: '.$contenttype, |
|
| 574 | - 'Content-Length: '.strlen($data), |
|
| 575 | - 'Content-Language: en-US', |
|
| 576 | - ); |
|
| 573 | + 'Content-Type: '.$contenttype, |
|
| 574 | + 'Content-Length: '.strlen($data), |
|
| 575 | + 'Content-Language: en-US', |
|
| 576 | + ); |
|
| 577 | 577 | |
| 578 | 578 | return $c->post($url, $data, $options); |
| 579 | 579 | } |
@@ -716,16 +716,16 @@ discard block |
||
| 716 | 716 | 'all' => array( |
| 717 | 717 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 718 | 718 | 'children' => [] |
| 719 | - ) |
|
| 720 | - ); |
|
| 719 | + ) |
|
| 720 | + ); |
|
| 721 | 721 | $data['role'] = array( |
| 722 | 722 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 723 | 723 | 'children' => bigbluebuttonbn_get_roles_select($context) |
| 724 | - ); |
|
| 724 | + ); |
|
| 725 | 725 | $data['user'] = array( |
| 726 | 726 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 727 | 727 | 'children' => bigbluebuttonbn_get_users_select($context) |
| 728 | - ); |
|
| 728 | + ); |
|
| 729 | 729 | return $data; |
| 730 | 730 | } |
| 731 | 731 | |
@@ -770,9 +770,9 @@ discard block |
||
| 770 | 770 | continue; |
| 771 | 771 | } |
| 772 | 772 | $participantlistarray[] = array( |
| 773 | - 'selectiontype' => 'role', |
|
| 774 | - 'selectionid' => $moderatordefault, |
|
| 775 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 773 | + 'selectiontype' => 'role', |
|
| 774 | + 'selectionid' => $moderatordefault, |
|
| 775 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
| 776 | 776 | } |
| 777 | 777 | return $participantlistarray; |
| 778 | 778 | } |
@@ -815,11 +815,11 @@ discard block |
||
| 815 | 815 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
| 816 | 816 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
| 817 | 817 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
| 818 | - ], |
|
| 818 | + ], |
|
| 819 | 819 | 'type_selected' => 'all', |
| 820 | 820 | 'options' => ['all' => '---------------'], |
| 821 | 821 | 'selected' => 'all', |
| 822 | - ]; |
|
| 822 | + ]; |
|
| 823 | 823 | } |
| 824 | 824 | |
| 825 | 825 | /** |
@@ -1096,7 +1096,7 @@ discard block |
||
| 1096 | 1096 | $eventproperties['other'] = $options['other']; |
| 1097 | 1097 | } |
| 1098 | 1098 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
| 1099 | - array($eventproperties)); |
|
| 1099 | + array($eventproperties)); |
|
| 1100 | 1100 | $event->trigger(); |
| 1101 | 1101 | } |
| 1102 | 1102 | |
@@ -1140,7 +1140,7 @@ discard block |
||
| 1140 | 1140 | // Ping again and refresh the cache. |
| 1141 | 1141 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
| 1142 | 1142 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
| 1143 | - ); |
|
| 1143 | + ); |
|
| 1144 | 1144 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
| 1145 | 1145 | return $meetinginfo; |
| 1146 | 1146 | } |
@@ -1510,8 +1510,8 @@ discard block |
||
| 1510 | 1510 | } |
| 1511 | 1511 | $id = 'playbacks-'.$recording['recordID']; |
| 1512 | 1512 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1513 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1514 | - 'title' => $title, $visibility => $visibility)); |
|
| 1513 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
| 1514 | + 'title' => $title, $visibility => $visibility)); |
|
| 1515 | 1515 | foreach ($recording['playbacks'] as $playback) { |
| 1516 | 1516 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bigbluebuttonbnid, $playback).' '; |
| 1517 | 1517 | } |
@@ -1533,7 +1533,7 @@ discard block |
||
| 1533 | 1533 | $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
| 1534 | 1534 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);'; |
| 1535 | 1535 | $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bigbluebuttonbnid. |
| 1536 | - '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type']; |
|
| 1536 | + '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type']; |
|
| 1537 | 1537 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
| 1538 | 1538 | $href .= '&href='.urlencode(trim($playback['url'])); |
| 1539 | 1539 | } |
@@ -1545,7 +1545,7 @@ discard block |
||
| 1545 | 1545 | 'data-target' => $playback['type'], |
| 1546 | 1546 | 'data-href' => $href, |
| 1547 | 1547 | 'class' => 'btn btn-sm btn-default' |
| 1548 | - ); |
|
| 1548 | + ); |
|
| 1549 | 1549 | return $OUTPUT->action_link('#', $title, null, $linkattributes); |
| 1550 | 1550 | } |
| 1551 | 1551 | |
@@ -1659,10 +1659,10 @@ discard block |
||
| 1659 | 1659 | 'id' => $id, |
| 1660 | 1660 | 'onclick' => $onclick, |
| 1661 | 1661 | 'data-action' => $data['action'] |
| 1662 | - ); |
|
| 1662 | + ); |
|
| 1663 | 1663 | if (!isset($recording['imported'])) { |
| 1664 | 1664 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
| 1665 | - $recording['recordID']); |
|
| 1665 | + $recording['recordID']); |
|
| 1666 | 1666 | } |
| 1667 | 1667 | if (isset($data['disabled'])) { |
| 1668 | 1668 | $iconattributes['class'] .= ' fa-' . $data['disabled']; |
@@ -2200,8 +2200,8 @@ discard block |
||
| 2200 | 2200 | $activitytime = ''; |
| 2201 | 2201 | if ($time) { |
| 2202 | 2202 | $activitytime = calendar_day_representation($time).' '. |
| 2203 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2204 | - calendar_time_representation($time); |
|
| 2203 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2204 | + calendar_time_representation($time); |
|
| 2205 | 2205 | } |
| 2206 | 2206 | return $activitytime; |
| 2207 | 2207 | } |
@@ -2486,7 +2486,7 @@ discard block |
||
| 2486 | 2486 | $renderer->render_group_element('participant_moderator_default', |
| 2487 | 2487 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
| 2488 | 2488 | array_keys($owner), array_merge($owner, $roles)) |
| 2489 | - ); |
|
| 2489 | + ); |
|
| 2490 | 2490 | } |
| 2491 | 2491 | } |
| 2492 | 2492 | |
@@ -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. |
@@ -298,27 +298,27 @@ discard block |
||
| 298 | 298 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 299 | 299 | */ |
| 300 | 300 | |
| 301 | - /* |
|
| 301 | + /* |
|
| 302 | 302 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 303 | 303 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 304 | 304 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 305 | 305 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 306 | 306 | */ |
| 307 | 307 | |
| 308 | - /* |
|
| 308 | + /* |
|
| 309 | 309 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 310 | 310 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 311 | 311 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 312 | 312 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 313 | 313 | */ |
| 314 | 314 | |
| 315 | - /* |
|
| 315 | + /* |
|
| 316 | 316 | * Additionally, when general_warning_button_href value is different than "", a button |
| 317 | 317 | * can also be shown right after the message. |
| 318 | 318 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 319 | 319 | */ |
| 320 | 320 | |
| 321 | - /* |
|
| 321 | + /* |
|
| 322 | 322 | * Finally, the text and class for the button can be modified |
| 323 | 323 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 324 | 324 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |