mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
MDL-77024 quiz: fix metatdata on log events
Some had the wrong edulevel or crud
This commit is contained in:
parent
8de12b7997
commit
deed4fe251
mod/quiz/classes/event
attempt_manual_grading_completed.phpattempt_preview_started.phpattempt_reviewed.phpattempt_summary_viewed.phppage_break_created.phppage_break_deleted.phpquestion_manually_graded.phpquiz_grade_updated.phpquiz_repaginated.phpsection_break_created.phpsection_break_deleted.phpsection_shuffle_updated.phpsection_title_updated.phpslot_created.phpslot_deleted.phpslot_mark_updated.phpslot_moved.phpslot_requireprevious_updated.php
@ -28,7 +28,7 @@ class attempt_manual_grading_completed extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_attempts';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_OTHER;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public function get_description() {
|
||||
|
@ -47,7 +47,7 @@ class attempt_preview_started extends \core\event\base {
|
||||
*/
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_attempts';
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ class attempt_reviewed extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_attempts';
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -50,7 +50,7 @@ class attempt_summary_viewed extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_attempts';
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,8 +41,8 @@ namespace mod_quiz\event;
|
||||
class page_break_created extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -41,8 +41,8 @@ namespace mod_quiz\event;
|
||||
class page_break_deleted extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['crud'] = 'd';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -48,7 +48,7 @@ class question_manually_graded extends \core\event\base {
|
||||
*/
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'question';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ class quiz_grade_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -41,7 +41,7 @@ class quiz_repaginated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -44,7 +44,7 @@ class section_break_created extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_sections';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -43,7 +43,7 @@ class section_break_deleted extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_sections';
|
||||
$this->data['crud'] = 'd';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -43,7 +43,7 @@ class section_shuffle_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_sections';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -44,7 +44,7 @@ class section_title_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_sections';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -43,7 +43,7 @@ class slot_created extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -42,7 +42,7 @@ class slot_deleted extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'd';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -43,7 +43,7 @@ class slot_mark_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -44,7 +44,7 @@ class slot_moved extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
@ -42,7 +42,7 @@ class slot_requireprevious_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'quiz_slots';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user