Implement get_objectid_mapping (#374)
This commit is contained in:
parent
6a19ec83e9
commit
60b247f441
1 changed files with 9 additions and 0 deletions
|
@ -42,4 +42,13 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
|||
$this->data['objecttable'] = 'customcert';
|
||||
parent::init();
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'customcert', 'restore' => 'customcert');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
// No need to map.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue