Implement get_objectid_mapping (#374)

This commit is contained in:
Guillermo Gomez 2020-08-31 11:44:20 +10:00 committed by Mark Nelson
parent 6a19ec83e9
commit 60b247f441

View file

@ -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;
}
}