|
@@ 99-105 (lines=7) @@
|
| 96 |
|
* |
| 97 |
|
* @return Object |
| 98 |
|
*/ |
| 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'), |
| 103 |
|
$default, $type); |
| 104 |
|
return $item; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* Render a checkbox element in a group. |
|
@@ 115-121 (lines=7) @@
|
| 112 |
|
* |
| 113 |
|
* @return Object |
| 114 |
|
*/ |
| 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'), |
| 119 |
|
$default); |
| 120 |
|
return $item; |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
/** |
| 124 |
|
* Render a multiselect element in a group. |
|
@@ 132-138 (lines=7) @@
|
| 129 |
|
* |
| 130 |
|
* @return Object |
| 131 |
|
*/ |
| 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'), |
| 136 |
|
$defaultsetting, $choices); |
| 137 |
|
return $item; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
/** |
| 141 |
|
* Render a select element in a group. |
|
@@ 149-155 (lines=7) @@
|
| 146 |
|
* |
| 147 |
|
* @return Object |
| 148 |
|
*/ |
| 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'), |
| 153 |
|
$defaultsetting, $choices); |
| 154 |
|
return $item; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
/** |
| 158 |
|
* Render a general warning message. |