@@ -40,8 +40,8 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | protected function init() { |
| 42 | 42 | parent::init(); |
| 43 | - $this->description = "The user with id '##userid' triggered action ##other in a ". |
|
| 44 | - "bigbluebutton meeting for the bigbluebuttonbn activity with id ". |
|
| 43 | + $this->description = "The user with id '##userid' triggered action ##other in a " . |
|
| 44 | + "bigbluebutton meeting for the bigbluebuttonbn activity with id " . |
|
| 45 | 45 | "'##objectid' for the course id '##contextinstanceid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -40,8 +40,8 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | protected function init() { |
| 42 | 42 | parent::init(); |
| 43 | - $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for ". |
|
| 44 | - "the bigbluebuttonbn activity with id '##objectid' for the course id ". |
|
| 43 | + $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for " . |
|
| 44 | + "the bigbluebuttonbn activity with id '##objectid' for the course id " . |
|
| 45 | 45 | "'##contextinstanceid'."; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | |
| 29 | -require_once(dirname(dirname(__FILE__)).'/locallib.php'); |
|
| 29 | +require_once(dirname(dirname(__FILE__)) . '/locallib.php'); |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Performs data migrations and updates on upgrade. |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
| 213 | 213 | $context = \context_module::instance($instanceidstocmids[$instanceid]); |
| 214 | 214 | $contextdata = helper::get_context_data($context, $user); |
| 215 | - $finaldata = (object) array_merge((array) $contextdata, ['logs' => $data]); |
|
| 215 | + $finaldata = (object)array_merge((array)$contextdata, ['logs' => $data]); |
|
| 216 | 216 | helper::export_context_files($context, $user); |
| 217 | 217 | writer::with_context($context)->export_data([], $finaldata); |
| 218 | 218 | } |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function _get_metadata(collection $collection) { |
| 63 | 63 | |
| 64 | - // The table bigbluebuttonbn stores only the room properties. |
|
| 65 | - // However, there is a chance that some personal information is stored as metadata. |
|
| 66 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 67 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 68 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 64 | + // The table bigbluebuttonbn stores only the room properties. |
|
| 65 | + // However, there is a chance that some personal information is stored as metadata. |
|
| 66 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 67 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 68 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 69 | 69 | $collection->add_database_table('bigbluebuttonbn', [ |
| 70 | 70 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
| 71 | 71 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'meetingid' => $record->meetingid, |
| 209 | 209 | 'log' => $record->log, |
| 210 | 210 | 'meta' => $record->meta, |
| 211 | - ]; |
|
| 211 | + ]; |
|
| 212 | 212 | return $carry; |
| 213 | 213 | }, |
| 214 | 214 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -152,33 +152,33 @@ |
||
| 152 | 152 | */ |
| 153 | 153 | public static function get_options() { |
| 154 | 154 | return array( |
| 155 | - 'version_major' => self::get_moodle_version_major(), |
|
| 156 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 158 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 159 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 160 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 161 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 162 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 163 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 164 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 165 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 166 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 167 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 168 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 169 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 170 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 171 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 172 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 173 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 174 | - 'recording_default' => self::get('recording_default'), |
|
| 175 | - 'recording_editable' => self::get('recording_editable'), |
|
| 176 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 177 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 178 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 179 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 180 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 181 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 182 | - ); |
|
| 155 | + 'version_major' => self::get_moodle_version_major(), |
|
| 156 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 157 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 158 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 159 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 160 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 161 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 162 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 163 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 164 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 165 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 166 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 167 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 168 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 169 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 170 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 171 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 172 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 173 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 174 | + 'recording_default' => self::get('recording_default'), |
|
| 175 | + 'recording_editable' => self::get('recording_editable'), |
|
| 176 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 177 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 178 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 179 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 180 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 181 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 182 | + ); |
|
| 183 | 183 | } |
| 184 | 184 | } |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public static function defaultvalues() { |
| 57 | 57 | return array( |
| 58 | - 'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 59 | - 'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 58 | + 'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL, |
|
| 59 | + 'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET, |
|
| 60 | 60 | 'voicebridge_editable' => 'false', |
| 61 | 61 | 'importrecordings_enabled' => 'false', |
| 62 | 62 | 'importrecordings_from_deleted_enabled' => 'false', |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 122 | 122 | return (string)$CFG->bigbluebuttonbn[$setting]; |
| 123 | 123 | } |
| 124 | - if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
|
| 125 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 124 | + if (isset($CFG->{'bigbluebuttonbn_' . $setting})) { |
|
| 125 | + return (string)$CFG->{'bigbluebuttonbn_' . $setting}; |
|
| 126 | 126 | } |
| 127 | 127 | return self::defaultvalue($setting); |
| 128 | 128 | } |