Project: moodle
Issue MDL-40052: Replace add_to_log with an event trigger - course reports
Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class. *course / reports* /report/participation/index.php:66: add_to_log($course->id, "course", "report participation", "report/participation/index.php?id=$course->id", $course->id); /report/log/index.php:118: add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id); /report/log/graph.php:70: add_to_log($course->id, 'course', 'report log', "report/log/graph.php?user=$user->id&id=$course->id&type=$type&date=$date", $course->id); /report/log/user.php:65: add_to_log($course->id, 'course', 'report log', "report/log/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id); /report/loglive/index.php:51: add_to_log($course->id, 'course', 'report live', "report/loglive/index.php?id=$course->id", $course->id); /report/stats/index.php:70: add_to_log($course->id, "course", "report stats", "report/stats/index.php?course=$course->id", $course->id); /report/stats/graph.php:65: add_to_log($course->id, 'course', 'report stats', "report/stats/graph.php?userid=$userid&id=$course->id&mode=$mode&roleid=$roleid", $course->id); /report/stats/user.php:52: add_to_log($course->id, 'course', 'report stats', "report/stats/user.php?id=$user->id&course=$course->id", $course->id); /report/outline/index.php:40: add_to_log($course->id, 'course', 'report outline', "report/outline/index.php?id=$course->id", $course->id); /report/outline/user.php:56: add_to_log($course->id, 'course', 'report outline', "report/outline/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id);
Story points: 20