Packager to prepare appropriate backup of an activity to share to MoodleNet.
More...
|
| __construct (cm_info $cminfo, int $userid,) |
| Constructor.
|
|
| get_package () |
| Prepare the backup file using appropriate setting overrides and return relevant information.
|
|
|
cm_info cm_info | $cminfo |
| $cminfo The course module which the resource belongs to.
|
|
stdClass stdClass | $course |
| $course The course which the resource belongs to.
|
|
string string | $resourcefilename = 'resource' |
| $resourcefilename The filename for the resource.
|
|
int int | $userid |
| $userid The ID of the user performing the packaging.
|
|
Packager to prepare appropriate backup of an activity to share to MoodleNet.
- Copyright
- 2023 Raquel Ortega raque.nosp@m.l.or.nosp@m.tega@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core\moodlenet\activity_packager::__construct |
( |
cm_info | $cminfo, |
|
|
int | $userid ) |
Constructor.
- Parameters
-
cm_info | $cminfo | context module information about the resource being packaged. |
int | $userid | The ID of the user performing the packaging. |
◆ get_all_task_settings()
core\moodlenet\resource_packager::get_all_task_settings |
( |
backup_controller | $controller | ) |
|
|
protectedinherited |
Get all backup settings available for override.
- Return values
-
array | the associative array of taskclass => settings instances. |
◆ get_backup_controller()
core\moodlenet\activity_packager::get_backup_controller |
( |
| ) |
|
|
protected |
◆ get_package()
core\moodlenet\resource_packager::get_package |
( |
| ) |
|
|
inherited |
Prepare the backup file using appropriate setting overrides and return relevant information.
- Return values
-
◆ override_task_setting()
core\moodlenet\resource_packager::override_task_setting |
( |
array | $alltasksettings, |
|
|
string | $settingname, |
|
|
int | $settingvalue ) |
|
protectedinherited |
Override a backup task setting with a given value.
- Parameters
-
array | $alltasksettings | All task settings. |
string | $settingname | The name of the setting to be overridden (task class name format). |
int | $settingvalue | Value to be given to the setting. |
◆ package()
The documentation for this class was generated from the following file: