mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -106,6 +106,11 @@ class backup_course_task extends backup_task {
|
|||
$this->add_step(new backup_comments_structure_step('course_comments', 'comments.xml'));
|
||||
}
|
||||
|
||||
// Generate the calender events file (conditionally)
|
||||
if ($this->get_setting_value('calendarevents')) {
|
||||
$this->add_step(new backup_calendarevents_structure_step('course_calendar', 'calendar.xml'));
|
||||
}
|
||||
|
||||
// Generate the logs file (conditionally)
|
||||
if ($this->get_setting_value('logs')) {
|
||||
$this->add_step(new backup_course_logs_structure_step('course_logs', 'logs.xml'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue