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 d8f275d588
commit d37bfab4cd

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