mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -108,4 +108,7 @@ class chapter_created extends \core\event\base {
|
|||
$this->data['objecttable'] = 'book_chapters';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book_chapters', 'restore' => 'book_chapter');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,4 +104,8 @@ class chapter_deleted extends \core\event\base {
|
|||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['objecttable'] = 'book_chapters';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book_chapters', 'restore' => 'book_chapter');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,7 @@ class chapter_updated extends \core\event\base {
|
|||
$this->data['objecttable'] = 'book_chapters';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book_chapters', 'restore' => 'book_chapter');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,4 +104,8 @@ class chapter_viewed extends \core\event\base {
|
|||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'book_chapters';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book_chapters', 'restore' => 'book_chapter');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,4 +64,8 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
|||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'book';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'book', 'restore' => 'book');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue