@@ -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 | } |
@@ -165,14 +165,14 @@ discard block |
||
| 165 | 165 | * @return Object |
| 166 | 166 | */ |
| 167 | 167 | public function render_warning_message($name, $message, $type = 'warning', $closable = true) { |
| 168 | - $output = $this->output->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
|
| 169 | - 'bigbluebuttonbn_' . $name)."\n"; |
|
| 168 | + $output = $this->output->box_start('box boxalignleft adminerror alert alert-'.$type.' alert-block fade in', |
|
| 169 | + 'bigbluebuttonbn_'.$name)."\n"; |
|
| 170 | 170 | if ($closable) { |
| 171 | - $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>' . "\n"; |
|
| 171 | + $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>'."\n"; |
|
| 172 | 172 | } |
| 173 | - $output .= ' ' . $message . "\n"; |
|
| 174 | - $output .= $this->output->box_end() . "\n"; |
|
| 175 | - $item = new \admin_setting_heading('bigbluebuttonbn_' . $name, '', $output); |
|
| 173 | + $output .= ' '.$message."\n"; |
|
| 174 | + $output .= $this->output->box_end()."\n"; |
|
| 175 | + $item = new \admin_setting_heading('bigbluebuttonbn_'.$name, '', $output); |
|
| 176 | 176 | $this->settings->add($item); |
| 177 | 177 | return $item; |
| 178 | 178 | } |
@@ -194,8 +194,8 @@ discard block |
||
| 194 | 194 | $filemanageroptions['mainfile'] = true; |
| 195 | 195 | |
| 196 | 196 | $filemanager = new \admin_setting_configstoredfile('mod_bigbluebuttonbn/presentationdefault', |
| 197 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 198 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 197 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 198 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 199 | 199 | 'presentationdefault', |
| 200 | 200 | 0, |
| 201 | 201 | $filemanageroptions); |