|
| __construct (protected cm_info $cminfo, protected int $userid,) |
| Constructor.
|
|
| __destruct () |
| Destructor.
|
|
| get_package () |
| Prepare the backup file using appropriate setting overrides and return relevant information.
|
|
◆ __construct()
core\moodlenet\activity_packager::__construct |
( |
protected cm_info | $cminfo, |
|
|
protected 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\activity_packager::get_all_task_settings |
( |
| ) |
|
|
protected |
Get all backup settings available for override.
- Return values
-
array | the associative array of taskclass => settings instances. |
◆ get_package()
core\moodlenet\activity_packager::get_package |
( |
| ) |
|
Prepare the backup file using appropriate setting overrides and return relevant information.
- Return values
-
◆ override_task_setting()
core\moodlenet\activity_packager::override_task_setting |
( |
array | $alltasksettings, |
|
|
string | $settingname, |
|
|
int | $settingvalue ) |
|
protected |
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()
core\moodlenet\activity_packager::package |
( |
| ) |
|
|
protected |
Package the activity identified by CMID into a new stored_file.
- Return values
-
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/classes/moodlenet/activity_packager.php