mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-53974 backup: Add option to backup course competencies
This commit is contained in:
parent
11ee4f71a4
commit
45b9207d7e
7 changed files with 91 additions and 4 deletions
|
@ -1585,6 +1585,21 @@ class backup_course_competencies_structure_step extends backup_structure_step {
|
|||
|
||||
return $wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute conditions.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function execute_condition() {
|
||||
|
||||
// Do not execute if competencies are not included.
|
||||
if (!$this->get_setting_value('competencies')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1612,6 +1627,21 @@ class backup_activity_competencies_structure_step extends backup_structure_step
|
|||
|
||||
return $wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute conditions.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function execute_condition() {
|
||||
|
||||
// Do not execute if competencies are not included.
|
||||
if (!$this->get_setting_value('competencies')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue