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 378396ecf6
commit 4a5b000c59

View file

@ -42,4 +42,13 @@ class course_module_viewed extends \core\event\course_module_viewed {
$this->data['objecttable'] = 'customcert'; $this->data['objecttable'] = 'customcert';
parent::init(); 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;
}
} }