@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | |
| 29 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 29 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Methods used to render view BBB in mobile. |
@@ -62,8 +62,8 @@ discard block |
||
| 62 | 62 | $session['bigbluebuttonbn']->id; |
| 63 | 63 | $session['meetingname'] = $session['bigbluebuttonbn']->name; |
| 64 | 64 | $session['meetingdescription'] = $session['bigbluebuttonbn']->intro; |
| 65 | - $session['userlimit'] = intval((int)\mod_bigbluebuttonbn\locallib\config::get('userlimit_default')); |
|
| 66 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) { |
|
| 65 | + $session['userlimit'] = intval((int) \mod_bigbluebuttonbn\locallib\config::get('userlimit_default')); |
|
| 66 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) { |
|
| 67 | 67 | $session['userlimit'] = intval($session['bigbluebuttonbn']->userlimit); |
| 68 | 68 | } |
| 69 | 69 | $session['voicebridge'] = $session['bigbluebuttonbn']->voicebridge; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * @return string |
| 224 | 224 | */ |
| 225 | 225 | public static function create_meeting_data_record($record) { |
| 226 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { |
|
| 226 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { |
|
| 227 | 227 | return 'true'; |
| 228 | 228 | } |
| 229 | 229 | return 'false'; |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | * @return integer |
| 237 | 237 | */ |
| 238 | 238 | public static function create_meeting_data_duration($closingtime) { |
| 239 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { |
|
| 239 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { |
|
| 240 | 240 | return bigbluebuttonbn_get_duration($closingtime); |
| 241 | 241 | } |
| 242 | 242 | return 0; |
@@ -170,43 +170,43 @@ |
||
| 170 | 170 | */ |
| 171 | 171 | public static function get_options() { |
| 172 | 172 | return array( |
| 173 | - 'version_major' => self::get_moodle_version_major(), |
|
| 174 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 175 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 176 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 177 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 178 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 179 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 180 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 181 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 182 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 183 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 184 | - 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 185 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | - 'recording_default' => self::get('recording_default'), |
|
| 194 | - 'recording_editable' => self::get('recording_editable'), |
|
| 195 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | - 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | - 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | - 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | - 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | - 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | - 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | - 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | - 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | - ); |
|
| 173 | + 'version_major' => self::get_moodle_version_major(), |
|
| 174 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 175 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 176 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 177 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 178 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 179 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 180 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 181 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 182 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 183 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 184 | + 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 185 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 186 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 187 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 188 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 189 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 190 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 191 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 192 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 193 | + 'recording_default' => self::get('recording_default'), |
|
| 194 | + 'recording_editable' => self::get('recording_editable'), |
|
| 195 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 196 | + 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 197 | + 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 198 | + 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 199 | + 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 200 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 201 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 202 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 203 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 204 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 205 | + 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 206 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 207 | + 'clienttype_default' => self::get('clienttype_default'), |
|
| 208 | + 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 209 | + 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 210 | + ); |
|
| 211 | 211 | } |
| 212 | 212 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Handles the global configuration based on config.php. |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | public static function get($setting) { |
| 129 | 129 | global $CFG; |
| 130 | 130 | if (isset($CFG->bigbluebuttonbn[$setting])) { |
| 131 | - return (string)$CFG->bigbluebuttonbn[$setting]; |
|
| 131 | + return (string) $CFG->bigbluebuttonbn[$setting]; |
|
| 132 | 132 | } |
| 133 | 133 | if (isset($CFG->{'bigbluebuttonbn_'.$setting})) { |
| 134 | - return (string)$CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 134 | + return (string) $CFG->{'bigbluebuttonbn_'.$setting}; |
|
| 135 | 135 | } |
| 136 | 136 | return self::defaultvalue($setting); |
| 137 | 137 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @return boolean |
| 143 | 143 | */ |
| 144 | 144 | public static function recordings_enabled() { |
| 145 | - return (boolean)self::get('recordings_enabled'); |
|
| 145 | + return (boolean) self::get('recordings_enabled'); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * @return boolean |
| 152 | 152 | */ |
| 153 | 153 | public static function importrecordings_enabled() { |
| 154 | - return (boolean)self::get('importrecordings_enabled'); |
|
| 154 | + return (boolean) self::get('importrecordings_enabled'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @return boolean |
| 161 | 161 | */ |
| 162 | 162 | public static function clienttype_enabled() { |
| 163 | - return (boolean)self::get('clienttype_enabled'); |
|
| 163 | + return (boolean) self::get('clienttype_enabled'); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Wrapper for executing http requests on a BigBlueButton server. |
@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | * @return string |
| 47 | 47 | */ |
| 48 | 48 | public static function action_url($action = '', $data = array(), $metadata = array()) { |
| 49 | - $baseurl = self::sanitized_url() . $action . '?'; |
|
| 49 | + $baseurl = self::sanitized_url().$action.'?'; |
|
| 50 | 50 | $params = ''; |
| 51 | 51 | foreach ($data as $key => $value) { |
| 52 | - $params .= '&' . $key . '=' . urlencode($value); |
|
| 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 | - return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret()); |
|
| 57 | + return $baseurl.$params.'&checksum='.sha1($action.$params.self::sanitized_secret()); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if (substr($serverurl, -4) == '/api') { |
| 71 | 71 | $serverurl = rtrim($serverurl, '/api'); |
| 72 | 72 | } |
| 73 | - return $serverurl . '/api/'; |
|
| 73 | + return $serverurl.'/api/'; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -91,8 +91,8 @@ discard block |
||
| 91 | 91 | $pserverurl = parse_url(trim(\mod_bigbluebuttonbn\locallib\config::get('server_url'))); |
| 92 | 92 | $pserverurlport = ""; |
| 93 | 93 | if (isset($pserverurl['port'])) { |
| 94 | - $pserverurlport = ":" . $pserverurl['port']; |
|
| 94 | + $pserverurlport = ":".$pserverurl['port']; |
|
| 95 | 95 | } |
| 96 | - return $pserverurl['scheme'] . "://" . $pserverurl['host'] . $pserverurlport . "/"; |
|
| 96 | + return $pserverurl['scheme']."://".$pserverurl['host'].$pserverurlport."/"; |
|
| 97 | 97 | } |
| 98 | 98 | } |
@@ -59,11 +59,11 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public static function _get_metadata(collection $collection) { |
| 61 | 61 | |
| 62 | - // The table bigbluebuttonbn stores only the room properties. |
|
| 63 | - // However, there is a chance that some personal information is stored as metadata. |
|
| 64 | - // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 65 | - // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 66 | - // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 62 | + // The table bigbluebuttonbn stores only the room properties. |
|
| 63 | + // However, there is a chance that some personal information is stored as metadata. |
|
| 64 | + // This would be done in the column 'participants' where rules can be set to define BBB roles. |
|
| 65 | + // It is fair to say that only the userid is stored, which is useless if user is removed. |
|
| 66 | + // But if this is a concern a refactoring on the way the rules are stored will be required. |
|
| 67 | 67 | $collection->add_database_table('bigbluebuttonbn', [ |
| 68 | 68 | 'participants' => 'privacy:metadata:bigbluebuttonbn:participants', |
| 69 | 69 | ], 'privacy:metadata:bigbluebuttonbn'); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | 'meetingid' => $record->meetingid, |
| 208 | 208 | 'log' => $record->log, |
| 209 | 209 | 'meta' => $record->meta, |
| 210 | - ]; |
|
| 210 | + ]; |
|
| 211 | 211 | return $carry; |
| 212 | 212 | }, |
| 213 | 213 | function($instanceid, $data) use ($user, $instanceidstocmids) { |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | defined('MOODLE_INTERNAL') || die(); |
| 38 | 38 | |
| 39 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 39 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Privacy class for requesting user data. |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | $recordings = bigbluebuttonbn_get_allrecordings( |
| 88 | 88 | $selected, $bigbluebuttonbnid, false, |
| 89 | - (boolean)\mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled') |
|
| 89 | + (boolean) \mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled') |
|
| 90 | 90 | ); |
| 91 | 91 | // Exclude the ones that are already imported. |
| 92 | 92 | if (!empty($recordings)) { |
@@ -221,10 +221,10 @@ |
||
| 221 | 221 | if ($groupobj != null) { |
| 222 | 222 | $actions .= ' <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n"; |
| 223 | 223 | } |
| 224 | - $actions .= ' <INPUT type="submit" name="submit" value="' . |
|
| 225 | - get_string('view_conference_action_end', 'bigbluebuttonbn') . |
|
| 226 | - '" class="btn btn-primary btn-sm" onclick="return confirm(\'' . |
|
| 227 | - get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n"; |
|
| 224 | + $actions .= ' <INPUT type="submit" name="submit" value="'. |
|
| 225 | + get_string('view_conference_action_end', 'bigbluebuttonbn'). |
|
| 226 | + '" class="btn btn-primary btn-sm" onclick="return confirm(\''. |
|
| 227 | + get_string('index_confirm_end', 'bigbluebuttonbn').'\')">'."\n"; |
|
| 228 | 228 | $actions .= '</form>'."\n"; |
| 229 | 229 | } |
| 230 | 230 | return $actions; |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | use context_module; |
| 31 | 31 | use mod_bigbluebuttonbn_external; |
| 32 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 33 | -require_once($CFG->dirroot . '/lib/grouplib.php'); |
|
| 32 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 33 | +require_once($CFG->dirroot.'/lib/grouplib.php'); |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Mobile output class for bigbluebuttonbn |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $bigbluebuttonbn = $viewinstance['bigbluebuttonbn']; |
| 68 | 68 | $context = context_module::instance($cm->id); |
| 69 | 69 | |
| 70 | - require_login($course->id, false , $cm, true, true); |
|
| 70 | + require_login($course->id, false, $cm, true, true); |
|
| 71 | 71 | require_capability('mod/bigbluebuttonbn:join', $context); |
| 72 | 72 | |
| 73 | 73 | // Add view event. |
@@ -138,15 +138,15 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | // Operation URLs. |
| 141 | - $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
|
| 142 | - $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid . |
|
| 143 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 144 | - $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
|
| 145 | - 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 146 | - $bbbsession['meetingEventsURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=meeting' . |
|
| 147 | - '_events&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 148 | - $bbbsession['joinURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=join&id=' . $args->cmid . |
|
| 149 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 141 | + $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id; |
|
| 142 | + $bbbsession['logoutURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid. |
|
| 143 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 144 | + $bbbsession['recordingReadyURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=recording_'. |
|
| 145 | + 'ready&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 146 | + $bbbsession['meetingEventsURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=meeting'. |
|
| 147 | + '_events&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 148 | + $bbbsession['joinURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=join&id='.$args->cmid. |
|
| 149 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 150 | 150 | |
| 151 | 151 | // Initialize session variable used across views. |
| 152 | 152 | $SESSION->bigbluebuttonbn_bbbsession = $bbbsession; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | if ($response['returncode'] == 'FAILED') { |
| 184 | 184 | // The meeting could not be created. |
| 185 | - $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 185 | + $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 186 | 186 | $e = get_string($errorkey, 'bigbluebuttonbn'); |
| 187 | 187 | return(self::mobile_print_error($e)); |
| 188 | 188 | } |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | 30 | use context_module; |
| 31 | -use mod_bigbluebuttonbn_external; |
|
| 32 | 31 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
| 33 | 32 | require_once($CFG->dirroot . '/lib/grouplib.php'); |
| 34 | 33 | |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | return null; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $result = $DB->get_recordset_sql('SELECT modtable.* FROM {' . $this->get_module_name() . |
|
| 69 | - '} modtable ' . $contextjoin, array_merge($contextparams)); |
|
| 68 | + $result = $DB->get_recordset_sql('SELECT modtable.* FROM {'.$this->get_module_name(). |
|
| 69 | + '} modtable '.$contextjoin, array_merge($contextparams)); |
|
| 70 | 70 | |
| 71 | 71 | return($result); |
| 72 | 72 | } |
@@ -96,12 +96,12 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | } catch (\dml_missing_record_exception $ex) { |
| 98 | 98 | // Notify it as we run here as admin, we should see everything. |
| 99 | - debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document, not all required data is available: ' . |
|
| 99 | + debugging('Error retrieving '.$this->areaid.' '.$record->id.' document, not all required data is available: '. |
|
| 100 | 100 | $ex->getMessage(), DEBUG_DEVELOPER); |
| 101 | 101 | return false; |
| 102 | 102 | } catch (\dml_exception $ex) { |
| 103 | 103 | // Notify it as we run here as admin, we should see everything. |
| 104 | - debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document: ' . $ex->getMessage(), DEBUG_DEVELOPER); |
|
| 104 | + debugging('Error retrieving '.$this->areaid.' '.$record->id.' document: '.$ex->getMessage(), DEBUG_DEVELOPER); |
|
| 105 | 105 | return false; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | namespace mod_bigbluebuttonbn\search; |
| 27 | -use core_tag\output\tag; |
|
| 28 | 27 | |
| 29 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 30 | 29 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | defined('MOODLE_INTERNAL') || die(); |
| 30 | 30 | |
| 31 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Class containing the scheduled task for lti module. |