mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-46455 mod_*: added restore mapping to events
This commit is contained in:
parent
ef15eae433
commit
0bfafc5ba0
170 changed files with 1364 additions and 19 deletions
|
@ -98,5 +98,9 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
|||
throw new \coding_exception('The \'anonymous\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'feedback', 'restore' => 'feedback');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -126,5 +126,17 @@ class response_deleted extends \core\event\base {
|
|||
throw new \coding_exception('The \'instanceid\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'feedback_completed', 'restore' => 'feedback_completed');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
$othermapped = array();
|
||||
$othermapped['cmid'] = array('db' => 'course_modules', 'restore' => 'course_module');
|
||||
$othermapped['instanceid'] = array('db' => 'feedback', 'restore' => 'feedback');
|
||||
|
||||
return $othermapped;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -148,5 +148,17 @@ class response_submitted extends \core\event\base {
|
|||
throw new \coding_exception('The \'instanceid\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'feedback_completed', 'restore' => 'feedback_completed');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
$othermapped = array();
|
||||
$othermapped['cmid'] = array('db' => 'course_modules', 'restore' => 'course_module');
|
||||
$othermapped['instanceid'] = array('db' => 'feedback', 'restore' => 'feedback');
|
||||
|
||||
return $othermapped;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue