@@ -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 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | 'objectid' => $this->objectid, |
| 84 | 84 | 'contextinstanceid' => $this->contextinstanceid, |
| 85 | 85 | 'other' => $this->other |
| 86 | - ); |
|
| 86 | + ); |
|
| 87 | 87 | $string = $this->description; |
| 88 | 88 | foreach ($vars as $key => $value) { |
| 89 | 89 | $string = str_replace("##" . $key, $value, $string); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | $string = $this->description; |
| 88 | 88 | foreach ($vars as $key => $value) { |
| 89 | - $string = str_replace("##" . $key, $value, $string); |
|
| 89 | + $string = str_replace("##".$key, $value, $string); |
|
| 90 | 90 | } |
| 91 | 91 | return $string; |
| 92 | 92 | } |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | * @param string $url The url to the assign module instance. |
| 109 | 109 | */ |
| 110 | 110 | public function set_legacy_logdata($action = '', $info = '', $url = '') { |
| 111 | - $fullurl = 'view.php?id=' . $this->contextinstanceid; |
|
| 111 | + $fullurl = 'view.php?id='.$this->contextinstanceid; |
|
| 112 | 112 | if ($url != '') { |
| 113 | - $fullurl .= '&' . $url; |
|
| 113 | + $fullurl .= '&'.$url; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | $this->legacylogdata = array($this->courseid, 'bigbluebuttonbn', $action, $fullurl, $info, $this->contextinstanceid); |
@@ -27,7 +27,7 @@ |
||
| 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 | * The mod_bigbluebuttonbn class for event name definition. |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) { |
| 45 | 45 | parent::init($crud, $edulevel); |
| 46 | - $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity " . |
|
| 46 | + $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity ". |
|
| 47 | 47 | "with id '##objectid' for the course id '##courseid'."; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function view_bigbluebuttonbn($bigbluebuttonbnid) { |
| 63 | 63 | global $DB, $CFG; |
| 64 | - require_once($CFG->dirroot . "/mod/bigbluebuttonbn/lib.php"); |
|
| 64 | + require_once($CFG->dirroot."/mod/bigbluebuttonbn/lib.php"); |
|
| 65 | 65 | |
| 66 | 66 | $params = self::validate_parameters(self::view_bigbluebuttonbn_parameters(), |
| 67 | 67 | array( |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since Moodle 3.3 |
| 110 | 110 | */ |
| 111 | 111 | public static function get_bigbluebuttonbns_by_courses_parameters() { |
| 112 | - return new external_function_parameters ( |
|
| 112 | + return new external_function_parameters( |
|
| 113 | 113 | array( |
| 114 | 114 | 'courseids' => new external_multiple_structure( |
| 115 | 115 | new external_value(PARAM_INT, 'Course id'), 'Array of course ids', VALUE_DEFAULT, array() |
@@ -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 | require_once($CFG->libdir.'/adminlib.php'); |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -63,12 +63,12 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function render_group_header($name, $itemname = null, $itemdescription = null) { |
| 65 | 65 | if ($itemname === null) { |
| 66 | - $itemname = get_string('config_' . $name, 'bigbluebuttonbn'); |
|
| 66 | + $itemname = get_string('config_'.$name, 'bigbluebuttonbn'); |
|
| 67 | 67 | } |
| 68 | 68 | if ($itemdescription === null) { |
| 69 | - $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn'); |
|
| 69 | + $itemdescription = get_string('config_'.$name.'_description', 'bigbluebuttonbn'); |
|
| 70 | 70 | } |
| 71 | - $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription); |
|
| 71 | + $item = new \admin_setting_heading('bigbluebuttonbn_config_'.$name, $itemname, $itemdescription); |
|
| 72 | 72 | $this->settings->add($item); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | * @return Object |
| 98 | 98 | */ |
| 99 | 99 | public function render_group_element_text($name, $default = null, $type = PARAM_RAW) { |
| 100 | - $item = new \admin_setting_configtext('bigbluebuttonbn_' . $name, |
|
| 101 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 102 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 100 | + $item = new \admin_setting_configtext('bigbluebuttonbn_'.$name, |
|
| 101 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 102 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 103 | 103 | $default, $type); |
| 104 | 104 | return $item; |
| 105 | 105 | } |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | * @return Object |
| 114 | 114 | */ |
| 115 | 115 | public function render_group_element_checkbox($name, $default = null) { |
| 116 | - $item = new \admin_setting_configcheckbox('bigbluebuttonbn_' . $name, |
|
| 117 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 118 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 116 | + $item = new \admin_setting_configcheckbox('bigbluebuttonbn_'.$name, |
|
| 117 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 118 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 119 | 119 | $default); |
| 120 | 120 | return $item; |
| 121 | 121 | } |
@@ -130,9 +130,9 @@ discard block |
||
| 130 | 130 | * @return Object |
| 131 | 131 | */ |
| 132 | 132 | public function render_group_element_configmultiselect($name, $defaultsetting, $choices) { |
| 133 | - $item = new \admin_setting_configmultiselect('bigbluebuttonbn_' . $name, |
|
| 134 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 135 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 133 | + $item = new \admin_setting_configmultiselect('bigbluebuttonbn_'.$name, |
|
| 134 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 135 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 136 | 136 | $defaultsetting, $choices); |
| 137 | 137 | return $item; |
| 138 | 138 | } |
@@ -147,9 +147,9 @@ discard block |
||
| 147 | 147 | * @return Object |
| 148 | 148 | */ |
| 149 | 149 | public function render_group_element_configselect($name, $defaultsetting, $choices) { |
| 150 | - $item = new \admin_setting_configselect('bigbluebuttonbn_' . $name, |
|
| 151 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 152 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 150 | + $item = new \admin_setting_configselect('bigbluebuttonbn_'.$name, |
|
| 151 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 152 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 153 | 153 | $defaultsetting, $choices); |
| 154 | 154 | return $item; |
| 155 | 155 | } |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function render_warning_message($name, $message, $type = 'warning', $closable = true) { |
| 168 | 168 | global $OUTPUT; |
| 169 | - $output = $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
|
| 170 | - 'bigbluebuttonbn_' . $name)."\n"; |
|
| 169 | + $output = $OUTPUT->box_start('box boxalignleft adminerror alert alert-'.$type.' alert-block fade in', |
|
| 170 | + 'bigbluebuttonbn_'.$name)."\n"; |
|
| 171 | 171 | if ($closable) { |
| 172 | - $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>' . "\n"; |
|
| 172 | + $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>'."\n"; |
|
| 173 | 173 | } |
| 174 | - $output .= ' ' . $message . "\n"; |
|
| 175 | - $output .= $OUTPUT->box_end() . "\n"; |
|
| 176 | - $item = new \admin_setting_heading('bigbluebuttonbn_' . $name, '', $output); |
|
| 174 | + $output .= ' '.$message."\n"; |
|
| 175 | + $output .= $OUTPUT->box_end()."\n"; |
|
| 176 | + $item = new \admin_setting_heading('bigbluebuttonbn_'.$name, '', $output); |
|
| 177 | 177 | $this->settings->add($item); |
| 178 | 178 | return $item; |
| 179 | 179 | } |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | $filemanageroptions['mainfile'] = true; |
| 196 | 196 | |
| 197 | 197 | $filemanager = new \admin_setting_configstoredfile('mod_bigbluebuttonbn/presentationdefault', |
| 198 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 199 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 198 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 199 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 200 | 200 | 'presentationdefault', |
| 201 | 201 | 0, |
| 202 | 202 | $filemanageroptions); |