From e1bb6c19a7adeb60d5564eda2051616b282938b4 Mon Sep 17 00:00:00 2001 From: Matthias Opitz Date: Fri, 1 Mar 2024 15:32:41 +0000 Subject: [PATCH] removed deprecated legacy methods Conflicts: classes/event/add_session.php classes/event/add_session_failed.php classes/event/approve_requests.php classes/event/attendees_viewed.php classes/event/cancel_booking.php classes/event/cancel_booking_failed.php classes/event/course_module_viewed.php classes/event/course_viewed.php classes/event/delete_session.php classes/event/delete_session_failed.php classes/event/signup_failed.php classes/event/signup_success.php classes/event/take_attendance.php classes/event/take_attendance_failed.php classes/event/update_manageremail_failed.php classes/event/update_session.php classes/event/update_session_failed.php --- classes/event/add_session.php | 12 ------------ classes/event/add_session_failed.php | 12 ------------ classes/event/approve_requests.php | 12 ------------ classes/event/attendees_viewed.php | 12 ------------ classes/event/cancel_booking.php | 12 ------------ classes/event/cancel_booking_failed.php | 12 ------------ classes/event/course_module_viewed.php | 12 ------------ classes/event/course_viewed.php | 8 -------- classes/event/delete_session.php | 12 ------------ classes/event/delete_session_failed.php | 12 ------------ classes/event/signup_failed.php | 12 ------------ classes/event/signup_success.php | 12 ------------ classes/event/take_attendance.php | 12 ------------ classes/event/take_attendance_failed.php | 16 ---------------- classes/event/update_manageremail_failed.php | 12 ------------ classes/event/update_session.php | 12 ------------ classes/event/update_session_failed.php | 12 ------------ 17 files changed, 204 deletions(-) diff --git a/classes/event/add_session.php b/classes/event/add_session.php index de58a0a..6815184 100644 --- a/classes/event/add_session.php +++ b/classes/event/add_session.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'add session', 'sessions.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/add_session_failed.php b/classes/event/add_session_failed.php index 02d13b1..23095fb 100644 --- a/classes/event/add_session_failed.php +++ b/classes/event/add_session_failed.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['f' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'add session (FAILED)', 'sessions.php?f=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/approve_requests.php b/classes/event/approve_requests.php index e6100cc..026255c 100644 --- a/classes/event/approve_requests.php +++ b/classes/event/approve_requests.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/attendees.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'take attendance', 'attendees.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/attendees_viewed.php b/classes/event/attendees_viewed.php index 80b67ba..dd01996 100644 --- a/classes/event/attendees_viewed.php +++ b/classes/event/attendees_viewed.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/attendees.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'view attendees', 'attendees.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/cancel_booking.php b/classes/event/cancel_booking.php index 15b7d12..4907147 100644 --- a/classes/event/cancel_booking.php +++ b/classes/event/cancel_booking.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/cancelsignup.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'cancel booking', 'cancelsignup.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/cancel_booking_failed.php b/classes/event/cancel_booking_failed.php index 6e8c4d5..98ef63e 100644 --- a/classes/event/cancel_booking_failed.php +++ b/classes/event/cancel_booking_failed.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/cancelsignup.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'cancel booking (FAILED)', 'cancelsignup.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/course_module_viewed.php b/classes/event/course_module_viewed.php index 55d625c..932a7f6 100644 --- a/classes/event/course_module_viewed.php +++ b/classes/event/course_module_viewed.php @@ -76,16 +76,4 @@ public static function get_name() { public function get_url() { return new \moodle_url('/mod/facetoface/view.php', ['f' => $this->objectid]); } - - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, 'facetoface', 'view facetoface', 'view.php?f=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } } diff --git a/classes/event/course_viewed.php b/classes/event/course_viewed.php index 0a6800a..540b929 100644 --- a/classes/event/course_viewed.php +++ b/classes/event/course_viewed.php @@ -76,12 +76,4 @@ public function get_url() { return new \moodle_url('/mod/facetoface/index.php', ['id' => $this->courseid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [$this->courseid, 'facetoface', 'view all', 'index.php?id=' . $this->courseid]; - } } diff --git a/classes/event/delete_session.php b/classes/event/delete_session.php index 2d9b38c..78f1909 100644 --- a/classes/event/delete_session.php +++ b/classes/event/delete_session.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'delete session', 'sessions.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/delete_session_failed.php b/classes/event/delete_session_failed.php index f17903c..6a68d10 100644 --- a/classes/event/delete_session_failed.php +++ b/classes/event/delete_session_failed.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'delete session (FAILED)', 'sessions.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/signup_failed.php b/classes/event/signup_failed.php index 33af9e0..0c66daa 100644 --- a/classes/event/signup_failed.php +++ b/classes/event/signup_failed.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/signup.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'signup (FAILED)', 'signup.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/signup_success.php b/classes/event/signup_success.php index 6d6257b..717500b 100644 --- a/classes/event/signup_success.php +++ b/classes/event/signup_success.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/signup.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'signup', 'signup.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/take_attendance.php b/classes/event/take_attendance.php index 501b887..6f9c8f8 100644 --- a/classes/event/take_attendance.php +++ b/classes/event/take_attendance.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/attendees.php', ['s' => $this->objectid, 'takeattendance' => 1]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'take attendance', 'attendees.php?s=' . $this->objectid . '&takeattendance=1', - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/take_attendance_failed.php b/classes/event/take_attendance_failed.php index c5b2c16..37d1008 100644 --- a/classes/event/take_attendance_failed.php +++ b/classes/event/take_attendance_failed.php @@ -78,22 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/attendees.php', ['s' => $this->objectid, 'takeattendance' => 1]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, - $this->objecttable, - 'take attendance (FAILED)', - 'attendees.php?s=' . $this->objectid . '&takeattendance=1', - $this->objectid, - $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/update_manageremail_failed.php b/classes/event/update_manageremail_failed.php index 8adf80e..ec2e9e5 100644 --- a/classes/event/update_manageremail_failed.php +++ b/classes/event/update_manageremail_failed.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/signup.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'update manager email (FAILED)', 'signup.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/update_session.php b/classes/event/update_session.php index f120458..9ff16ae 100644 --- a/classes/event/update_session.php +++ b/classes/event/update_session.php @@ -77,18 +77,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'update session', 'sessions.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. * diff --git a/classes/event/update_session_failed.php b/classes/event/update_session_failed.php index a870c76..eaf26ac 100644 --- a/classes/event/update_session_failed.php +++ b/classes/event/update_session_failed.php @@ -78,18 +78,6 @@ public function get_url() { return new \moodle_url('/mod/facetoface/sessions.php', ['s' => $this->objectid]); } - /** - * Return the legacy event log data. - * - * @return array|null - */ - protected function get_legacy_logdata() { - return [ - $this->courseid, $this->objecttable, 'update session (FAILED)', 'sessions.php?s=' . $this->objectid, - $this->objectid, $this->contextinstanceid, - ]; - } - /** * Custom validation. *