Project: moodle
Issue MDL-40063: Replace add_to_log with an event trigger - mod_quiz
Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class. *mod/quiz (14 calls)* /mod/quiz/processattempt.php:164: add_to_log($attemptobj->get_courseid(), 'quiz', 'close attempt', /mod/quiz/overridedelete.php:66: add_to_log($cm->course, 'quiz', 'delete override', /mod/quiz/attempt.php:98: add_to_log($attemptobj->get_courseid(), 'quiz', 'continue attempt', /mod/quiz/report.php:86: add_to_log($course->id, 'quiz', 'report', 'report.php?id=' . $cm->id . '&mode=' . $mode, /mod/quiz/index.php:39: add_to_log($course->id, "quiz", "view all", "index.php?id=$course->id", ""); /mod/quiz/report/attemptsreport.php:321: add_to_log($quiz->course, 'quiz', 'delete attempt', 'report.php?id=' . $cm->id, /mod/quiz/edit.php:158: add_to_log($cm->course, 'quiz', 'editquestions', /mod/quiz/comment.php:47: add_to_log($attemptobj->get_courseid(), 'quiz', 'manualgrade', 'comment.php?attempt=' . /mod/quiz/locallib.php:271: add_to_log($quizobj->get_courseid(), 'quiz', 'preview', 'view.php?id='.$quizobj->get_cmid(), /mod/quiz/locallib.php:274: add_to_log($quizobj->get_courseid(), 'quiz', 'attempt', 'review.php?attempt='.$attempt->id, /mod/quiz/overrideedit.php:175: add_to_log($cm->course, 'quiz', 'edit override', /mod/quiz/addrandom.php:93: add_to_log($quiz->course, 'quiz', 'addcategory', /mod/quiz/view.php:73: add_to_log($course->id, 'quiz', 'view', 'view.php?id=' . $cm->id, $quiz->id, $cm->id); /mod/quiz/review.php:89: add_to_log($attemptobj->get_courseid(), 'quiz', 'review', 'review.php?attempt=' . /mod/quiz/summary.php:81: add_to_log($attemptobj->get_courseid(), 'quiz', 'view summary',
Story points: 100