mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +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
|
@ -120,4 +120,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
|
|||
$this->data['objecttable'] = 'assign_submission';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'assign_submission', 'restore' => 'submission');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,4 +80,9 @@ class submission_created extends \mod_assign\event\submission_created {
|
|||
throw new \coding_exception('The \'filesubmissioncount\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// No mapping available for 'assignsubmission_file'.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,4 +80,9 @@ class submission_updated extends \mod_assign\event\submission_updated {
|
|||
throw new \coding_exception('The \'filesubmissioncount\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// No mapping available for 'assignsubmission_file'.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,4 +107,8 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
|
|||
parent::init();
|
||||
$this->data['objecttable'] = 'assign_submission';
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'assign_submission', 'restore' => 'submission');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ class submission_created extends \mod_assign\event\submission_created {
|
|||
*/
|
||||
protected function init() {
|
||||
parent::init();
|
||||
$this->data['objecttable'] = 'assignsubmission_file';
|
||||
$this->data['objecttable'] = 'assignsubmission_onlinetext';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -80,4 +80,9 @@ class submission_created extends \mod_assign\event\submission_created {
|
|||
throw new \coding_exception('The \'onlinetextwordcount\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// No mapping available for 'assignsubmission_onlinetext'.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ class submission_updated extends \mod_assign\event\submission_updated {
|
|||
*/
|
||||
protected function init() {
|
||||
parent::init();
|
||||
$this->data['objecttable'] = 'assignsubmission_file';
|
||||
$this->data['objecttable'] = 'assignsubmission_onlinetext';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -80,4 +80,9 @@ class submission_updated extends \mod_assign\event\submission_updated {
|
|||
throw new \coding_exception('The \'onlinetextwordcount\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// No mapping available for 'assignsubmission_onlinetext'.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue