@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has imported a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has imported a recording with id " . |
|
38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,8 +34,8 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for ". |
|
38 | - "the bigbluebuttonbn activity with id '$this->objectid' for the course id ". |
|
37 | + $this->description = "The user with id '$this->userid' has left a bigbluebutton meeting for " . |
|
38 | + "the bigbluebuttonbn activity with id '$this->objectid' for the course id " . |
|
39 | 39 | "'$this->contextinstanceid'."; |
40 | 40 | } |
41 | 41 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has deleted a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has deleted a recording with id " . |
|
38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has viewed a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has viewed a recording with id " . |
|
38 | 38 | "'$this->other' from the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has protected a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has protected a recording with id " . |
|
38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function init() { |
36 | 36 | parent::init(); |
37 | - $this->description = "The user with id '$this->userid' has edited a recording with id ". |
|
37 | + $this->description = "The user with id '$this->userid' has edited a recording with id " . |
|
38 | 38 | "'$this->other' in the course id '$this->contextinstanceid'."; |
39 | 39 | } |
40 | 40 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | global $USER; |
35 | 35 | |
36 | 36 | // Prepare message. |
37 | - $msg = (object) array(); |
|
37 | + $msg = (object)array(); |
|
38 | 38 | // Build the message_body. |
39 | 39 | $msg->action = $action; |
40 | 40 | $msg->activity_type = ''; |
@@ -54,26 +54,26 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | public static function notification_msg_html($msg) { |
57 | - $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '. |
|
58 | - get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
|
59 | - $messagetext .= '<p><b>'.$msg->activity_title.'</b> '. |
|
60 | - get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n"; |
|
61 | - $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n"; |
|
62 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
63 | - get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
64 | - $messagetext .= $msg->activity_title.'</td></tr>'."\n"; |
|
65 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
66 | - get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
67 | - $messagetext .= $msg->activity_description.'</td></tr>'."\n"; |
|
68 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
69 | - get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
70 | - $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n"; |
|
71 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
72 | - get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
73 | - $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n"; |
|
74 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '. |
|
75 | - get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
76 | - $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n"; |
|
57 | + $messagetext = '<p>' . $msg->activity_type . ' "' . $msg->activity_title . '" ' . |
|
58 | + get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n"; |
|
59 | + $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' . |
|
60 | + get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n"; |
|
61 | + $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n"; |
|
62 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
63 | + get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
64 | + $messagetext .= $msg->activity_title . '</td></tr>' . "\n"; |
|
65 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
66 | + get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
67 | + $messagetext .= $msg->activity_description . '</td></tr>' . "\n"; |
|
68 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
69 | + get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
70 | + $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n"; |
|
71 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
72 | + get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
73 | + $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n"; |
|
74 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' . |
|
75 | + get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
76 | + $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n"; |
|
77 | 77 | return $messagetext; |
78 | 78 | } |
79 | 79 | |
@@ -83,15 +83,15 @@ discard block |
||
83 | 83 | $course = $DB->get_record('course', array('id' => $bigbluebuttonbn->course), '*', MUST_EXIST); |
84 | 84 | |
85 | 85 | // Complete message. |
86 | - $msg = (object) array(); |
|
86 | + $msg = (object)array(); |
|
87 | 87 | $msg->user_name = fullname($sender); |
88 | 88 | $msg->user_email = $sender->email; |
89 | 89 | $msg->course_name = "$course->fullname"; |
90 | - $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '. |
|
91 | - $msg->user_name.'('.$msg->user_email.') '; |
|
92 | - $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>'; |
|
90 | + $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' . |
|
91 | + $msg->user_name . '(' . $msg->user_email . ') '; |
|
92 | + $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>'; |
|
93 | 93 | |
94 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
94 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
95 | 95 | foreach ($users as $user) { |
96 | 96 | if ($user->id != $sender->id) { |
97 | 97 | message_post_message($sender, $user, $message, FORMAT_HTML); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | defined('MOODLE_INTERNAL') || die(); |
28 | 28 | |
29 | 29 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
30 | -require_once($CFG->libdir.'/adminlib.php'); |
|
30 | +require_once($CFG->libdir . '/adminlib.php'); |
|
31 | 31 | |
32 | 32 | class renderer { |
33 | 33 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $itemname = get_string('config_' . $name, 'bigbluebuttonbn'); |
46 | 46 | } |
47 | 47 | if ($itemdescription == null) { |
48 | - $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn'); |
|
48 | + $itemdescription = get_string('config_' . $name . '_description', 'bigbluebuttonbn'); |
|
49 | 49 | } |
50 | 50 | $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription); |
51 | 51 | $this->settings->add($item); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | global $CFG; |
29 | 29 | |
30 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
30 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
31 | 31 | |
32 | 32 | if ($ADMIN->fulltree) { |
33 | 33 | // Configuration for BigBlueButton. |