Merge branch 'MDL-77024_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-02-02 11:52:41 +08:00
commit c4840c6b0c
18 changed files with 20 additions and 20 deletions

View File

@ -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() {

View File

@ -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;
}

View File

@ -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;
}
/**

View File

@ -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;
}
/**

View File

@ -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() {

View File

@ -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() {

View File

@ -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;
}

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {