@@ -225,9 +225,9 @@ discard block |
||
225 | 225 | global $DB; |
226 | 226 | |
227 | 227 | $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id, |
228 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
229 | - 'userid' => $user->id, |
|
230 | - 'log' => 'Join', ), '*'); |
|
228 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
229 | + 'userid' => $user->id, |
|
230 | + 'log' => 'Join', ), '*'); |
|
231 | 231 | |
232 | 232 | if ($completed > 0) { |
233 | 233 | return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.get_string('view_message_session_for', 'bigbluebuttonbn').' '.(string) $completed.' '.get_string('view_message_times', 'bigbluebuttonbn'); |
@@ -246,9 +246,9 @@ discard block |
||
246 | 246 | { |
247 | 247 | global $DB; |
248 | 248 | $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id, |
249 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
250 | - 'userid' => $user->id, |
|
251 | - 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
249 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
250 | + 'userid' => $user->id, |
|
251 | + 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
252 | 252 | |
253 | 253 | return $completed > 0; |
254 | 254 | } |
@@ -315,11 +315,11 @@ discard block |
||
315 | 315 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
316 | 316 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
317 | 317 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
318 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
318 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
319 | 319 | $str .= ' </div>'."\n"; |
320 | 320 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).'</div>'."\n"; |
321 | 321 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
322 | - .'</div>'."\n"; |
|
322 | + .'</div>'."\n"; |
|
323 | 323 | $str .= '</div>'."\n"; |
324 | 324 | |
325 | 325 | if (empty($htmlarray[$bigbluebuttonbn->course]['bigbluebuttonbn'])) { |
@@ -93,14 +93,14 @@ discard block |
||
93 | 93 | |
94 | 94 | /// Prepare the metadata |
95 | 95 | $metadata = array('bbb-origin' => $bbbsession['origin'], |
96 | - 'bbb-origin-version' => $bbbsession['originVersion'], |
|
97 | - 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
98 | - 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
99 | - 'bbb-origin-tag' => $bbbsession['originTag'], |
|
100 | - 'bbb-context' => $bbbsession['course']->fullname, |
|
101 | - 'bbb-recording-name' => (isset($name) && $name != '') ? $name : $bbbsession['contextActivityName'], |
|
102 | - 'bbb-recording-description' => (isset($description) && $description != '') ? $description : $bbbsession['contextActivityDescription'], |
|
103 | - 'bbb-recording-tags' => (isset($tags) && $tags != '') ? $tags : $bbbsession['contextActivityTags'], |
|
96 | + 'bbb-origin-version' => $bbbsession['originVersion'], |
|
97 | + 'bbb-origin-server-name' => $bbbsession['originServerName'], |
|
98 | + 'bbb-origin-server-common-name' => $bbbsession['originServerCommonName'], |
|
99 | + 'bbb-origin-tag' => $bbbsession['originTag'], |
|
100 | + 'bbb-context' => $bbbsession['course']->fullname, |
|
101 | + 'bbb-recording-name' => (isset($name) && $name != '') ? $name : $bbbsession['contextActivityName'], |
|
102 | + 'bbb-recording-description' => (isset($description) && $description != '') ? $description : $bbbsession['contextActivityDescription'], |
|
103 | + 'bbb-recording-tags' => (isset($tags) && $tags != '') ? $tags : $bbbsession['contextActivityTags'], |
|
104 | 104 | ); |
105 | 105 | |
106 | 106 | if (bigbluebuttonbn_server_offers_bn_capabilities()) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $metadata, |
139 | 139 | $bbbsession['presentation']['name'], |
140 | 140 | $bbbsession['presentation']['url'] |
141 | - ); |
|
141 | + ); |
|
142 | 142 | |
143 | 143 | if (!$response) { |
144 | 144 | // If the server is unreachable, then prompts the user of the necessary action |
@@ -326,9 +326,9 @@ discard block |
||
326 | 326 | |
327 | 327 | // Get recordings |
328 | 328 | $recordings = bigbluebuttonbn_get_recordings($bbbsession['course']->id, |
329 | - $showroom ? $bbbsession['bigbluebuttonbn']->id : null, |
|
330 | - $showroom, |
|
331 | - $bbbsession['bigbluebuttonbn']->recordings_deleted_activities); |
|
329 | + $showroom ? $bbbsession['bigbluebuttonbn']->id : null, |
|
330 | + $showroom, |
|
331 | + $bbbsession['bigbluebuttonbn']->recordings_deleted_activities); |
|
332 | 332 | |
333 | 333 | if (!isset($recordings) || empty($recordings) || array_key_exists('messageKey', $recordings)) { |
334 | 334 | // There are no recordings to be shown. |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | // JavaScript variables for recordings |
340 | 340 | $jsvars += array( |
341 | 341 | 'recordings_html' => $bbbsession['bigbluebuttonbn']->recordings_html == '1', |
342 | - ); |
|
342 | + ); |
|
343 | 343 | |
344 | 344 | // If there are meetings with recordings load the data to the table |
345 | 345 | if ($bbbsession['bigbluebuttonbn']->recordings_html) { |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | $jsvars += array( |
352 | 352 | 'columns' => bigbluebuttonbn_get_recording_columns($bbbsession), |
353 | 353 | 'data' => bigbluebuttonbn_get_recording_data($bbbsession, $recordings), |
354 | - ); |
|
354 | + ); |
|
355 | 355 | |
356 | 356 | // JavaScript dependences for recordings with YUI |
357 | 357 | $jsdependences += array('datatable', 'datatable-sort', 'datatable-paginator', 'datatype-number'); |
@@ -75,9 +75,9 @@ discard block |
||
75 | 75 | function bigbluebuttonbn_getJoinURL($meetingID, $userName, $PW, $logoutURL, $configToken = null, $userId = null) |
76 | 76 | { |
77 | 77 | $data = ['meetingID' => $meetingID, |
78 | - 'fullName' => $userName, |
|
79 | - 'password' => $PW, |
|
80 | - 'logoutURL' => $logoutURL, |
|
78 | + 'fullName' => $userName, |
|
79 | + 'password' => $PW, |
|
80 | + 'logoutURL' => $logoutURL, |
|
81 | 81 | ]; |
82 | 82 | |
83 | 83 | if (!is_null($configToken)) { |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | function bigbluebuttonbn_getCreateMeetingURL($name, $meetingID, $attendeePW, $moderatorPW, $welcome, $logoutURL, $record = 'false', $duration = 0, $voiceBridge = 0, $maxParticipants = 0, $metadata = array()) |
94 | 94 | { |
95 | 95 | $data = ['meetingID' => $meetingID, |
96 | - 'name' => $name, |
|
97 | - 'attendeePW' => $attendeePW, |
|
98 | - 'moderatorPW' => $moderatorPW, |
|
99 | - 'logoutURL' => $logoutURL, |
|
100 | - 'record' => $record, |
|
96 | + 'name' => $name, |
|
97 | + 'attendeePW' => $attendeePW, |
|
98 | + 'moderatorPW' => $moderatorPW, |
|
99 | + 'logoutURL' => $logoutURL, |
|
100 | + 'record' => $record, |
|
101 | 101 | ]; |
102 | 102 | |
103 | 103 | $voiceBridge = intval($voiceBridge); |
@@ -291,19 +291,19 @@ discard block |
||
291 | 291 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
292 | 292 | // Meeting info was returned |
293 | 293 | return array('returncode' => $xml->returncode, |
294 | - 'meetingID' => $xml->meetingID, |
|
295 | - 'moderatorPW' => $xml->moderatorPW, |
|
296 | - 'attendeePW' => $xml->attendeePW, |
|
297 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
298 | - 'running' => $xml->running, |
|
299 | - 'recording' => $xml->recording, |
|
300 | - 'startTime' => $xml->startTime, |
|
301 | - 'endTime' => $xml->endTime, |
|
302 | - 'participantCount' => $xml->participantCount, |
|
303 | - 'moderatorCount' => $xml->moderatorCount, |
|
304 | - 'attendees' => $xml->attendees, |
|
305 | - 'metadata' => $xml->metadata, |
|
306 | - ); |
|
294 | + 'meetingID' => $xml->meetingID, |
|
295 | + 'moderatorPW' => $xml->moderatorPW, |
|
296 | + 'attendeePW' => $xml->attendeePW, |
|
297 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
298 | + 'running' => $xml->running, |
|
299 | + 'recording' => $xml->recording, |
|
300 | + 'startTime' => $xml->startTime, |
|
301 | + 'endTime' => $xml->endTime, |
|
302 | + 'participantCount' => $xml->participantCount, |
|
303 | + 'moderatorCount' => $xml->moderatorCount, |
|
304 | + 'attendees' => $xml->attendees, |
|
305 | + 'metadata' => $xml->metadata, |
|
306 | + ); |
|
307 | 307 | } |
308 | 308 | |
309 | 309 | if ($xml) { |
@@ -612,10 +612,10 @@ discard block |
||
612 | 612 | |
613 | 613 | $options = array(); |
614 | 614 | $options['CURLOPT_HTTPHEADER'] = array( |
615 | - 'Content-Type: '.$content_type, |
|
616 | - 'Content-Length: '.strlen($data), |
|
617 | - 'Content-Language: en-US', |
|
618 | - ); |
|
615 | + 'Content-Type: '.$content_type, |
|
616 | + 'Content-Length: '.strlen($data), |
|
617 | + 'Content-Language: en-US', |
|
618 | + ); |
|
619 | 619 | |
620 | 620 | return $c->post($url, $data, $options); |
621 | 621 | } |
@@ -687,8 +687,8 @@ discard block |
||
687 | 687 | $participant_list = json_decode($bigbluebuttonbn->participants); |
688 | 688 | foreach ($participant_list as $participant) { |
689 | 689 | $participant_list_array[] = array('selectiontype' => $participant->selectiontype, |
690 | - 'selectionid' => $participant->selectionid, |
|
691 | - 'role' => $participant->role, ); |
|
690 | + 'selectionid' => $participant->selectionid, |
|
691 | + 'role' => $participant->role, ); |
|
692 | 692 | } |
693 | 693 | |
694 | 694 | return $participant_list_array; |
@@ -700,8 +700,8 @@ discard block |
||
700 | 700 | |
701 | 701 | $participant_list_array = array(); |
702 | 702 | $participant_list_array[] = array('selectiontype' => 'all', |
703 | - 'selectionid' => 'all', |
|
704 | - 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER, ); |
|
703 | + 'selectionid' => 'all', |
|
704 | + 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER, ); |
|
705 | 705 | |
706 | 706 | $moderator_defaults = explode(',', bigbluebuttonbn_get_cfg_moderator_default()); |
707 | 707 | foreach ($moderator_defaults as $moderator_default) { |
@@ -710,8 +710,8 @@ discard block |
||
710 | 710 | foreach ($users as $user) { |
711 | 711 | if ($user->id == $USER->id) { |
712 | 712 | $participant_list_array[] = array('selectiontype' => 'user', |
713 | - 'selectionid' => $USER->id, |
|
714 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR, ); |
|
713 | + 'selectionid' => $USER->id, |
|
714 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR, ); |
|
715 | 715 | break; |
716 | 716 | } |
717 | 717 | } |
@@ -719,8 +719,8 @@ discard block |
||
719 | 719 | } |
720 | 720 | |
721 | 721 | $participant_list_array[] = array('selectiontype' => 'role', |
722 | - 'selectionid' => $moderator_default, |
|
723 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR, ); |
|
722 | + 'selectionid' => $moderator_default, |
|
723 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR, ); |
|
724 | 724 | } |
725 | 725 | |
726 | 726 | return $participant_list_array; |
@@ -1642,24 +1642,24 @@ discard block |
||
1642 | 1642 | function bigbluebuttonbn_get_cfg_options() |
1643 | 1643 | { |
1644 | 1644 | return [ |
1645 | - 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
1646 | - 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
1647 | - 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
1648 | - 'recording_tagging_default' => bigbluebuttonbn_get_cfg_recording_tagging_default(), |
|
1649 | - 'recording_tagging_editable' => bigbluebuttonbn_get_cfg_recording_tagging_editable(), |
|
1650 | - 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
1651 | - 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
1652 | - 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
1653 | - 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
1654 | - 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
1655 | - 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
1656 | - 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
1657 | - 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
1658 | - 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
1659 | - 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
1660 | - 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
1661 | - 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
1662 | - 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
1645 | + 'voicebridge_editable' => bigbluebuttonbn_get_cfg_voicebridge_editable(), |
|
1646 | + 'recording_default' => bigbluebuttonbn_get_cfg_recording_default(), |
|
1647 | + 'recording_editable' => bigbluebuttonbn_get_cfg_recording_editable(), |
|
1648 | + 'recording_tagging_default' => bigbluebuttonbn_get_cfg_recording_tagging_default(), |
|
1649 | + 'recording_tagging_editable' => bigbluebuttonbn_get_cfg_recording_tagging_editable(), |
|
1650 | + 'waitformoderator_default' => bigbluebuttonbn_get_cfg_waitformoderator_default(), |
|
1651 | + 'waitformoderator_editable' => bigbluebuttonbn_get_cfg_waitformoderator_editable(), |
|
1652 | + 'userlimit_default' => bigbluebuttonbn_get_cfg_userlimit_default(), |
|
1653 | + 'userlimit_editable' => bigbluebuttonbn_get_cfg_userlimit_editable(), |
|
1654 | + 'preuploadpresentation_enabled' => bigbluebuttonbn_get_cfg_preuploadpresentation_enabled(), |
|
1655 | + 'sendnotifications_enabled' => bigbluebuttonbn_get_cfg_sendnotifications_enabled(), |
|
1656 | + 'recordings_html_default' => bigbluebuttonbn_get_cfg_recordings_html_default(), |
|
1657 | + 'recordings_html_editable' => bigbluebuttonbn_get_cfg_recordings_html_editable(), |
|
1658 | + 'recordings_deleted_activities_default' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_default(), |
|
1659 | + 'recordings_deleted_activities_editable' => bigbluebuttonbn_get_cfg_recordings_deleted_activities_editable(), |
|
1660 | + 'recording_icons_enabled' => bigbluebuttonbn_get_cfg_recording_icons_enabled(), |
|
1661 | + 'instance_type_enabled' => bigbluebuttonbn_recordings_enabled(), |
|
1662 | + 'instance_type_default' => BIGBLUEBUTTONBN_TYPE_ALL, |
|
1663 | 1663 | ]; |
1664 | 1664 | } |
1665 | 1665 | |
@@ -1935,8 +1935,8 @@ discard block |
||
1935 | 1935 | $activity_time = ''; |
1936 | 1936 | if ($time) { |
1937 | 1937 | $activity_time = calendar_day_representation($time).' '. |
1938 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
1939 | - calendar_time_representation($time); |
|
1938 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
1939 | + calendar_time_representation($time); |
|
1940 | 1940 | } |
1941 | 1941 | |
1942 | 1942 | return $activity_time; |