@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * $return->time = the time they did it |
227 | 227 | * $return->info = a short text description. |
228 | 228 | * |
229 | - * @return bool |
|
229 | + * @return string |
|
230 | 230 | */ |
231 | 231 | function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) { |
232 | 232 | global $DB; |
@@ -315,6 +315,9 @@ discard block |
||
315 | 315 | } |
316 | 316 | } |
317 | 317 | |
318 | +/** |
|
319 | + * @param integer $now |
|
320 | + */ |
|
318 | 321 | function bigbluebuttonbn_print_overview_element($bigbluebuttonbn, $now) { |
319 | 322 | global $CFG; |
320 | 323 | |
@@ -550,6 +553,11 @@ discard block |
||
550 | 553 | send_stored_file($file, 0, 0, $forcedownload, $options); // download MUST be forced - security! |
551 | 554 | } |
552 | 555 | |
556 | +/** |
|
557 | + * @param stdClass $course |
|
558 | + * @param stdClass $cm |
|
559 | + * @param stdClass $context |
|
560 | + */ |
|
553 | 561 | function bigbluebuttonbn_pluginfile_filename($course, $cm, $context, $args) { |
554 | 562 | global $DB; |
555 | 563 | |
@@ -644,6 +652,9 @@ discard block |
||
644 | 652 | bigbluebuttonbn_notification_send($USER, $bigbluebuttonbn, bigbluebuttonbn_notification_msg_html($msg)); |
645 | 653 | } |
646 | 654 | |
655 | +/** |
|
656 | + * @param stdClass $msg |
|
657 | + */ |
|
647 | 658 | function bigbluebuttonbn_notification_msg_html($msg) { |
648 | 659 | $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '. |
649 | 660 | get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | global $DB; |
233 | 233 | |
234 | 234 | $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id, |
235 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
236 | - 'userid' => $user->id, |
|
237 | - 'log' => 'Join', ), '*'); |
|
235 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
236 | + 'userid' => $user->id, |
|
237 | + 'log' => 'Join', ), '*'); |
|
238 | 238 | |
239 | 239 | if ($completed > 0) { |
240 | 240 | return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '. |
@@ -254,9 +254,9 @@ discard block |
||
254 | 254 | function bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn) { |
255 | 255 | global $DB; |
256 | 256 | $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id, |
257 | - 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
258 | - 'userid' => $user->id, |
|
259 | - 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
257 | + 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
|
258 | + 'userid' => $user->id, |
|
259 | + 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
260 | 260 | |
261 | 261 | return $completed > 0; |
262 | 262 | } |
@@ -329,12 +329,12 @@ discard block |
||
329 | 329 | $str = '<div class="bigbluebuttonbn overview">'."\n"; |
330 | 330 | $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
331 | 331 | $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
332 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
332 | + '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
333 | 333 | $str .= ' </div>'."\n"; |
334 | 334 | $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
335 | 335 | '</div>'."\n"; |
336 | 336 | $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
337 | - .'</div>'."\n"; |
|
337 | + .'</div>'."\n"; |
|
338 | 338 | $str .= '</div>'."\n"; |
339 | 339 | |
340 | 340 | return $str; |
@@ -27,32 +27,32 @@ discard block |
||
27 | 27 | |
28 | 28 | global $CFG; |
29 | 29 | |
30 | -require_once($CFG->dirroot.'/calendar/lib.php'); |
|
31 | -require_once($CFG->dirroot.'/message/lib.php'); |
|
32 | -require_once($CFG->dirroot.'/mod/lti/OAuth.php'); |
|
33 | -require_once($CFG->libdir.'/accesslib.php'); |
|
34 | -require_once($CFG->libdir.'/completionlib.php'); |
|
35 | -require_once($CFG->libdir.'/datalib.php'); |
|
36 | -require_once($CFG->libdir.'/coursecatlib.php'); |
|
37 | -require_once($CFG->libdir.'/enrollib.php'); |
|
38 | -require_once($CFG->libdir.'/filelib.php'); |
|
39 | -require_once($CFG->libdir.'/formslib.php'); |
|
40 | - |
|
41 | -if (file_exists(dirname(__FILE__).'/vendor/firebase/php-jwt/src/JWT.php')) { |
|
42 | - require_once(dirname(__FILE__).'/vendor/firebase/php-jwt/src/JWT.php'); |
|
30 | +require_once($CFG->dirroot . '/calendar/lib.php'); |
|
31 | +require_once($CFG->dirroot . '/message/lib.php'); |
|
32 | +require_once($CFG->dirroot . '/mod/lti/OAuth.php'); |
|
33 | +require_once($CFG->libdir . '/accesslib.php'); |
|
34 | +require_once($CFG->libdir . '/completionlib.php'); |
|
35 | +require_once($CFG->libdir . '/datalib.php'); |
|
36 | +require_once($CFG->libdir . '/coursecatlib.php'); |
|
37 | +require_once($CFG->libdir . '/enrollib.php'); |
|
38 | +require_once($CFG->libdir . '/filelib.php'); |
|
39 | +require_once($CFG->libdir . '/formslib.php'); |
|
40 | + |
|
41 | +if (file_exists(dirname(__FILE__) . '/vendor/firebase/php-jwt/src/JWT.php')) { |
|
42 | + require_once(dirname(__FILE__) . '/vendor/firebase/php-jwt/src/JWT.php'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | if (!isset($CFG->bigbluebuttonbn)) { |
46 | 46 | $CFG->bigbluebuttonbn = array(); |
47 | 47 | } |
48 | 48 | |
49 | -if (file_exists(dirname(__FILE__).'/config.php')) { |
|
50 | - require_once(dirname(__FILE__).'/config.php'); |
|
49 | +if (file_exists(dirname(__FILE__) . '/config.php')) { |
|
50 | + require_once(dirname(__FILE__) . '/config.php'); |
|
51 | 51 | // Old BigBlueButtonBN cfg schema. For backward compatibility. |
52 | 52 | global $BIGBLUEBUTTONBN_CFG; |
53 | 53 | |
54 | 54 | if (isset($BIGBLUEBUTTONBN_CFG)) { |
55 | - foreach ((array) $BIGBLUEBUTTONBN_CFG as $key => $value) { |
|
55 | + foreach ((array)$BIGBLUEBUTTONBN_CFG as $key => $value) { |
|
56 | 56 | $cfgkey = str_replace("bigbluebuttonbn_", "", $key); |
57 | 57 | $CFG->bigbluebuttonbn[$cfgkey] = $value; |
58 | 58 | } |
@@ -82,19 +82,19 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | $features = array( |
85 | - (string) FEATURE_IDNUMBER => true, |
|
86 | - (string) FEATURE_GROUPS => true, |
|
87 | - (string) FEATURE_GROUPINGS => true, |
|
88 | - (string) FEATURE_GROUPMEMBERSONLY => true, |
|
89 | - (string) FEATURE_MOD_INTRO => true, |
|
90 | - (string) FEATURE_BACKUP_MOODLE2 => true, |
|
91 | - (string) FEATURE_COMPLETION_TRACKS_VIEWS => true, |
|
92 | - (string) FEATURE_GRADE_HAS_GRADE => false, |
|
93 | - (string) FEATURE_GRADE_OUTCOMES => false, |
|
94 | - (string) FEATURE_SHOW_DESCRIPTION => true, |
|
85 | + (string)FEATURE_IDNUMBER => true, |
|
86 | + (string)FEATURE_GROUPS => true, |
|
87 | + (string)FEATURE_GROUPINGS => true, |
|
88 | + (string)FEATURE_GROUPMEMBERSONLY => true, |
|
89 | + (string)FEATURE_MOD_INTRO => true, |
|
90 | + (string)FEATURE_BACKUP_MOODLE2 => true, |
|
91 | + (string)FEATURE_COMPLETION_TRACKS_VIEWS => true, |
|
92 | + (string)FEATURE_GRADE_HAS_GRADE => false, |
|
93 | + (string)FEATURE_GRADE_OUTCOMES => false, |
|
94 | + (string)FEATURE_SHOW_DESCRIPTION => true, |
|
95 | 95 | ); |
96 | 96 | |
97 | - if (isset($features[(string) $feature])) { |
|
97 | + if (isset($features[(string)$feature])) { |
|
98 | 98 | return $features[$feature]; |
99 | 99 | } |
100 | 100 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | |
176 | 176 | // End the session associated with this instance (if it's running). |
177 | - $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id; |
|
177 | + $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id; |
|
178 | 178 | $modpw = $bigbluebuttonbn->moderatorpass; |
179 | 179 | |
180 | 180 | if (bigbluebuttonbn_is_meeting_running($meetingid)) { |
@@ -234,11 +234,11 @@ discard block |
||
234 | 234 | $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id, |
235 | 235 | 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
236 | 236 | 'userid' => $user->id, |
237 | - 'log' => 'Join', ), '*'); |
|
237 | + 'log' => 'Join',), '*'); |
|
238 | 238 | |
239 | 239 | if ($completed > 0) { |
240 | - return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '. |
|
241 | - get_string('view_message_session_for', 'bigbluebuttonbn').' '.(string) $completed.' '. |
|
240 | + return fullname($user) . ' ' . get_string('view_message_has_joined', 'bigbluebuttonbn') . ' ' . |
|
241 | + get_string('view_message_session_for', 'bigbluebuttonbn') . ' ' . (string)$completed . ' ' . |
|
242 | 242 | get_string('view_message_times', 'bigbluebuttonbn'); |
243 | 243 | } |
244 | 244 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id, |
257 | 257 | 'bigbluebuttonbnid' => $bigbluebuttonbn->id, |
258 | 258 | 'userid' => $user->id, |
259 | - 'log' => 'Join', ), '*', IGNORE_MULTIPLE); |
|
259 | + 'log' => 'Join',), '*', IGNORE_MULTIPLE); |
|
260 | 260 | |
261 | 261 | return $completed > 0; |
262 | 262 | } |
@@ -326,16 +326,16 @@ discard block |
||
326 | 326 | if ($bigbluebuttonbn->visible) { |
327 | 327 | $classes = 'class="dimmed" '; |
328 | 328 | } |
329 | - $str = '<div class="bigbluebuttonbn overview">'."\n"; |
|
330 | - $str .= ' <div class="name">'.get_string('modulename', 'bigbluebuttonbn').': '."\n"; |
|
331 | - $str .= ' <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule. |
|
332 | - '">'.$bigbluebuttonbn->name.'</a>'."\n"; |
|
333 | - $str .= ' </div>'."\n"; |
|
334 | - $str .= ' <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime). |
|
335 | - '</div>'."\n"; |
|
336 | - $str .= ' <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime) |
|
337 | - .'</div>'."\n"; |
|
338 | - $str .= '</div>'."\n"; |
|
329 | + $str = '<div class="bigbluebuttonbn overview">' . "\n"; |
|
330 | + $str .= ' <div class="name">' . get_string('modulename', 'bigbluebuttonbn') . ': ' . "\n"; |
|
331 | + $str .= ' <a ' . $classes . 'href="' . $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bigbluebuttonbn->coursemodule . |
|
332 | + '">' . $bigbluebuttonbn->name . '</a>' . "\n"; |
|
333 | + $str .= ' </div>' . "\n"; |
|
334 | + $str .= ' <div class="info">' . get_string($start, 'bigbluebuttonbn') . ': ' . userdate($bigbluebuttonbn->openingtime) . |
|
335 | + '</div>' . "\n"; |
|
336 | + $str .= ' <div class="info">' . get_string('ends_at', 'bigbluebuttonbn') . ': ' . userdate($bigbluebuttonbn->closingtime) |
|
337 | + .'</div>' . "\n"; |
|
338 | + $str .= '</div>' . "\n"; |
|
339 | 339 | |
340 | 340 | return $str; |
341 | 341 | } |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | /* Now that an id was assigned, generate and set the meetingid property based on |
427 | 427 | * [Moodle Instance + Activity ID + BBB Secret] (but only for new activities) */ |
428 | 428 | if (isset($bigbluebuttonbn->add) && !empty($bigbluebuttonbn->add)) { |
429 | - $meetingid = sha1($CFG->wwwroot.$bigbluebuttonbn->id.bigbluebuttonbn_get_cfg_shared_secret()); |
|
429 | + $meetingid = sha1($CFG->wwwroot . $bigbluebuttonbn->id . bigbluebuttonbn_get_cfg_shared_secret()); |
|
430 | 430 | $DB->set_field('bigbluebuttonbn', 'meetingid', $meetingid, array('id' => $bigbluebuttonbn->id)); |
431 | 431 | |
432 | 432 | $action = get_string('mod_form_field_notification_msg_created', 'bigbluebuttonbn'); |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | // Get the first (and only) file. |
501 | 501 | $file = reset($files); |
502 | 502 | // Set the presentation column in the bigbluebuttonbn table. |
503 | - $DB->set_field('bigbluebuttonbn', 'presentation', '/'.$file->get_filename(), array('id' => $bigbluebuttonbnid)); |
|
503 | + $DB->set_field('bigbluebuttonbn', 'presentation', '/' . $file->get_filename(), array('id' => $bigbluebuttonbnid)); |
|
504 | 504 | } else { |
505 | 505 | // Set the presentation column in the bigbluebuttonbn table. |
506 | 506 | $DB->set_field('bigbluebuttonbn', 'presentation', '', array('id' => $bigbluebuttonbnid)); |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | return false; |
541 | 541 | } |
542 | 542 | |
543 | - $fullpath = "/$context->id/mod_bigbluebuttonbn/$filearea/0/".$filename; |
|
543 | + $fullpath = "/$context->id/mod_bigbluebuttonbn/$filearea/0/" . $filename; |
|
544 | 544 | $fs = get_file_storage(); |
545 | 545 | if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) { |
546 | 546 | return false; |
@@ -645,26 +645,26 @@ discard block |
||
645 | 645 | } |
646 | 646 | |
647 | 647 | function bigbluebuttonbn_notification_msg_html($msg) { |
648 | - $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '. |
|
649 | - get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
|
650 | - $messagetext .= '<p><b>'.$msg->activity_title.'</b> '. |
|
651 | - get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n"; |
|
652 | - $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n"; |
|
653 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
654 | - get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
655 | - $messagetext .= $msg->activity_title.'</td></tr>'."\n"; |
|
656 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
657 | - get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
658 | - $messagetext .= $msg->activity_description.'</td></tr>'."\n"; |
|
659 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
660 | - get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
661 | - $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n"; |
|
662 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
663 | - get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
664 | - $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n"; |
|
665 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '. |
|
666 | - get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
667 | - $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n"; |
|
648 | + $messagetext = '<p>' . $msg->activity_type . ' "' . $msg->activity_title . '" ' . |
|
649 | + get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n"; |
|
650 | + $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' . |
|
651 | + get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n"; |
|
652 | + $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n"; |
|
653 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
654 | + get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
655 | + $messagetext .= $msg->activity_title . '</td></tr>' . "\n"; |
|
656 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
657 | + get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
658 | + $messagetext .= $msg->activity_description . '</td></tr>' . "\n"; |
|
659 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
660 | + get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
661 | + $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n"; |
|
662 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
663 | + get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
664 | + $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n"; |
|
665 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' . |
|
666 | + get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
667 | + $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n"; |
|
668 | 668 | } |
669 | 669 | |
670 | 670 | function bigbluebuttonbn_notification_send($sender, $bigbluebuttonbn, $message = '') { |
@@ -678,18 +678,18 @@ discard block |
||
678 | 678 | $msg->user_name = fullname($sender); |
679 | 679 | $msg->user_email = $sender->email; |
680 | 680 | $msg->course_name = "$course->fullname"; |
681 | - $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '. |
|
682 | - $msg->user_name.'('.$msg->user_email.') '; |
|
683 | - $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>'; |
|
681 | + $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' . |
|
682 | + $msg->user_name . '(' . $msg->user_email . ') '; |
|
683 | + $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>'; |
|
684 | 684 | |
685 | 685 | $users = get_enrolled_users($context); |
686 | 686 | foreach ($users as $user) { |
687 | 687 | if ($user->id != $sender->id) { |
688 | 688 | $messageid = message_post_message($sender, $user, $message, FORMAT_HTML); |
689 | 689 | if (!empty($messageid)) { |
690 | - debugging('Msg to '.$msg->user_name.' was sent.', DEBUG_DEVELOPER); |
|
690 | + debugging('Msg to ' . $msg->user_name . ' was sent.', DEBUG_DEVELOPER); |
|
691 | 691 | } else { |
692 | - debugging('Msg to '.$msg->user_name.' was NOT sent.', DEBUG_DEVELOPER); |
|
692 | + debugging('Msg to ' . $msg->user_name . ' was NOT sent.', DEBUG_DEVELOPER); |
|
693 | 693 | } |
694 | 694 | } |
695 | 695 | } |
@@ -36,23 +36,23 @@ discard block |
||
36 | 36 | |
37 | 37 | // Change welcome, allow null. |
38 | 38 | $fielddefinition = array('type' => XMLDB_TYPE_TEXT, |
39 | - 'precision' => null, |
|
40 | - 'unsigned' => null, |
|
41 | - 'notnull' => XMLDB_NOTNULL, |
|
42 | - 'sequence' => null, |
|
43 | - 'default' => null, |
|
44 | - 'previous' => 'type'); |
|
39 | + 'precision' => null, |
|
40 | + 'unsigned' => null, |
|
41 | + 'notnull' => XMLDB_NOTNULL, |
|
42 | + 'sequence' => null, |
|
43 | + 'default' => null, |
|
44 | + 'previous' => 'type'); |
|
45 | 45 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'welcome', |
46 | 46 | $fielddefinition); |
47 | 47 | |
48 | 48 | // Change userid definition in bigbluebuttonbn_log. |
49 | 49 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
50 | - 'precision' => '10', |
|
51 | - 'unsigned' => XMLDB_UNSIGNED, |
|
52 | - 'notnull' => XMLDB_NOTNULL, |
|
53 | - 'sequence' => null, |
|
54 | - 'default' => null, |
|
55 | - 'previous' => 'bigbluebuttonbnid'); |
|
50 | + 'precision' => '10', |
|
51 | + 'unsigned' => XMLDB_UNSIGNED, |
|
52 | + 'notnull' => XMLDB_NOTNULL, |
|
53 | + 'sequence' => null, |
|
54 | + 'default' => null, |
|
55 | + 'previous' => 'bigbluebuttonbnid'); |
|
56 | 56 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn_log', 'userid', |
57 | 57 | $fielddefinition); |
58 | 58 | |
@@ -78,34 +78,34 @@ discard block |
||
78 | 78 | |
79 | 79 | // Add field type. |
80 | 80 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
81 | - 'precision' => '2', |
|
82 | - 'unsigned' => XMLDB_UNSIGNED, |
|
83 | - 'notnull' => XMLDB_NOTNULL, |
|
84 | - 'sequence' => null, |
|
85 | - 'default' => 0, |
|
86 | - 'previous' => 'id'); |
|
81 | + 'precision' => '2', |
|
82 | + 'unsigned' => XMLDB_UNSIGNED, |
|
83 | + 'notnull' => XMLDB_NOTNULL, |
|
84 | + 'sequence' => null, |
|
85 | + 'default' => 0, |
|
86 | + 'previous' => 'id'); |
|
87 | 87 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'type', |
88 | 88 | $fielddefinition); |
89 | 89 | |
90 | 90 | // Add field recordings_html. |
91 | 91 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
92 | - 'precision' => '1', |
|
93 | - 'unsigned' => XMLDB_UNSIGNED, |
|
94 | - 'notnull' => XMLDB_NOTNULL, |
|
95 | - 'sequence' => null, |
|
96 | - 'default' => 0, |
|
97 | - 'previous' => null); |
|
92 | + 'precision' => '1', |
|
93 | + 'unsigned' => XMLDB_UNSIGNED, |
|
94 | + 'notnull' => XMLDB_NOTNULL, |
|
95 | + 'sequence' => null, |
|
96 | + 'default' => 0, |
|
97 | + 'previous' => null); |
|
98 | 98 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_html', |
99 | 99 | $fielddefinition); |
100 | 100 | |
101 | 101 | // Add field recordings_deleted_activities. |
102 | 102 | $fielddefinition = array('type' => XMLDB_TYPE_INTEGER, |
103 | - 'precision' => '1', |
|
104 | - 'unsigned' => XMLDB_UNSIGNED, |
|
105 | - 'notnull' => XMLDB_NOTNULL, |
|
106 | - 'sequence' => null, |
|
107 | - 'default' => 1, |
|
108 | - 'previous' => null); |
|
103 | + 'precision' => '1', |
|
104 | + 'unsigned' => XMLDB_UNSIGNED, |
|
105 | + 'notnull' => XMLDB_NOTNULL, |
|
106 | + 'sequence' => null, |
|
107 | + 'default' => 1, |
|
108 | + 'previous' => null); |
|
109 | 109 | xmldb_bigbluebuttonbn_add_change_field($dbman, 'bigbluebuttonbn', 'recordings_deleted_activities', |
110 | 110 | $fielddefinition); |
111 | 111 | |
@@ -119,12 +119,12 @@ discard block |
||
119 | 119 | $table = new xmldb_table($tablename); |
120 | 120 | $field = new xmldb_field($fieldname); |
121 | 121 | $field->set_attributes($fielddefinition['type'], |
122 | - $fielddefinition['precision'], |
|
123 | - $fielddefinition['unsigned'], |
|
124 | - $fielddefinition['notnull'], |
|
125 | - $fielddefinition['sequence'], |
|
126 | - $fielddefinition['default'], |
|
127 | - $fielddefinition['previous']); |
|
122 | + $fielddefinition['precision'], |
|
123 | + $fielddefinition['unsigned'], |
|
124 | + $fielddefinition['notnull'], |
|
125 | + $fielddefinition['sequence'], |
|
126 | + $fielddefinition['default'], |
|
127 | + $fielddefinition['previous']); |
|
128 | 128 | if ($dbman->field_exists($table, $field)) { |
129 | 129 | $dbman->change_field($table, $field, true, true); |
130 | 130 |
@@ -167,14 +167,14 @@ discard block |
||
167 | 167 | } |
168 | 168 | $statuscanjoin = '"can_join": '.($canjoin ? 'true' : 'false'); |
169 | 169 | echo $params['callback'].'({"running": '.($meetingrunning ? 'true' : 'false'). |
170 | - ',"info": '.json_encode($meetinginfo). |
|
171 | - ',"status": {'.'"join_url": "'.$bbbsession['joinURL'].'", '. |
|
172 | - '"joinbuttontext": "'.$joinbuttontext.'", '. |
|
173 | - '"message": "'.$initialmessage.'", '. |
|
174 | - $statuscanjoin.', '. |
|
175 | - $statuscanend.', '. |
|
176 | - $statuscantag.', '. |
|
177 | - '}});'; |
|
170 | + ',"info": '.json_encode($meetinginfo). |
|
171 | + ',"status": {'.'"join_url": "'.$bbbsession['joinURL'].'", '. |
|
172 | + '"joinbuttontext": "'.$joinbuttontext.'", '. |
|
173 | + '"message": "'.$initialmessage.'", '. |
|
174 | + $statuscanjoin.', '. |
|
175 | + $statuscanend.', '. |
|
176 | + $statuscantag.', '. |
|
177 | + '}});'; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | function bigbluebuttonbn_broker_meeting_end($bbbsession, $params, $bigbluebuttonbn, $cm) { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | if (isset($recordings[$params['id']]) && isset($recordings[$params['id']]['imported'])) { |
298 | 298 | // Execute publish on imported recording link, if the real recording is published. |
299 | 299 | $realrecordings = bigbluebuttonbn_get_recordings_array($recordings[$params['id']]['meetingID'], |
300 | - $recordings[$params['id']]['recordID']); |
|
300 | + $recordings[$params['id']]['recordID']); |
|
301 | 301 | $status = $realrecordings[$params['id']]['published']; |
302 | 302 | if ($status === 'true') { |
303 | 303 | // Only if the physical recording is published, execute publish on imported recording link. |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | |
25 | 25 | defined('MOODLE_INTERNAL') || die(); |
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 | use \Firebase\JWT\JWT; |
31 | 31 | |
@@ -118,12 +118,12 @@ discard block |
||
118 | 118 | break; |
119 | 119 | } |
120 | 120 | } catch (Exception $e) { |
121 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
121 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
122 | 122 | return; |
123 | 123 | } |
124 | 124 | } |
125 | 125 | } else { |
126 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
126 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | function bigbluebuttonbn_broker_meeting_info($bbbsession, $params) { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | if ($bbbsession['administrator'] || $bbbsession['moderator']) { |
146 | 146 | $endbuttontext = get_string('view_conference_action_end', 'bigbluebuttonbn'); |
147 | - $statuscanend = '"can_end": true, "endbuttontext": "'.$endbuttontext.'"'; |
|
147 | + $statuscanend = '"can_end": true, "endbuttontext": "' . $endbuttontext . '"'; |
|
148 | 148 | } |
149 | 149 | } else { |
150 | 150 | // If user is administrator, moderator or if is viewer and no waiting is required. |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | if (!$bbbsession['administrator'] && !$bbbsession['moderator'] && $bbbsession['wait']) { |
155 | 155 | $initialmessage = get_string('view_message_conference_not_started', 'bigbluebuttonbn'); |
156 | 156 | if ($bbbsession['wait']) { |
157 | - $initialmessage .= ' '.get_string('view_message_conference_wait_for_moderator', 'bigbluebuttonbn'); |
|
157 | + $initialmessage .= ' ' . get_string('view_message_conference_wait_for_moderator', 'bigbluebuttonbn'); |
|
158 | 158 | } |
159 | 159 | $canjoin = false; |
160 | 160 | } |
@@ -163,17 +163,17 @@ discard block |
||
163 | 163 | if ($bbbsession['tagging'] && ($bbbsession['administrator'] || $bbbsession['moderator'])) { |
164 | 164 | $cantag = true; |
165 | 165 | } |
166 | - $statuscanend = '"can_tag": '.($cantag ? 'true' : 'false'); |
|
166 | + $statuscanend = '"can_tag": ' . ($cantag ? 'true' : 'false'); |
|
167 | 167 | } |
168 | - $statuscanjoin = '"can_join": '.($canjoin ? 'true' : 'false'); |
|
169 | - echo $params['callback'].'({"running": '.($meetingrunning ? 'true' : 'false'). |
|
170 | - ',"info": '.json_encode($meetinginfo). |
|
171 | - ',"status": {'.'"join_url": "'.$bbbsession['joinURL'].'", '. |
|
172 | - '"joinbuttontext": "'.$joinbuttontext.'", '. |
|
173 | - '"message": "'.$initialmessage.'", '. |
|
174 | - $statuscanjoin.', '. |
|
175 | - $statuscanend.', '. |
|
176 | - $statuscantag.', '. |
|
168 | + $statuscanjoin = '"can_join": ' . ($canjoin ? 'true' : 'false'); |
|
169 | + echo $params['callback'] . '({"running": ' . ($meetingrunning ? 'true' : 'false') . |
|
170 | + ',"info": ' . json_encode($meetinginfo) . |
|
171 | + ',"status": {' . '"join_url": "' . $bbbsession['joinURL'] . '", ' . |
|
172 | + '"joinbuttontext": "' . $joinbuttontext . '", ' . |
|
173 | + '"message": "' . $initialmessage . '", ' . |
|
174 | + $statuscanjoin . ', ' . |
|
175 | + $statuscanend . ', ' . |
|
176 | + $statuscantag . ', ' . |
|
177 | 177 | '}});'; |
178 | 178 | } |
179 | 179 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | // Update the cache. |
194 | 194 | bigbluebuttonbn_get_meetinginfo($params['id'], BIGBLUEBUTTONBN_FORCED); |
195 | 195 | |
196 | - echo $params['callback'].'({ "status": true });'; |
|
196 | + echo $params['callback'] . '({ "status": true });'; |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | function bigbluebuttonbn_broker_recording_links($bbbsession, $params) { |
@@ -203,10 +203,10 @@ discard block |
||
203 | 203 | return; |
204 | 204 | } |
205 | 205 | |
206 | - $out = $params['callback'].'({"status": "false"});'; |
|
206 | + $out = $params['callback'] . '({"status": "false"});'; |
|
207 | 207 | if (isset($params['id']) && $params['id'] != '') { |
208 | 208 | $importedall = bigbluebuttonbn_get_recording_imported_instances($params['id']); |
209 | - $out = $params['callback'].'({ "status": "true", "links": '.count($importedall).'});'; |
|
209 | + $out = $params['callback'] . '({ "status": "true", "links": ' . count($importedall) . '});'; |
|
210 | 210 | } |
211 | 211 | echo $out; |
212 | 212 | } |
@@ -228,10 +228,10 @@ discard block |
||
228 | 228 | if (isset($recordings[$params['id']])) { |
229 | 229 | // Look up for an update on the imported recording. |
230 | 230 | $recording = $recordings[$params['id']]; |
231 | - $out = $params['callback'].'({ "status": "false" });'; |
|
231 | + $out = $params['callback'] . '({ "status": "false" });'; |
|
232 | 232 | if (isset($recording) && !empty($recording) && !array_key_exists('messageKey', $recording)) { |
233 | 233 | // The recording was found. |
234 | - $out = $params['callback'].'({ "status": "true", "published": "'.$recording['published'].'"});'; |
|
234 | + $out = $params['callback'] . '({ "status": "true", "published": "' . $recording['published'] . '"});'; |
|
235 | 235 | } |
236 | 236 | echo $out; |
237 | 237 | return; |
@@ -239,10 +239,10 @@ discard block |
||
239 | 239 | |
240 | 240 | // As the recordingid was not identified as imported recording link, look up for a real recording. |
241 | 241 | $recording = bigbluebuttonbn_get_recordings_array($params['idx'], $params['id']); |
242 | - $out = $params['callback'].'({"status": "false"});'; |
|
242 | + $out = $params['callback'] . '({"status": "false"});'; |
|
243 | 243 | if (isset($recording) && !empty($recording) && array_key_exists($params['id'], $recording)) { |
244 | 244 | // The recording was found. |
245 | - $out = $params['callback'].'({ "status": "true", "published": "'.$recording[$params['id']]['published'].'"});'; |
|
245 | + $out = $params['callback'] . '({ "status": "true", "published": "' . $recording[$params['id']]['published'] . '"});'; |
|
246 | 246 | } |
247 | 247 | echo $out; |
248 | 248 | } |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | $eventlog = BIGBLUEBUTTON_EVENT_RECORDING_PUBLISHED; |
274 | 274 | break; |
275 | 275 | case 'recording_unpublish': |
276 | - $callbackresponse = bigbluebuttonbn_broker_recording_action_unpublish($bbbsession, $params, $recordings);; |
|
276 | + $callbackresponse = bigbluebuttonbn_broker_recording_action_unpublish($bbbsession, $params, $recordings); ; |
|
277 | 277 | $eventlog = BIGBLUEBUTTON_EVENT_RECORDING_UNPUBLISHED; |
278 | 278 | break; |
279 | 279 | case 'recording_delete': |
@@ -376,8 +376,8 @@ discard block |
||
376 | 376 | $decodedparameters = JWT::decode($params['signed_parameters'], bigbluebuttonbn_get_cfg_shared_secret(), |
377 | 377 | array('HS256')); |
378 | 378 | } catch (Exception $e) { |
379 | - $error = 'Caught exception: '.$e->getMessage(); |
|
380 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
379 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
380 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
381 | 381 | return; |
382 | 382 | } |
383 | 383 | |
@@ -386,8 +386,8 @@ discard block |
||
386 | 386 | $meetingidelements = explode('-', $meetingidelements[0]); |
387 | 387 | |
388 | 388 | if (!isset($bigbluebuttonbn) || $bigbluebuttonbn->meetingid != $meetingidelements[0]) { |
389 | - $error = 'Caught exception: '.$e->getMessage(); |
|
390 | - header('HTTP/1.0 410 Gone. '.$error); |
|
389 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
390 | + header('HTTP/1.0 410 Gone. ' . $error); |
|
391 | 391 | return; |
392 | 392 | } |
393 | 393 | |
@@ -396,8 +396,8 @@ discard block |
||
396 | 396 | bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn); |
397 | 397 | header('HTTP/1.0 202 Accepted'); |
398 | 398 | } catch (Exception $e) { |
399 | - $error = 'Caught exception: '.$e->getMessage(); |
|
400 | - header('HTTP/1.0 503 Service Unavailable. '.$error); |
|
399 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
400 | + header('HTTP/1.0 503 Service Unavailable. ' . $error); |
|
401 | 401 | } |
402 | 402 | } |
403 | 403 | |
@@ -412,13 +412,13 @@ discard block |
||
412 | 412 | $importrecordings = $SESSION->bigbluebuttonbn_importrecordings; |
413 | 413 | if (!isset($importrecordings[$params['id']])) { |
414 | 414 | $error = "Recording {$params['id']} could not be found. It can not be imported"; |
415 | - header('HTTP/1.0 404 Not found. '.$error); |
|
415 | + header('HTTP/1.0 404 Not found. ' . $error); |
|
416 | 416 | return; |
417 | 417 | } |
418 | 418 | |
419 | 419 | $importrecordings[$params['id']]['imported'] = true; |
420 | 420 | $overrides['meetingid'] = $importrecordings[$params['id']]['meetingID']; |
421 | - $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}'; |
|
421 | + $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}'; |
|
422 | 422 | bigbluebuttonbn_logs($bbbsession, BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta); |
423 | 423 | // Moodle event logger: Create an event for recording imported. |
424 | 424 | if (isset($bigbluebuttonbn)) { |
@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | $decodedparameters = JWT::decode($params['signed_parameters'], bigbluebuttonbn_get_cfg_shared_secret(), |
437 | 437 | array('HS256')); |
438 | 438 | } catch (Exception $e) { |
439 | - $error = 'Caught exception: '.$e->getMessage(); |
|
440 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
439 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
440 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
441 | 441 | return; |
442 | 442 | } |
443 | 443 | |
@@ -446,8 +446,8 @@ discard block |
||
446 | 446 | $meetingidelements = explode('-', $meetingidelements[0]); |
447 | 447 | |
448 | 448 | if (!isset($bigbluebuttonbn) || $bigbluebuttonbn->meetingid != $meetingidelements[0]) { |
449 | - $error = 'Caught exception: '.$e->getMessage(); |
|
450 | - header('HTTP/1.0 410 Gone. '.$error); |
|
449 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
450 | + header('HTTP/1.0 410 Gone. ' . $error); |
|
451 | 451 | return; |
452 | 452 | } |
453 | 453 |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | - $a = (object) array('userid' => $this->userid, |
|
55 | + $a = (object)array('userid' => $this->userid, |
|
56 | 56 | 'bigbluebuttonbnid' => $this->objectid, |
57 | 57 | 'courseid' => $this->contextinstanceid); |
58 | 58 | |
59 | - return "The user with id '$a->userid' viewed the bigbluebuttonbn activity ". |
|
59 | + return "The user with id '$a->userid' viewed the bigbluebuttonbn activity " . |
|
60 | 60 | "with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'."; |
61 | 61 | } |
62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function get_legacy_logdata() { |
69 | 69 | return array($this->courseid, 'bigbluebuttonbn', 'activity viewed', |
70 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN activity viewed', |
|
70 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN activity viewed', |
|
71 | 71 | $this->contextinstanceid); |
72 | 72 | } |
73 | 73 |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | 55 | $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
56 | - $a = (object) array('userid' => $this->userid, |
|
56 | + $a = (object)array('userid' => $this->userid, |
|
57 | 57 | 'recordingid' => $rid, |
58 | 58 | 'courseid' => $this->contextinstanceid); |
59 | 59 | |
60 | - return "The user with id '$a->userid' has imported a recording with id ". |
|
60 | + return "The user with id '$a->userid' has imported a recording with id " . |
|
61 | 61 | "'$a->recordingid' into the course id '$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'recording imported', |
71 | - 'view.php?pageid='.$this->objectid, 'Recording imported', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'Recording imported', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | 55 | $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
56 | - $a = (object) array('userid' => $this->userid, |
|
56 | + $a = (object)array('userid' => $this->userid, |
|
57 | 57 | 'recordingid' => $rid, |
58 | 58 | 'courseid' => $this->contextinstanceid); |
59 | 59 | |
60 | - return "The user with id '$a->userid' has published a recording with id ". |
|
60 | + return "The user with id '$a->userid' has published a recording with id " . |
|
61 | 61 | "'$a->recordingid' in the course id '$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'recording published', |
71 | - 'view.php?pageid='.$this->objectid, 'Recording published', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'Recording published', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | 55 | $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
56 | - $a = (object) array('userid' => $this->userid, |
|
56 | + $a = (object)array('userid' => $this->userid, |
|
57 | 57 | 'recordingid' => $rid, |
58 | 58 | 'courseid' => $this->contextinstanceid); |
59 | 59 | |
60 | - return "The user with id '$a->userid' has unpublished a recording with id ". |
|
60 | + return "The user with id '$a->userid' has unpublished a recording with id " . |
|
61 | 61 | "'$a->recordingid' in the course id '$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'recording unpublished', |
71 | - 'view.php?pageid='.$this->objectid, 'Recording unpublished', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'Recording unpublished', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | - $a = (object) array('userid' => $this->userid, |
|
55 | + $a = (object)array('userid' => $this->userid, |
|
56 | 56 | 'bigbluebuttonbnid' => $this->objectid, |
57 | 57 | 'courseid' => $this->contextinstanceid, |
58 | 58 | 'action' => $this->other); |
59 | 59 | |
60 | - return "The user with id '$a->userid' triggered action $a->action in a ". |
|
61 | - "bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
60 | + return "The user with id '$a->userid' triggered action $a->action in a " . |
|
61 | + "bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
62 | 62 | "'$a->bigbluebuttonbnid' for the course id '$a->courseid'."; |
63 | 63 | } |
64 | 64 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function get_legacy_logdata() { |
71 | 71 | return array($this->courseid, 'bigbluebuttonbn', 'meeting left', |
72 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting live session event', |
|
72 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting live session event', |
|
73 | 73 | $this->contextinstanceid); |
74 | 74 | } |
75 | 75 |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function get_description() { |
55 | - $a = (object) array('userid' => $this->userid, |
|
55 | + $a = (object)array('userid' => $this->userid, |
|
56 | 56 | 'bigbluebuttonbnid' => $this->objectid, |
57 | 57 | 'courseid' => $this->contextinstanceid); |
58 | 58 | |
59 | - return "The user with id '$a->userid' has left a bigbluebutton meeting for ". |
|
60 | - "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id ". |
|
59 | + return "The user with id '$a->userid' has left a bigbluebutton meeting for " . |
|
60 | + "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id " . |
|
61 | 61 | "'$a->courseid'."; |
62 | 62 | } |
63 | 63 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function get_legacy_logdata() { |
70 | 70 | return array($this->courseid, 'bigbluebuttonbn', 'meeting left', |
71 | - 'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting left', |
|
71 | + 'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting left', |
|
72 | 72 | $this->contextinstanceid); |
73 | 73 | } |
74 | 74 |