mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-22895 backup: Adding the feature to support backing up and restoring calendar events
This commit is contained in:
parent
a280078197
commit
8331a159c5
11 changed files with 167 additions and 0 deletions
|
@ -167,6 +167,11 @@ abstract class backup_activity_task extends backup_task {
|
|||
$this->add_step(new backup_activity_logs_structure_step('activity_logs', 'logs.xml'));
|
||||
}
|
||||
|
||||
// Generate the calendar events file (conditionally)
|
||||
if ($this->get_setting_value('calendarevents')) {
|
||||
$this->add_step(new backup_calendarevents_structure_step('activity_calendar', 'calendar.xml'));
|
||||
}
|
||||
|
||||
// Fetch all the activity grade items and put them to backup_ids
|
||||
$this->add_step(new backup_activity_grade_items_to_ids('fetch_activity_grade_items'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue