@@ -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 | /** |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | defined('MOODLE_INTERNAL') || die(); |
29 | 29 | |
30 | 30 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
31 | -require_once($CFG->libdir.'/adminlib.php'); |
|
31 | +require_once($CFG->libdir . '/adminlib.php'); |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Helper class for rendering HTML for settings.php. |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $itemname = get_string('config_' . $name, 'bigbluebuttonbn'); |
67 | 67 | } |
68 | 68 | if ($itemdescription === null) { |
69 | - $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn'); |
|
69 | + $itemdescription = get_string('config_' . $name . '_description', 'bigbluebuttonbn'); |
|
70 | 70 | } |
71 | 71 | $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription); |
72 | 72 | $this->settings->add($item); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | public function render_warning_message($name, $message, $type = 'warning', $closable = true) { |
149 | 149 | global $OUTPUT; |
150 | 150 | $output = $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
151 | - 'bigbluebuttonbn_' . $name)."\n"; |
|
151 | + 'bigbluebuttonbn_' . $name) . "\n"; |
|
152 | 152 | if ($closable) { |
153 | 153 | $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>' . "\n"; |
154 | 154 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public static function notification_process($context, $bigbluebuttonbn, $action) { |
48 | 48 | global $USER; |
49 | 49 | // Prepare message. |
50 | - $msg = (object) array(); |
|
50 | + $msg = (object)array(); |
|
51 | 51 | // Build the message_body. |
52 | 52 | $msg->action = $action; |
53 | 53 | $msg->activity_type = ''; |
@@ -72,26 +72,26 @@ discard block |
||
72 | 72 | * @return string |
73 | 73 | */ |
74 | 74 | public static function notification_msg_html($msg) { |
75 | - $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '. |
|
76 | - get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
|
77 | - $messagetext .= '<p><b>'.$msg->activity_title.'</b> '. |
|
78 | - get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n"; |
|
79 | - $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n"; |
|
80 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
81 | - get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
82 | - $messagetext .= $msg->activity_title.'</td></tr>'."\n"; |
|
83 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
84 | - get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
85 | - $messagetext .= $msg->activity_description.'</td></tr>'."\n"; |
|
86 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
87 | - get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
88 | - $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n"; |
|
89 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
90 | - get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
91 | - $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n"; |
|
92 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '. |
|
93 | - get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
94 | - $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n"; |
|
75 | + $messagetext = '<p>' . $msg->activity_type . ' "' . $msg->activity_title . '" ' . |
|
76 | + get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n"; |
|
77 | + $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' . |
|
78 | + get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n"; |
|
79 | + $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n"; |
|
80 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
81 | + get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
82 | + $messagetext .= $msg->activity_title . '</td></tr>' . "\n"; |
|
83 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
84 | + get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
85 | + $messagetext .= $msg->activity_description . '</td></tr>' . "\n"; |
|
86 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
87 | + get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
88 | + $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n"; |
|
89 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
90 | + get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
91 | + $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n"; |
|
92 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' . |
|
93 | + get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
94 | + $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n"; |
|
95 | 95 | return $messagetext; |
96 | 96 | } |
97 | 97 | |
@@ -108,14 +108,14 @@ discard block |
||
108 | 108 | global $DB; |
109 | 109 | $course = $DB->get_record('course', array('id' => $bigbluebuttonbn->course), '*', MUST_EXIST); |
110 | 110 | // Complete message. |
111 | - $msg = (object) array(); |
|
111 | + $msg = (object)array(); |
|
112 | 112 | $msg->user_name = fullname($sender); |
113 | 113 | $msg->user_email = $sender->email; |
114 | 114 | $msg->course_name = "$course->fullname"; |
115 | - $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '. |
|
116 | - $msg->user_name.'('.$msg->user_email.') '; |
|
117 | - $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>'; |
|
118 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
115 | + $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' . |
|
116 | + $msg->user_name . '(' . $msg->user_email . ') '; |
|
117 | + $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>'; |
|
118 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
119 | 119 | foreach ($users as $user) { |
120 | 120 | if ($user->id != $sender->id) { |
121 | 121 | message_post_message($sender, $user, $message, FORMAT_HTML); |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * Helper function to retrieve imported recordings from the Moodle database. |
293 | 293 | * The references are stored as events in bigbluebuttonbn_logs. |
294 | 294 | * |
295 | - * @param string $courseid |
|
295 | + * @param integer $courseid |
|
296 | 296 | * @param string $bigbluebuttonbnid |
297 | 297 | * @param bool $subset |
298 | 298 | * |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | /** |
321 | 321 | * Helper function to retrive the default config.xml file. |
322 | 322 | * |
323 | - * @return string |
|
323 | + * @return null|SimpleXMLElement |
|
324 | 324 | */ |
325 | 325 | function bigbluebuttonbn_get_default_config_xml() { |
326 | 326 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | * @param object $a |
403 | 403 | * @param object $b |
404 | 404 | * |
405 | - * @return array |
|
405 | + * @return integer |
|
406 | 406 | */ |
407 | 407 | function bigbluebuttonbn_recording_build_sorter($a, $b) { |
408 | 408 | if ($a['startTime'] < $b['startTime']) { |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | * @param string $data |
529 | 529 | * @param string $contenttype |
530 | 530 | * |
531 | - * @return object |
|
531 | + * @return null|SimpleXMLElement |
|
532 | 532 | */ |
533 | 533 | function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') { |
534 | 534 | if (extension_loaded('curl')) { |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | * @param string $data |
570 | 570 | * @param string $contenttype |
571 | 571 | * |
572 | - * @return object |
|
572 | + * @return string |
|
573 | 573 | */ |
574 | 574 | function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') { |
575 | 575 | $c = new curl(); |
@@ -934,7 +934,7 @@ discard block |
||
934 | 934 | * @param integer $instance |
935 | 935 | * @param integer $voicebridge |
936 | 936 | * |
937 | - * @return string |
|
937 | + * @return boolean |
|
938 | 938 | */ |
939 | 939 | function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) { |
940 | 940 | global $DB; |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | /** |
1038 | 1038 | * Helper returns an array with all possible bigbluebuttonbn events. |
1039 | 1039 | * |
1040 | - * @return array |
|
1040 | + * @return string[] |
|
1041 | 1041 | */ |
1042 | 1042 | function bigbluebuttonbn_events() { |
1043 | 1043 | return array( |
@@ -1246,7 +1246,7 @@ discard block |
||
1246 | 1246 | * @param string $meetingid |
1247 | 1247 | * @param string $configxml |
1248 | 1248 | * |
1249 | - * @return object |
|
1249 | + * @return null|SimpleXMLElement |
|
1250 | 1250 | */ |
1251 | 1251 | function bigbluebuttonbn_set_config_xml($meetingid, $configxml) { |
1252 | 1252 | $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?'; |
@@ -1295,7 +1295,7 @@ discard block |
||
1295 | 1295 | * @param array $recording |
1296 | 1296 | * @param array $tools |
1297 | 1297 | * |
1298 | - * @return array |
|
1298 | + * @return null|stdClass |
|
1299 | 1299 | */ |
1300 | 1300 | function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) { |
1301 | 1301 | if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) { |
@@ -1799,7 +1799,7 @@ discard block |
||
1799 | 1799 | * |
1800 | 1800 | * @param array $bbbsession |
1801 | 1801 | * @param array $recording |
1802 | - * @param object $rowdata |
|
1802 | + * @param stdClass $rowdata |
|
1803 | 1803 | * |
1804 | 1804 | * @return object |
1805 | 1805 | */ |
@@ -1998,7 +1998,7 @@ discard block |
||
1998 | 1998 | * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
1999 | 1999 | * in the getRecordings request considering only those that belong to deleted activities. |
2000 | 2000 | * |
2001 | - * @param string $courseid |
|
2001 | + * @param integer $courseid |
|
2002 | 2002 | * @param string $bigbluebuttonbnid |
2003 | 2003 | * @param bool $subset |
2004 | 2004 | * |
@@ -2022,7 +2022,7 @@ discard block |
||
2022 | 2022 | * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included |
2023 | 2023 | * in the getRecordings request considering only those that belong to imported recordings. |
2024 | 2024 | * |
2025 | - * @param string $courseid |
|
2025 | + * @param integer $courseid |
|
2026 | 2026 | * @param string $bigbluebuttonbnid |
2027 | 2027 | * @param bool $subset |
2028 | 2028 | * |
@@ -2045,7 +2045,7 @@ discard block |
||
2045 | 2045 | /** |
2046 | 2046 | * Helper function to get recordings and imported recordings together. |
2047 | 2047 | * |
2048 | - * @param string $courseid |
|
2048 | + * @param integer $courseid |
|
2049 | 2049 | * @param string $bigbluebuttonbnid |
2050 | 2050 | * @param bool $subset |
2051 | 2051 | * @param bool $includedeleted |
@@ -2063,7 +2063,7 @@ discard block |
||
2063 | 2063 | * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events |
2064 | 2064 | * in bigbluebuttonbn_logs. |
2065 | 2065 | * |
2066 | - * @param string $courseid |
|
2066 | + * @param integer $courseid |
|
2067 | 2067 | * @param string $bigbluebuttonbnid |
2068 | 2068 | * @param bool $subset |
2069 | 2069 | * @param bool $includedeleted |
@@ -92,11 +92,11 @@ discard block |
||
92 | 92 | * @return string |
93 | 93 | */ |
94 | 94 | function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, |
95 | - $userid = null, $clienttype = BIGBLUEBUTTON_CLIENTTYPE_FLASH) { |
|
95 | + $userid = null, $clienttype = BIGBLUEBUTTON_CLIENTTYPE_FLASH) { |
|
96 | 96 | $data = ['meetingID' => $meetingid, |
97 | - 'fullName' => $username, |
|
98 | - 'password' => $pw, |
|
99 | - 'logoutURL' => $logouturl, |
|
97 | + 'fullName' => $username, |
|
98 | + 'password' => $pw, |
|
99 | + 'logoutURL' => $logouturl, |
|
100 | 100 | ]; |
101 | 101 | // Choose between Adobe Flash or HTML5 Client. |
102 | 102 | if ( $clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5 ) { |
@@ -153,23 +153,23 @@ discard block |
||
153 | 153 | function bigbluebuttonbn_get_meeting_info_array($meetingid) { |
154 | 154 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
155 | 155 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
156 | - ); |
|
156 | + ); |
|
157 | 157 | if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) { |
158 | 158 | // Meeting info was returned. |
159 | 159 | return array('returncode' => $xml->returncode, |
160 | - 'meetingID' => $xml->meetingID, |
|
161 | - 'moderatorPW' => $xml->moderatorPW, |
|
162 | - 'attendeePW' => $xml->attendeePW, |
|
163 | - 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
164 | - 'running' => $xml->running, |
|
165 | - 'recording' => $xml->recording, |
|
166 | - 'startTime' => $xml->startTime, |
|
167 | - 'endTime' => $xml->endTime, |
|
168 | - 'participantCount' => $xml->participantCount, |
|
169 | - 'moderatorCount' => $xml->moderatorCount, |
|
170 | - 'attendees' => $xml->attendees, |
|
171 | - 'metadata' => $xml->metadata, |
|
172 | - ); |
|
160 | + 'meetingID' => $xml->meetingID, |
|
161 | + 'moderatorPW' => $xml->moderatorPW, |
|
162 | + 'attendeePW' => $xml->attendeePW, |
|
163 | + 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
164 | + 'running' => $xml->running, |
|
165 | + 'recording' => $xml->recording, |
|
166 | + 'startTime' => $xml->startTime, |
|
167 | + 'endTime' => $xml->endTime, |
|
168 | + 'participantCount' => $xml->participantCount, |
|
169 | + 'moderatorCount' => $xml->moderatorCount, |
|
170 | + 'attendees' => $xml->attendees, |
|
171 | + 'metadata' => $xml->metadata, |
|
172 | + ); |
|
173 | 173 | } |
174 | 174 | if ($xml) { |
175 | 175 | // Either failure or success without meeting info. |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | function bigbluebuttonbn_get_default_config_xml() { |
306 | 306 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
307 | 307 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML') |
308 | - ); |
|
308 | + ); |
|
309 | 309 | return $xml; |
310 | 310 | } |
311 | 311 | |
@@ -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 | } |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | foreach ($ids as $id) { |
426 | 426 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
427 | 427 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish]) |
428 | - ); |
|
428 | + ); |
|
429 | 429 | if ($xml && $xml->returncode != 'SUCCESS') { |
430 | 430 | return false; |
431 | 431 | } |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | foreach ($ids as $id) { |
445 | 445 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
446 | 446 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
447 | - ); |
|
447 | + ); |
|
448 | 448 | if ($xml && $xml->returncode != 'SUCCESS') { |
449 | 449 | return false; |
450 | 450 | } |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | function bigbluebuttonbn_end_meeting($meetingid, $modpw) { |
462 | 462 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
463 | 463 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw]) |
464 | - ); |
|
464 | + ); |
|
465 | 465 | if ($xml) { |
466 | 466 | // If the xml packet returned failure it displays the message to the user. |
467 | 467 | return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | function bigbluebuttonbn_get_server_version() { |
479 | 479 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
480 | 480 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url() |
481 | - ); |
|
481 | + ); |
|
482 | 482 | if ($xml && $xml->returncode == 'SUCCESS') { |
483 | 483 | return $xml->version; |
484 | 484 | } |
@@ -545,10 +545,10 @@ discard block |
||
545 | 545 | } |
546 | 546 | $options = array(); |
547 | 547 | $options['CURLOPT_HTTPHEADER'] = array( |
548 | - 'Content-Type: '.$contenttype, |
|
549 | - 'Content-Length: '.strlen($data), |
|
550 | - 'Content-Language: en-US', |
|
551 | - ); |
|
548 | + 'Content-Type: '.$contenttype, |
|
549 | + 'Content-Length: '.strlen($data), |
|
550 | + 'Content-Language: en-US', |
|
551 | + ); |
|
552 | 552 | |
553 | 553 | return $c->post($url, $data, $options); |
554 | 554 | } |
@@ -695,16 +695,16 @@ discard block |
||
695 | 695 | 'all' => array( |
696 | 696 | 'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
697 | 697 | 'children' => [] |
698 | - ) |
|
699 | - ); |
|
698 | + ) |
|
699 | + ); |
|
700 | 700 | $data['role'] = array( |
701 | 701 | 'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
702 | 702 | 'children' => bigbluebuttonbn_get_roles_select($context) |
703 | - ); |
|
703 | + ); |
|
704 | 704 | $data['user'] = array( |
705 | 705 | 'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
706 | 706 | 'children' => bigbluebuttonbn_get_users_select($context) |
707 | - ); |
|
707 | + ); |
|
708 | 708 | return $data; |
709 | 709 | } |
710 | 710 | |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | 'selectiontype' => 'all', |
748 | 748 | 'selectionid' => 'all', |
749 | 749 | 'role' => BIGBLUEBUTTONBN_ROLE_VIEWER |
750 | - ); |
|
750 | + ); |
|
751 | 751 | $defaultrules = explode(',', \mod_bigbluebuttonbn\locallib\config::get('participant_moderator_default')); |
752 | 752 | foreach ($defaultrules as $defaultrule) { |
753 | 753 | if ($defaultrule == '0') { |
@@ -760,9 +760,9 @@ discard block |
||
760 | 760 | continue; |
761 | 761 | } |
762 | 762 | $participantlist[] = array( |
763 | - 'selectiontype' => 'role', |
|
764 | - 'selectionid' => $defaultrule, |
|
765 | - 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
763 | + 'selectiontype' => 'role', |
|
764 | + 'selectionid' => $defaultrule, |
|
765 | + 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
|
766 | 766 | } |
767 | 767 | return $participantlist; |
768 | 768 | } |
@@ -801,11 +801,11 @@ discard block |
||
801 | 801 | 'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'), |
802 | 802 | 'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'), |
803 | 803 | 'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'), |
804 | - ], |
|
804 | + ], |
|
805 | 805 | 'type_selected' => 'all', |
806 | 806 | 'options' => ['all' => '---------------'], |
807 | 807 | 'selected' => 'all', |
808 | - ]; |
|
808 | + ]; |
|
809 | 809 | } |
810 | 810 | |
811 | 811 | /** |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | $eventproperties['other'] = $options['other']; |
1083 | 1083 | } |
1084 | 1084 | $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
1085 | - array($eventproperties)); |
|
1085 | + array($eventproperties)); |
|
1086 | 1086 | $event->trigger(); |
1087 | 1087 | } |
1088 | 1088 | |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | // Ping again and refresh the cache. |
1127 | 1127 | $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
1128 | 1128 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1129 | - ); |
|
1129 | + ); |
|
1130 | 1130 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
1131 | 1131 | return $meetinginfo; |
1132 | 1132 | } |
@@ -1538,8 +1538,8 @@ discard block |
||
1538 | 1538 | } |
1539 | 1539 | $id = 'playbacks-'.$recording['recordID']; |
1540 | 1540 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
1541 | - 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1542 | - 'title' => $title, $visibility => $visibility)); |
|
1541 | + 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
|
1542 | + 'title' => $title, $visibility => $visibility)); |
|
1543 | 1543 | foreach ($recording['playbacks'] as $playback) { |
1544 | 1544 | $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback); |
1545 | 1545 | } |
@@ -1563,7 +1563,7 @@ discard block |
||
1563 | 1563 | } |
1564 | 1564 | $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
1565 | 1565 | $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
1566 | - '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1566 | + '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1567 | 1567 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
1568 | 1568 | $href .= '&href='.urlencode(trim($playback['url'])); |
1569 | 1569 | } |
@@ -1574,7 +1574,7 @@ discard block |
||
1574 | 1574 | 'data-action' => 'play', |
1575 | 1575 | 'data-target' => $playback['type'], |
1576 | 1576 | 'data-href' => $href, |
1577 | - ); |
|
1577 | + ); |
|
1578 | 1578 | if (!bigbluebuttonbn_is_bn_server() && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) { |
1579 | 1579 | $linkattributes['class'] = 'btn btn-sm btn-warning'; |
1580 | 1580 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
@@ -1724,10 +1724,10 @@ discard block |
||
1724 | 1724 | 'id' => $id, |
1725 | 1725 | 'onclick' => $onclick, |
1726 | 1726 | 'data-action' => $data['action'] |
1727 | - ); |
|
1727 | + ); |
|
1728 | 1728 | if (!isset($recording['imported'])) { |
1729 | 1729 | $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances( |
1730 | - $recording['recordID']); |
|
1730 | + $recording['recordID']); |
|
1731 | 1731 | } |
1732 | 1732 | if (isset($data['disabled'])) { |
1733 | 1733 | $iconattributes['class'] .= ' fa-' . $data['disabled']; |
@@ -2268,8 +2268,8 @@ discard block |
||
2268 | 2268 | $activitytime = ''; |
2269 | 2269 | if ($time) { |
2270 | 2270 | $activitytime = calendar_day_representation($time).' '. |
2271 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2272 | - calendar_time_representation($time); |
|
2271 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2272 | + calendar_time_representation($time); |
|
2273 | 2273 | } |
2274 | 2274 | return $activitytime; |
2275 | 2275 | } |
@@ -2365,7 +2365,7 @@ discard block |
||
2365 | 2365 | global $BIGBLUEBUTTONBN_CFG; |
2366 | 2366 | if (isset($BIGBLUEBUTTONBN_CFG)) { |
2367 | 2367 | $renderer->render_warning_message('general_warning', |
2368 | - get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2368 | + get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn')); |
|
2369 | 2369 | } |
2370 | 2370 | } |
2371 | 2371 | |
@@ -2573,7 +2573,7 @@ discard block |
||
2573 | 2573 | $renderer->render_group_element('participant_moderator_default', |
2574 | 2574 | $renderer->render_group_element_configmultiselect('participant_moderator_default', |
2575 | 2575 | array_keys($owner), array_merge($owner, $roles)) |
2576 | - ); |
|
2576 | + ); |
|
2577 | 2577 | } |
2578 | 2578 | } |
2579 | 2579 | |
@@ -2611,7 +2611,7 @@ discard block |
||
2611 | 2611 | $default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
2612 | 2612 | |
2613 | 2613 | $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
2614 | - BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
2614 | + BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
2615 | 2615 | $renderer->render_group_element('clienttype_default', |
2616 | 2616 | $renderer->render_group_element_configselect('clienttype_default', |
2617 | 2617 | $default, $choices)); |
@@ -2702,7 +2702,7 @@ discard block |
||
2702 | 2702 | return $output; |
2703 | 2703 | } |
2704 | 2704 | $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
2705 | - 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2705 | + 'bigbluebuttonbn_view_general_warning') . "\n"; |
|
2706 | 2706 | $output .= ' ' . $message . "\n"; |
2707 | 2707 | $output .= ' <div class="singlebutton pull-right">' . "\n"; |
2708 | 2708 | if (!empty($href)) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | global $CFG; |
30 | 30 | |
31 | -require_once(dirname(__FILE__).'/lib.php'); |
|
31 | +require_once(dirname(__FILE__) . '/lib.php'); |
|
32 | 32 | |
33 | 33 | /** @var BIGBLUEBUTTONBN_UPDATE_CACHE boolean set to true indicates that cache has to be updated */ |
34 | 34 | const BIGBLUEBUTTONBN_UPDATE_CACHE = true; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | 'logoutURL' => $logouturl, |
100 | 100 | ]; |
101 | 101 | // Choose between Adobe Flash or HTML5 Client. |
102 | - if ( $clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5 ) { |
|
102 | + if ($clienttype == BIGBLUEBUTTON_CLIENTTYPE_HTML5) { |
|
103 | 103 | $data['joinViaHtml5'] = 'true'; |
104 | 104 | } |
105 | 105 | |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | $data = null; |
129 | 129 | if (!is_null($pname) && !is_null($purl)) { |
130 | 130 | $method = 'POST'; |
131 | - $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='". |
|
132 | - $purl."' /></module></modules>"; |
|
131 | + $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='" . |
|
132 | + $purl . "' /></module></modules>"; |
|
133 | 133 | } |
134 | 134 | $xml = bigbluebuttonbn_wrap_xml_load_file($createmeetingurl, $method, $data); |
135 | 135 | if ($xml) { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | // Override imported flag with actual ID. |
291 | 291 | $recording['imported'] = $recordimported->id; |
292 | 292 | if (isset($recordimported->protected)) { |
293 | - $recording['protected'] = (string) $recordimported->protected; |
|
293 | + $recording['protected'] = (string)$recordimported->protected; |
|
294 | 294 | } |
295 | 295 | $recordsimportedarray[$recording['recordID']] = $recording; |
296 | 296 | } |
@@ -320,21 +320,21 @@ discard block |
||
320 | 320 | // Add formats. |
321 | 321 | $playbackarray = array(); |
322 | 322 | foreach ($recording->playback->format as $format) { |
323 | - $playbackarray[(string) $format->type] = array('type' => (string) $format->type, |
|
324 | - 'url' => trim((string) $format->url), 'length' => (string) $format->length); |
|
323 | + $playbackarray[(string)$format->type] = array('type' => (string)$format->type, |
|
324 | + 'url' => trim((string)$format->url), 'length' => (string)$format->length); |
|
325 | 325 | // Add preview per format when existing. |
326 | 326 | if ($format->preview) { |
327 | - $playbackarray[(string) $format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview); |
|
327 | + $playbackarray[(string)$format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview); |
|
328 | 328 | } |
329 | 329 | } |
330 | 330 | // Add the metadata to the recordings array. |
331 | 331 | $metadataarray = bigbluebuttonbn_get_recording_array_meta(get_object_vars($recording->metadata)); |
332 | - $recordingarray = array('recordID' => (string) $recording->recordID, |
|
333 | - 'meetingID' => (string) $recording->meetingID, 'meetingName' => (string) $recording->name, |
|
334 | - 'published' => (string) $recording->published, 'startTime' => (string) $recording->startTime, |
|
335 | - 'endTime' => (string) $recording->endTime, 'playbacks' => $playbackarray); |
|
332 | + $recordingarray = array('recordID' => (string)$recording->recordID, |
|
333 | + 'meetingID' => (string)$recording->meetingID, 'meetingName' => (string)$recording->name, |
|
334 | + 'published' => (string)$recording->published, 'startTime' => (string)$recording->startTime, |
|
335 | + 'endTime' => (string)$recording->endTime, 'playbacks' => $playbackarray); |
|
336 | 336 | if (isset($recording->protected)) { |
337 | - $recordingarray['protected'] = (string) $recording->protected; |
|
337 | + $recordingarray['protected'] = (string)$recording->protected; |
|
338 | 338 | } |
339 | 339 | return $recordingarray + $metadataarray; |
340 | 340 | } |
@@ -349,9 +349,9 @@ discard block |
||
349 | 349 | function bigbluebuttonbn_get_recording_preview_images($preview) { |
350 | 350 | $imagesarray = array(); |
351 | 351 | foreach ($preview->images->image as $image) { |
352 | - $imagearray = array('url' => trim((string) $image)); |
|
352 | + $imagearray = array('url' => trim((string)$image)); |
|
353 | 353 | foreach ($image->attributes() as $attkey => $attvalue) { |
354 | - $imagearray[$attkey] = (string) $attvalue; |
|
354 | + $imagearray[$attkey] = (string)$attvalue; |
|
355 | 355 | } |
356 | 356 | array_push($imagesarray, $imagearray); |
357 | 357 | } |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | if (is_object($value)) { |
372 | 372 | $value = ''; |
373 | 373 | } |
374 | - $metadataarray['meta_'.$key] = $value; |
|
374 | + $metadataarray['meta_' . $key] = $value; |
|
375 | 375 | } |
376 | 376 | return $metadataarray; |
377 | 377 | } |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | $ids = explode(',', $recordids); |
444 | 444 | foreach ($ids as $id) { |
445 | 445 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
446 | - \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
|
446 | + \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array)$params) |
|
447 | 447 | ); |
448 | 448 | if ($xml && $xml->returncode != 'SUCCESS') { |
449 | 449 | return false; |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | return $xml; |
509 | 509 | } catch (Exception $e) { |
510 | 510 | libxml_use_internal_errors($previous); |
511 | - $error = 'Caught exception: '.$e->getMessage(); |
|
511 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
512 | 512 | debugging($error, DEBUG_DEVELOPER); |
513 | 513 | return null; |
514 | 514 | } |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | $response = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOBLANKS); |
520 | 520 | return $response; |
521 | 521 | } catch (Exception $e) { |
522 | - $error = 'Caught exception: '.$e->getMessage(); |
|
522 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
523 | 523 | debugging($error, DEBUG_DEVELOPER); |
524 | 524 | libxml_use_internal_errors($previous); |
525 | 525 | return null; |
@@ -545,8 +545,8 @@ discard block |
||
545 | 545 | } |
546 | 546 | $options = array(); |
547 | 547 | $options['CURLOPT_HTTPHEADER'] = array( |
548 | - 'Content-Type: '.$contenttype, |
|
549 | - 'Content-Length: '.strlen($data), |
|
548 | + 'Content-Type: ' . $contenttype, |
|
549 | + 'Content-Length: ' . strlen($data), |
|
550 | 550 | 'Content-Language: en-US', |
551 | 551 | ); |
552 | 552 | |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | * @return void |
568 | 568 | */ |
569 | 569 | function bigbluebuttonbn_end_meeting_if_running($bigbluebuttonbn) { |
570 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id; |
|
570 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id; |
|
571 | 571 | if (bigbluebuttonbn_is_meeting_running($meetingid)) { |
572 | 572 | bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass); |
573 | 573 | } |
@@ -587,9 +587,9 @@ discard block |
||
587 | 587 | if ($userroles) { |
588 | 588 | $where = ''; |
589 | 589 | foreach ($userroles as $userrole) { |
590 | - $where .= (empty($where) ? ' WHERE' : ' OR').' id=' . $userrole->roleid; |
|
590 | + $where .= (empty($where) ? ' WHERE' : ' OR') . ' id=' . $userrole->roleid; |
|
591 | 591 | } |
592 | - $userroles = $DB->get_records_sql('SELECT * FROM {role}'.$where); |
|
592 | + $userroles = $DB->get_records_sql('SELECT * FROM {role}' . $where); |
|
593 | 593 | } |
594 | 594 | return $userroles; |
595 | 595 | } |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | * @return array $users |
613 | 613 | */ |
614 | 614 | function bigbluebuttonbn_get_users(context $context = null) { |
615 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
615 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
616 | 616 | foreach ($users as $key => $value) { |
617 | 617 | $users[$key] = fullname($value); |
618 | 618 | } |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | * @return array $users |
628 | 628 | */ |
629 | 629 | function bigbluebuttonbn_get_users_select(context $context = null) { |
630 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
630 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
631 | 631 | foreach ($users as $key => $value) { |
632 | 632 | $users[$key] = array('id' => $value->id, 'name' => fullname($value)); |
633 | 633 | } |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | * @return array $roles |
643 | 643 | */ |
644 | 644 | function bigbluebuttonbn_get_roles(context $context = null) { |
645 | - $roles = (array) role_get_names($context); |
|
645 | + $roles = (array)role_get_names($context); |
|
646 | 646 | foreach ($roles as $key => $value) { |
647 | 647 | $roles[$key] = $value->localname; |
648 | 648 | } |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | * @return array $users |
658 | 658 | */ |
659 | 659 | function bigbluebuttonbn_get_roles_select(context $context = null) { |
660 | - $roles = (array) role_get_names($context); |
|
660 | + $roles = (array)role_get_names($context); |
|
661 | 661 | foreach ($roles as $key => $value) { |
662 | 662 | $roles[$key] = array('id' => $value->id, 'name' => $value->localname); |
663 | 663 | } |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | * @return object $role |
673 | 673 | */ |
674 | 674 | function bigbluebuttonbn_get_role($id) { |
675 | - $roles = (array) role_get_names(); |
|
675 | + $roles = (array)role_get_names(); |
|
676 | 676 | if (is_numeric($id) && isset($roles[$id])) { |
677 | 677 | return (object)$roles[$id]; |
678 | 678 | } |
@@ -829,7 +829,7 @@ discard block |
||
829 | 829 | if (!isguestuser()) { |
830 | 830 | $userroles = bigbluebuttonbn_get_user_roles($context, $userid); |
831 | 831 | } |
832 | - return bigbluebuttonbn_is_moderator_validator($participantlist, $userid , $userroles); |
|
832 | + return bigbluebuttonbn_is_moderator_validator($participantlist, $userid, $userroles); |
|
833 | 833 | } |
834 | 834 | |
835 | 835 | /** |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | function bigbluebuttonbn_generate_nonce() { |
986 | 986 | $mt = microtime(); |
987 | 987 | $rand = mt_rand(); |
988 | - return md5($mt.$rand); |
|
988 | + return md5($mt . $rand); |
|
989 | 989 | } |
990 | 990 | |
991 | 991 | /** |
@@ -1011,21 +1011,21 @@ discard block |
||
1011 | 1011 | */ |
1012 | 1012 | function bigbluebuttonbn_events() { |
1013 | 1013 | return array( |
1014 | - (string) BIGBLUEBUTTON_EVENT_ACTIVITY_VIEWED, |
|
1015 | - (string) BIGBLUEBUTTON_EVENT_ACTIVITY_MANAGEMENT_VIEWED, |
|
1016 | - (string) BIGBLUEBUTTON_EVENT_LIVE_SESSION, |
|
1017 | - (string) BIGBLUEBUTTON_EVENT_MEETING_CREATED, |
|
1018 | - (string) BIGBLUEBUTTON_EVENT_MEETING_ENDED, |
|
1019 | - (string) BIGBLUEBUTTON_EVENT_MEETING_JOINED, |
|
1020 | - (string) BIGBLUEBUTTON_EVENT_MEETING_LEFT, |
|
1021 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_DELETED, |
|
1022 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_IMPORTED, |
|
1023 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_PROTECTED, |
|
1024 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_PUBLISHED, |
|
1025 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_UNPROTECTED, |
|
1026 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_UNPUBLISHED, |
|
1027 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_EDITED, |
|
1028 | - (string) BIGBLUEBUTTON_EVENT_RECORDING_VIEWED |
|
1014 | + (string)BIGBLUEBUTTON_EVENT_ACTIVITY_VIEWED, |
|
1015 | + (string)BIGBLUEBUTTON_EVENT_ACTIVITY_MANAGEMENT_VIEWED, |
|
1016 | + (string)BIGBLUEBUTTON_EVENT_LIVE_SESSION, |
|
1017 | + (string)BIGBLUEBUTTON_EVENT_MEETING_CREATED, |
|
1018 | + (string)BIGBLUEBUTTON_EVENT_MEETING_ENDED, |
|
1019 | + (string)BIGBLUEBUTTON_EVENT_MEETING_JOINED, |
|
1020 | + (string)BIGBLUEBUTTON_EVENT_MEETING_LEFT, |
|
1021 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_DELETED, |
|
1022 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_IMPORTED, |
|
1023 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_PROTECTED, |
|
1024 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_PUBLISHED, |
|
1025 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_UNPROTECTED, |
|
1026 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_UNPUBLISHED, |
|
1027 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_EDITED, |
|
1028 | + (string)BIGBLUEBUTTON_EVENT_RECORDING_VIEWED |
|
1029 | 1029 | ); |
1030 | 1030 | } |
1031 | 1031 | |
@@ -1036,21 +1036,21 @@ discard block |
||
1036 | 1036 | */ |
1037 | 1037 | function bigbluebuttonbn_events_action() { |
1038 | 1038 | return array( |
1039 | - 'view' => (string) BIGBLUEBUTTON_EVENT_ACTIVITY_VIEWED, |
|
1040 | - 'view_management' => (string) BIGBLUEBUTTON_EVENT_ACTIVITY_MANAGEMENT_VIEWED, |
|
1041 | - 'live_action' => (string) BIGBLUEBUTTON_EVENT_LIVE_SESSION, |
|
1042 | - 'meeting_create' => (string) BIGBLUEBUTTON_EVENT_MEETING_CREATED, |
|
1043 | - 'meeting_end' => (string) BIGBLUEBUTTON_EVENT_MEETING_ENDED, |
|
1044 | - 'meeting_join' => (string) BIGBLUEBUTTON_EVENT_MEETING_JOINED, |
|
1045 | - 'meeting_left' => (string) BIGBLUEBUTTON_EVENT_MEETING_LEFT, |
|
1046 | - 'recording_delete' => (string) BIGBLUEBUTTON_EVENT_RECORDING_DELETED, |
|
1047 | - 'recording_import' => (string) BIGBLUEBUTTON_EVENT_RECORDING_IMPORTED, |
|
1048 | - 'recording_protect' => (string) BIGBLUEBUTTON_EVENT_RECORDING_PROTECTED, |
|
1049 | - 'recording_publish' => (string) BIGBLUEBUTTON_EVENT_RECORDING_PUBLISHED, |
|
1050 | - 'recording_unprotect' => (string) BIGBLUEBUTTON_EVENT_RECORDING_UNPROTECTED, |
|
1051 | - 'recording_unpublish' => (string) BIGBLUEBUTTON_EVENT_RECORDING_UNPUBLISHED, |
|
1052 | - 'recording_edit' => (string) BIGBLUEBUTTON_EVENT_RECORDING_EDITED, |
|
1053 | - 'recording_play' => (string) BIGBLUEBUTTON_EVENT_RECORDING_VIEWED |
|
1039 | + 'view' => (string)BIGBLUEBUTTON_EVENT_ACTIVITY_VIEWED, |
|
1040 | + 'view_management' => (string)BIGBLUEBUTTON_EVENT_ACTIVITY_MANAGEMENT_VIEWED, |
|
1041 | + 'live_action' => (string)BIGBLUEBUTTON_EVENT_LIVE_SESSION, |
|
1042 | + 'meeting_create' => (string)BIGBLUEBUTTON_EVENT_MEETING_CREATED, |
|
1043 | + 'meeting_end' => (string)BIGBLUEBUTTON_EVENT_MEETING_ENDED, |
|
1044 | + 'meeting_join' => (string)BIGBLUEBUTTON_EVENT_MEETING_JOINED, |
|
1045 | + 'meeting_left' => (string)BIGBLUEBUTTON_EVENT_MEETING_LEFT, |
|
1046 | + 'recording_delete' => (string)BIGBLUEBUTTON_EVENT_RECORDING_DELETED, |
|
1047 | + 'recording_import' => (string)BIGBLUEBUTTON_EVENT_RECORDING_IMPORTED, |
|
1048 | + 'recording_protect' => (string)BIGBLUEBUTTON_EVENT_RECORDING_PROTECTED, |
|
1049 | + 'recording_publish' => (string)BIGBLUEBUTTON_EVENT_RECORDING_PUBLISHED, |
|
1050 | + 'recording_unprotect' => (string)BIGBLUEBUTTON_EVENT_RECORDING_UNPROTECTED, |
|
1051 | + 'recording_unpublish' => (string)BIGBLUEBUTTON_EVENT_RECORDING_UNPUBLISHED, |
|
1052 | + 'recording_edit' => (string)BIGBLUEBUTTON_EVENT_RECORDING_EDITED, |
|
1053 | + 'recording_play' => (string)BIGBLUEBUTTON_EVENT_RECORDING_VIEWED |
|
1054 | 1054 | ); |
1055 | 1055 | } |
1056 | 1056 | |
@@ -1081,7 +1081,7 @@ discard block |
||
1081 | 1081 | if (array_key_exists('other', $options)) { |
1082 | 1082 | $eventproperties['other'] = $options['other']; |
1083 | 1083 | } |
1084 | - $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create', |
|
1084 | + $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_' . $eventtype . '::create', |
|
1085 | 1085 | array($eventproperties)); |
1086 | 1086 | $event->trigger(); |
1087 | 1087 | } |
@@ -1121,10 +1121,10 @@ discard block |
||
1121 | 1121 | $now = time(); |
1122 | 1122 | if (!$updatecache && isset($result) && $now < ($result['creation_time'] + $cachettl)) { |
1123 | 1123 | // Use the value in the cache. |
1124 | - return (array) json_decode($result['meeting_info']); |
|
1124 | + return (array)json_decode($result['meeting_info']); |
|
1125 | 1125 | } |
1126 | 1126 | // Ping again and refresh the cache. |
1127 | - $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
|
1127 | + $meetinginfo = (array)bigbluebuttonbn_wrap_xml_load_file( |
|
1128 | 1128 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1129 | 1129 | ); |
1130 | 1130 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
@@ -1235,7 +1235,7 @@ discard block |
||
1235 | 1235 | * @return object |
1236 | 1236 | */ |
1237 | 1237 | function bigbluebuttonbn_set_config_xml($meetingid, $configxml) { |
1238 | - $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?'; |
|
1238 | + $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?'; |
|
1239 | 1239 | $configxmlparams = bigbluebuttonbn_set_config_xml_params($meetingid, $configxml); |
1240 | 1240 | $xml = bigbluebuttonbn_wrap_xml_load_file($urldefaultconfig, 'POST', |
1241 | 1241 | $configxmlparams, 'application/x-www-form-urlencoded'); |
@@ -1251,8 +1251,8 @@ discard block |
||
1251 | 1251 | * @return string |
1252 | 1252 | */ |
1253 | 1253 | function bigbluebuttonbn_set_config_xml_params($meetingid, $configxml) { |
1254 | - $params = 'configXML='.urlencode($configxml).'&meetingID='.urlencode($meetingid); |
|
1255 | - $configxmlparams = $params.'&checksum='.sha1('setConfigXML'.$params.\mod_bigbluebuttonbn\locallib\config::get('shared_secret')); |
|
1254 | + $params = 'configXML=' . urlencode($configxml) . '&meetingID=' . urlencode($meetingid); |
|
1255 | + $configxmlparams = $params . '&checksum=' . sha1('setConfigXML' . $params . \mod_bigbluebuttonbn\locallib\config::get('shared_secret')); |
|
1256 | 1256 | return $configxmlparams; |
1257 | 1257 | } |
1258 | 1258 | |
@@ -1266,7 +1266,7 @@ discard block |
||
1266 | 1266 | */ |
1267 | 1267 | function bigbluebuttonbn_set_config_xml_array($meetingid, $configxml) { |
1268 | 1268 | $configxml = bigbluebuttonbn_setConfigXML($meetingid, $configxml); |
1269 | - $configxmlarray = (array) $configxml; |
|
1269 | + $configxmlarray = (array)$configxml; |
|
1270 | 1270 | if ($configxmlarray['returncode'] != 'SUCCESS') { |
1271 | 1271 | debugging('BigBlueButton was not able to set the custom config.xml file', DEBUG_DEVELOPER); |
1272 | 1272 | return ''; |
@@ -1358,7 +1358,7 @@ discard block |
||
1358 | 1358 | global $USER; |
1359 | 1359 | $starttime = $starttime - ($starttime % 1000); |
1360 | 1360 | // Set formatted date. |
1361 | - $dateformat = get_string('strftimerecentfull', 'langconfig').' %Z'; |
|
1361 | + $dateformat = get_string('strftimerecentfull', 'langconfig') . ' %Z'; |
|
1362 | 1362 | return userdate($starttime / 1000, $dateformat, usertimezone($USER->timezone)); |
1363 | 1363 | } |
1364 | 1364 | |
@@ -1474,7 +1474,7 @@ discard block |
||
1474 | 1474 | * @return string |
1475 | 1475 | */ |
1476 | 1476 | function bigbluebuttonbn_get_recording_data_row_preview($recording) { |
1477 | - $options = array('id' => 'preview-'.$recording['recordID']); |
|
1477 | + $options = array('id' => 'preview-' . $recording['recordID']); |
|
1478 | 1478 | if ($recording['published'] === 'false') { |
1479 | 1479 | $options['hidden'] = 'hidden'; |
1480 | 1480 | } |
@@ -1536,7 +1536,7 @@ discard block |
||
1536 | 1536 | if ($recording['published'] === 'false') { |
1537 | 1537 | $visibility = 'hidden '; |
1538 | 1538 | } |
1539 | - $id = 'playbacks-'.$recording['recordID']; |
|
1539 | + $id = 'playbacks-' . $recording['recordID']; |
|
1540 | 1540 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
1541 | 1541 | 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
1542 | 1542 | 'title' => $title, $visibility => $visibility)); |
@@ -1561,11 +1561,11 @@ discard block |
||
1561 | 1561 | if (!bigbluebuttonbn_include_recording_data_row_type($recording, $bbbsession, $playback)) { |
1562 | 1562 | return ''; |
1563 | 1563 | } |
1564 | - $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn'); |
|
1564 | + $text = get_string('view_recording_format_' . $playback['type'], 'bigbluebuttonbn'); |
|
1565 | 1565 | $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
1566 | - '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1566 | + '&mid=' . $recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
1567 | 1567 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
1568 | - $href .= '&href='.urlencode(trim($playback['url'])); |
|
1568 | + $href .= '&href=' . urlencode(trim($playback['url'])); |
|
1569 | 1569 | } |
1570 | 1570 | $linkattributes = array( |
1571 | 1571 | 'id' => 'recording-play-' . $playback['type'] . '-' . $recording['recordID'], |
@@ -1734,7 +1734,7 @@ discard block |
||
1734 | 1734 | $linkattributes['class'] = 'disabled'; |
1735 | 1735 | unset($linkattributes['onclick']); |
1736 | 1736 | } |
1737 | - $icon = new pix_icon('i/'.$data['tag'], |
|
1737 | + $icon = new pix_icon('i/' . $data['tag'], |
|
1738 | 1738 | get_string('view_recording_list_actionbar_' . $data['action'], 'bigbluebuttonbn'), |
1739 | 1739 | 'moodle', $iconattributes); |
1740 | 1740 | return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false); |
@@ -1851,7 +1851,7 @@ discard block |
||
1851 | 1851 | */ |
1852 | 1852 | function bigbluebuttonbn_get_recording_table_row($bbbsession, $recording, $rowdata) { |
1853 | 1853 | $row = new html_table_row(); |
1854 | - $row->id = 'recording-tr-'.$recording['recordID']; |
|
1854 | + $row->id = 'recording-tr-' . $recording['recordID']; |
|
1855 | 1855 | $row->attributes['data-imported'] = 'false'; |
1856 | 1856 | $texthead = ''; |
1857 | 1857 | $texttail = ''; |
@@ -1911,9 +1911,9 @@ discard block |
||
1911 | 1911 | function bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn) { |
1912 | 1912 | $sender = get_admin(); |
1913 | 1913 | // Prepare message. |
1914 | - $messagetext = '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn'). |
|
1915 | - ' "' . $bigbluebuttonbn->name . '" '. |
|
1916 | - get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn').'.</p>'; |
|
1914 | + $messagetext = '<p>' . get_string('email_body_recording_ready_for', 'bigbluebuttonbn') . |
|
1915 | + ' "' . $bigbluebuttonbn->name . '" ' . |
|
1916 | + get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn') . '.</p>'; |
|
1917 | 1917 | $context = context_course::instance($bigbluebuttonbn->course); |
1918 | 1918 | \mod_bigbluebuttonbn\locallib\notifier::notification_send($context, $sender, $bigbluebuttonbn, $messagetext); |
1919 | 1919 | } |
@@ -2135,7 +2135,7 @@ discard block |
||
2135 | 2135 | } |
2136 | 2136 | // Prepare select for loading records based on existent bigbluebuttonbns. |
2137 | 2137 | $sql = 'SELECT DISTINCT meetingid, bigbluebuttonbnid FROM {bigbluebuttonbn_logs} WHERE '; |
2138 | - $sql .= '(bigbluebuttonbnid='.implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)).')'; |
|
2138 | + $sql .= '(bigbluebuttonbnid=' . implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)) . ')'; |
|
2139 | 2139 | // Include only Create events and exclude those with record not true. |
2140 | 2140 | $sql .= ' AND log = ? AND meta LIKE ? AND meta LIKE ?'; |
2141 | 2141 | // Execute select for loading records based on existent bigbluebuttonbns. |
@@ -2267,8 +2267,8 @@ discard block |
||
2267 | 2267 | function bigbluebuttonbn_format_activity_time($time) { |
2268 | 2268 | $activitytime = ''; |
2269 | 2269 | if ($time) { |
2270 | - $activitytime = calendar_day_representation($time).' '. |
|
2271 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
2270 | + $activitytime = calendar_day_representation($time) . ' ' . |
|
2271 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn') . ' ' . |
|
2272 | 2272 | calendar_time_representation($time); |
2273 | 2273 | } |
2274 | 2274 | return $activitytime; |
@@ -2694,7 +2694,7 @@ discard block |
||
2694 | 2694 | * |
2695 | 2695 | * @return string |
2696 | 2696 | */ |
2697 | -function bigbluebuttonbn_render_warning($message, $type='info', $href='', $text='', $class='') { |
|
2697 | +function bigbluebuttonbn_render_warning($message, $type = 'info', $href = '', $text = '', $class = '') { |
|
2698 | 2698 | global $OUTPUT; |
2699 | 2699 | $output = "\n"; |
2700 | 2700 | // Evaluates if config_warning is enabled. |
@@ -2733,11 +2733,11 @@ discard block |
||
2733 | 2733 | if ($class == '') { |
2734 | 2734 | $class = 'btn btn-secondary'; |
2735 | 2735 | } |
2736 | - $output = ' <form method="post" action="' . $href . '" class="form-inline">'."\n"; |
|
2737 | - $output .= ' <button type="submit" class="' . $class . '"'."\n"; |
|
2738 | - $output .= ' title="' . $title . '"'."\n"; |
|
2739 | - $output .= ' >' . $text . '</button>'."\n"; |
|
2740 | - $output .= ' </form>'."\n"; |
|
2736 | + $output = ' <form method="post" action="' . $href . '" class="form-inline">' . "\n"; |
|
2737 | + $output .= ' <button type="submit" class="' . $class . '"' . "\n"; |
|
2738 | + $output .= ' title="' . $title . '"' . "\n"; |
|
2739 | + $output .= ' >' . $text . '</button>' . "\n"; |
|
2740 | + $output .= ' </form>' . "\n"; |
|
2741 | 2741 | return $output; |
2742 | 2742 | } |
2743 | 2743 |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | * @author Fred Dixon (ffdixon [at] blindsidenetworks [dt] com) |
25 | 25 | */ |
26 | 26 | |
27 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
28 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
27 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
28 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
29 | 29 | |
30 | 30 | $id = required_param('id', PARAM_INT); |
31 | 31 | $a = optional_param('a', 0, PARAM_INT); |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | if ($moderator || $administrator) { |
90 | 90 | bigbluebuttonbn_event_log(BIGBLUEBUTTON_EVENT_MEETING_ENDED, $bigbluebuttonbn, $cm); |
91 | 91 | echo get_string('index_ending', 'bigbluebuttonbn'); |
92 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id; |
|
92 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id; |
|
93 | 93 | if ($g != '0') { |
94 | - $meetingid .= '['.$g.']'; |
|
94 | + $meetingid .= '[' . $g . ']'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass); |
98 | - redirect('index.php?id='.$id); |
|
98 | + redirect('index.php?id=' . $id); |
|
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | // Add a the data for the bigbluebuttonbn instance. |
111 | 111 | $groupobj = null; |
112 | 112 | if (groups_get_activity_groupmode($cm) > 0) { |
113 | - $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants')); |
|
113 | + $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants')); |
|
114 | 114 | } |
115 | 115 | $table->data[] = bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj); |
116 | 116 | // Add a the data for the groups belonging to the bigbluebuttonbn instance, if any. |
@@ -136,12 +136,12 @@ discard block |
||
136 | 136 | * @return array |
137 | 137 | */ |
138 | 138 | function bigbluebuttonbn_index_display_room($moderator, $course, $bigbluebuttonbn, $groupobj = null) { |
139 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id; |
|
139 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id; |
|
140 | 140 | $paramgroup = ''; |
141 | 141 | $groupname = ''; |
142 | 142 | if ($groupobj) { |
143 | - $meetingid .= '['.$groupobj->id.']'; |
|
144 | - $paramgroup = '&group='.$groupobj->id; |
|
143 | + $meetingid .= '[' . $groupobj->id . ']'; |
|
144 | + $paramgroup = '&group=' . $groupobj->id; |
|
145 | 145 | $groupname = $groupobj->name; |
146 | 146 | } |
147 | 147 | $meetinginfo = bigbluebuttonbn_get_meeting_info_array($meetingid); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | return; |
157 | 157 | } |
158 | 158 | // Output Users in the meeting. |
159 | - $joinurl = '<a href="view.php?id='.$bigbluebuttonbn->coursemodule.$paramgroup.'">'.format_string($bigbluebuttonbn->name).'</a>'; |
|
159 | + $joinurl = '<a href="view.php?id=' . $bigbluebuttonbn->coursemodule . $paramgroup . '">' . format_string($bigbluebuttonbn->name) . '</a>'; |
|
160 | 160 | $group = $groupname; |
161 | 161 | $users = ''; |
162 | 162 | $viewerlist = ''; |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | $attendeecount = 0; |
202 | 202 | foreach ($meetinginfo['attendees']->attendee as $attendee) { |
203 | 203 | if ($attendee->role == $role) { |
204 | - $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName; |
|
204 | + $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName; |
|
205 | 205 | } |
206 | 206 | } |
207 | 207 | } |
@@ -235,17 +235,17 @@ discard block |
||
235 | 235 | function bigbluebuttonbn_index_display_room_actions($moderator, $course, $bigbluebuttonbn, $groupobj = null) { |
236 | 236 | $actions = ''; |
237 | 237 | if ($moderator) { |
238 | - $actions .= '<form name="form1" method="post" action="">'."\n"; |
|
239 | - $actions .= ' <INPUT type="hidden" name="id" value="'.$course->id.'">'."\n"; |
|
240 | - $actions .= ' <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'."\n"; |
|
238 | + $actions .= '<form name="form1" method="post" action="">' . "\n"; |
|
239 | + $actions .= ' <INPUT type="hidden" name="id" value="' . $course->id . '">' . "\n"; |
|
240 | + $actions .= ' <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . "\n"; |
|
241 | 241 | if ($groupobj != null) { |
242 | - $actions .= ' <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n"; |
|
242 | + $actions .= ' <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . "\n"; |
|
243 | 243 | } |
244 | 244 | $actions .= ' <INPUT type="submit" name="submit" value="' . |
245 | 245 | get_string('view_conference_action_end', 'bigbluebuttonbn') . |
246 | 246 | '" class="btn btn-primary btn-sm" onclick="return confirm(\'' . |
247 | 247 | get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n"; |
248 | - $actions .= '</form>'."\n"; |
|
248 | + $actions .= '</form>' . "\n"; |
|
249 | 249 | } |
250 | 250 | return $actions; |
251 | 251 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $params .= '&' . $key . '=' . urlencode($value); |
53 | 53 | } |
54 | 54 | foreach ($metadata as $key => $value) { |
55 | - $params .= '&' . 'meta_' . $key.'=' . urlencode($value); |
|
55 | + $params .= '&' . 'meta_' . $key . '=' . urlencode($value); |
|
56 | 56 | } |
57 | 57 | return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret()); |
58 | 58 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | protected function init() { |
42 | 42 | parent::init(); |
43 | - $this->description = "The user with id '##userid' has deleted a recording with id ". |
|
43 | + $this->description = "The user with id '##userid' has deleted a recording with id " . |
|
44 | 44 | "'##other' from the course id '##contextinstanceid'."; |
45 | 45 | } |
46 | 46 |
@@ -40,8 +40,8 @@ |
||
40 | 40 | */ |
41 | 41 | protected function init() { |
42 | 42 | parent::init(); |
43 | - $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
44 | - "'##objectid' for the course id '##contextinstanceid' has been forcibly ". |
|
43 | + $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
44 | + "'##objectid' for the course id '##contextinstanceid' has been forcibly " . |
|
45 | 45 | "ended by the user with id '##userid'."; |
46 | 46 | } |
47 | 47 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | protected function init() { |
42 | 42 | parent::init(); |
43 | - $this->description = "The user with id '##userid' has edited a recording with id ". |
|
43 | + $this->description = "The user with id '##userid' has edited a recording with id " . |
|
44 | 44 | "'##other' in the course id '##contextinstanceid'."; |
45 | 45 | } |
46 | 46 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | protected function init() { |
42 | 42 | parent::init(); |
43 | - $this->description = "The user with id '##userid' has published a recording with id ". |
|
43 | + $this->description = "The user with id '##userid' has published a recording with id " . |
|
44 | 44 | "'##other' in the course id '##contextinstanceid'."; |
45 | 45 | } |
46 | 46 |