mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-46455 mod_*: added restore mapping to events
This commit is contained in:
parent
ef15eae433
commit
0bfafc5ba0
170 changed files with 1364 additions and 19 deletions
|
@ -102,4 +102,7 @@ class book_exported extends \core\event\base {
|
|||
$this->data['objecttable'] = 'book';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book', 'restore' => 'book');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,4 +102,7 @@ class book_printed extends \core\event\base {
|
|||
$this->data['objecttable'] = 'book';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book', 'restore' => 'book');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,10 @@ class chapter_printed extends \core\event\base {
|
|||
protected function init() {
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'book';
|
||||
$this->data['objecttable'] = 'book_chapters';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book_chapters', 'restore' => 'book_chapter');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue