MDL-22895 backup: Adding the feature to support backing up and restoring calendar events

This commit is contained in:
Ankit Agarwal 2012-03-09 11:52:47 +08:00
parent a280078197
commit 8331a159c5
11 changed files with 167 additions and 0 deletions

View file

@ -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'));