mirror of
https://github.com/moodle/moodle.git
synced 2025-05-04 23:41:50 +02:00
MDL-46455 mod_*: added additional mapping to be used by events
This commit is contained in:
parent
901a7ff7f2
commit
ef15eae433
mod
@ -149,6 +149,8 @@ class restore_forum_activity_structure_step extends restore_activity_structure_s
|
||||
$data->userid = $this->get_mappingid('user', $data->userid);
|
||||
|
||||
$newitemid = $DB->insert_record('forum_subscriptions', $data);
|
||||
$this->set_mapping('forum_subscription', $oldid, $newitemid, true);
|
||||
|
||||
}
|
||||
|
||||
protected function process_forum_discussion_sub($data) {
|
||||
@ -162,6 +164,7 @@ class restore_forum_activity_structure_step extends restore_activity_structure_s
|
||||
$data->userid = $this->get_mappingid('user', $data->userid);
|
||||
|
||||
$newitemid = $DB->insert_record('forum_discussion_subs', $data);
|
||||
$this->set_mapping('forum_discussion_sub', $oldid, $newitemid, true);
|
||||
}
|
||||
|
||||
protected function process_forum_digest($data) {
|
||||
|
@ -204,6 +204,7 @@ class restore_workshop_activity_structure_step extends restore_activity_structur
|
||||
$data->timegraded = $this->apply_date_offset($data->timegraded);
|
||||
|
||||
$newitemid = $DB->insert_record('workshop_aggregations', $data);
|
||||
$this->set_mapping('workshop_aggregation', $oldid, $newitemid, true);
|
||||
}
|
||||
|
||||
protected function after_execute() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user