Implement get_objectid_mapping (#374)
This commit is contained in:
parent
378396ecf6
commit
4a5b000c59
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