mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -40,4 +40,8 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
|||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'chat';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'chat', 'restore' => 'chat');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,4 +97,8 @@ class message_sent extends \core\event\base {
|
|||
throw new \coding_exception('The \'relateduserid\' must be set.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'chat_messages', 'restore' => 'chat_message');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,4 +107,12 @@ class sessions_viewed extends \core\event\base {
|
|||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'chat', 'restore' => 'chat');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
// Nothing to map.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue