| Línea 50... |
Línea 50... |
| 50 |
*/
|
50 |
*/
|
| 51 |
public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
|
51 |
public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
|
| 52 |
parent::__construct($name, $vtype, $value, $visibility, $status);
|
52 |
parent::__construct($name, $vtype, $value, $visibility, $status);
|
| 53 |
}
|
53 |
}
|
| Línea 54... |
Línea 54... |
| 54 |
|
54 |
|
| 55 |
public function set_ui_filename($label, $value, array $options = null) {
|
55 |
public function set_ui_filename($label, $value, ?array $options = null) {
|
| 56 |
$this->make_ui(self::UI_HTML_TEXTFIELD, $label, null, $options);
|
56 |
$this->make_ui(self::UI_HTML_TEXTFIELD, $label, null, $options);
|
| 57 |
$this->set_value($value);
|
57 |
$this->set_value($value);
|
| 58 |
}
|
58 |
}
|
| Línea 183... |
Línea 183... |
| 183 |
* section backup setting to control if section will include
|
183 |
* section backup setting to control if section will include
|
| 184 |
* user information or no, depends of @backup_users_setting
|
184 |
* user information or no, depends of @backup_users_setting
|
| 185 |
*/
|
185 |
*/
|
| 186 |
class backup_section_userinfo_setting extends section_backup_setting {}
|
186 |
class backup_section_userinfo_setting extends section_backup_setting {}
|
| Línea -... |
Línea 187... |
| - |
|
187 |
|
| - |
|
188 |
/**
|
| - |
|
189 |
* Subsection base class (section delegated to a course module).
|
| - |
|
190 |
*/
|
| - |
|
191 |
class subsection_backup_setting extends section_backup_setting {
|
| - |
|
192 |
/**
|
| - |
|
193 |
* Class constructor.
|
| - |
|
194 |
*
|
| - |
|
195 |
* @param string $name Name of the setting
|
| - |
|
196 |
* @param string $vtype Type of the setting, for example base_setting::IS_TEXT
|
| - |
|
197 |
* @param mixed $value Value of the setting
|
| - |
|
198 |
* @param bool $visibility Is the setting visible in the UI, for example base_setting::VISIBLE
|
| - |
|
199 |
* @param int $status Status of the setting with regards to the locking, for example base_setting::NOT_LOCKED
|
| - |
|
200 |
*/
|
| - |
|
201 |
public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
|
| - |
|
202 |
parent::__construct($name, $vtype, $value, $visibility, $status);
|
| - |
|
203 |
$this->level = self::SUBSECTION_LEVEL;
|
| - |
|
204 |
}
|
| - |
|
205 |
}
|
| - |
|
206 |
|
| - |
|
207 |
/**
|
| - |
|
208 |
* generic section setting to pass various settings between tasks and steps
|
| - |
|
209 |
*/
|
| - |
|
210 |
class backup_subsection_generic_setting extends subsection_backup_setting {
|
| - |
|
211 |
}
|
| - |
|
212 |
|
| - |
|
213 |
/**
|
| - |
|
214 |
* Setting to define if one section is included or no. Activities _included
|
| - |
|
215 |
* settings depend of them if available
|
| - |
|
216 |
*/
|
| - |
|
217 |
class backup_subsection_included_setting extends subsection_backup_setting {
|
| - |
|
218 |
}
|
| - |
|
219 |
|
| - |
|
220 |
/**
|
| - |
|
221 |
* section backup setting to control if section will include
|
| - |
|
222 |
* user information or no, depends of @backup_users_setting
|
| - |
|
223 |
*/
|
| - |
|
224 |
class backup_subsection_userinfo_setting extends subsection_backup_setting {
|
| - |
|
225 |
}
|
| Línea 187... |
Línea 226... |
| 187 |
|
226 |
|
| Línea 188... |
Línea 227... |
| 188 |
|
227 |
|
| 189 |
// Activity backup settings
|
228 |
// Activity backup settings
|
| Línea 205... |
Línea 244... |
| 205 |
* user information or no, depends of @backup_users_setting
|
244 |
* user information or no, depends of @backup_users_setting
|
| 206 |
*/
|
245 |
*/
|
| 207 |
class backup_activity_userinfo_setting extends activity_backup_setting {}
|
246 |
class backup_activity_userinfo_setting extends activity_backup_setting {}
|
| Línea 208... |
Línea 247... |
| 208 |
|
247 |
|
| - |
|
248 |
/**
|
| - |
|
249 |
* Subactivity base class (activity inside a delegated section).
|
| - |
|
250 |
*/
|
| - |
|
251 |
class subactivity_backup_setting extends activity_backup_setting {
|
| - |
|
252 |
/**
|
| - |
|
253 |
* Class constructor.
|
| - |
|
254 |
*
|
| - |
|
255 |
* @param string $name Name of the setting
|
| - |
|
256 |
* @param string $vtype Type of the setting, for example base_setting::IS_TEXT
|
| - |
|
257 |
* @param mixed $value Value of the setting
|
| - |
|
258 |
* @param bool $visibility Is the setting visible in the UI, for example base_setting::VISIBLE
|
| - |
|
259 |
* @param int $status Status of the setting with regards to the locking, for example base_setting::NOT_LOCKED
|
| - |
|
260 |
*/
|
| - |
|
261 |
public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
|
| - |
|
262 |
parent::__construct($name, $vtype, $value, $visibility, $status);
|
| - |
|
263 |
$this->level = self::SUBACTIVITY_LEVEL;
|
| - |
|
264 |
}
|
| - |
|
265 |
}
|
| - |
|
266 |
|
| - |
|
267 |
/**
|
| - |
|
268 |
* Generic subactivity (activity inside a delegated section) setting to pass various settings between tasks and steps
|
| - |
|
269 |
*/
|
| - |
|
270 |
class backup_subactivity_generic_setting extends subactivity_backup_setting {
|
| - |
|
271 |
}
|
| - |
|
272 |
|
| - |
|
273 |
/**
|
| - |
|
274 |
* Subactivity (activity inside a delegated section) backup setting to control if activity will
|
| - |
|
275 |
* be included or no, depends of @backup_activities_setting and
|
| - |
|
276 |
* optionally parent section included setting
|
| - |
|
277 |
*/
|
| - |
|
278 |
class backup_subactivity_included_setting extends subactivity_backup_setting {
|
| - |
|
279 |
}
|
| - |
|
280 |
|
| - |
|
281 |
/**
|
| - |
|
282 |
* Subactivity (activity inside a delegated section) backup setting to control if activity will include
|
| - |
|
283 |
* user information or no, depends of @backup_users_setting
|
| - |
|
284 |
*/
|
| - |
|
285 |
class backup_subactivity_userinfo_setting extends subactivity_backup_setting {
|
| - |
|
286 |
}
|
| - |
|
287 |
|
| 209 |
/**
|
288 |
/**
|
| 210 |
* Root setting to control if backup will include content bank content or no
|
289 |
* Root setting to control if backup will include content bank content or no
|
| 211 |
*/
|
290 |
*/
|
| 212 |
class backup_contentbankcontent_setting extends backup_generic_setting {
|
291 |
class backup_contentbankcontent_setting extends backup_generic_setting {
|