From 9e15569d485ffedd7addf8d239b3b69602d4c5e3 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Sat, 4 Jul 2020 12:01:09 +0200 Subject: [PATCH] MDL-69202 Restore backup: add getter method for oldmoduleid --- backup/moodle2/restore_activity_task.class.php | 9 +++++++++ .../backup/moodle2/restore_lti_activity_task.class.php | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backup/moodle2/restore_activity_task.class.php b/backup/moodle2/restore_activity_task.class.php index 9e0cd35d883..c27d6a4c0aa 100644 --- a/backup/moodle2/restore_activity_task.class.php +++ b/backup/moodle2/restore_activity_task.class.php @@ -100,6 +100,15 @@ abstract class restore_activity_task extends restore_task { return $this->moduleid; } + /** + * Returns the old course module id (cmid of activity which will be restored) + * + * @return int + */ + public function get_old_moduleid() { + return $this->oldmoduleid; + } + public function get_old_moduleversion() { return $this->oldmoduleversion; } diff --git a/mod/lti/backup/moodle2/restore_lti_activity_task.class.php b/mod/lti/backup/moodle2/restore_lti_activity_task.class.php index bc291a99fd8..66eec0e3695 100644 --- a/mod/lti/backup/moodle2/restore_lti_activity_task.class.php +++ b/mod/lti/backup/moodle2/restore_lti_activity_task.class.php @@ -129,13 +129,4 @@ class restore_lti_activity_task extends restore_activity_task { return $rules; } - - /** - * Getter for ltisource plugins. - * - * @return int - */ - public function get_old_moduleid() { - return $this->oldmoduleid; - } }