@@ -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); |
@@ -119,28 +119,28 @@ |
||
| 119 | 119 | */ |
| 120 | 120 | public static function get_options() { |
| 121 | 121 | return [ |
| 122 | - 'version_major' => self::get_moodle_version_major(), |
|
| 123 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 124 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 125 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 126 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 127 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 128 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 129 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 130 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 131 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 132 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 133 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 134 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 135 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 136 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 137 | - 'recording_default' => self::get('recording_default'), |
|
| 138 | - 'recording_editable' => self::get('recording_editable'), |
|
| 139 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 140 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 141 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 142 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 143 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 144 | - ]; |
|
| 122 | + 'version_major' => self::get_moodle_version_major(), |
|
| 123 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 124 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 125 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 126 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 127 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 128 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 129 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 130 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 131 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 132 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 133 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 134 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 135 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 136 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 137 | + 'recording_default' => self::get('recording_default'), |
|
| 138 | + 'recording_editable' => self::get('recording_editable'), |
|
| 139 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 140 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 141 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 142 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 143 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 144 | + ]; |
|
| 145 | 145 | } |
| 146 | 146 | } |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public static function defaultvalues() { |
| 46 | 46 | return array( |
| 47 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 48 | - 'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 47 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 48 | + 'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 49 | 49 | 'importrecordings_enabled' => 'false', |
| 50 | 50 | 'voicebridge_editable' => 'false', |
| 51 | 51 | 'importrecordings_enabled' => 'false', |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | public static function get($setting) { |
| 100 | 100 | global $CFG; |
| 101 | 101 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 102 | - return (string) $CFG->bigbluebuttonbn[$setting]; |
|
| 102 | + return (string)$CFG->bigbluebuttonbn[$setting]; |
|
| 103 | 103 | } |
| 104 | - if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
|
| 105 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 104 | + if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { |
|
| 105 | + return (string)$CFG->{'bigbluebuttonbn_' . $setting}; |
|
| 106 | 106 | } |
| 107 | 107 | return self::defaultvalue($setting); |
| 108 | 108 | } |
@@ -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); |