Skip to content

Commit

Permalink
removed deprecated legacy methods
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Matthias Opitz authored and keevan committed May 2, 2024
1 parent 6133927 commit afd28d4
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 204 deletions.
12 changes: 0 additions & 12 deletions classes/event/add_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/add_session_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/approve_requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/attendees_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/cancel_booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/cancel_booking_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/course_module_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}
}
8 changes: 0 additions & 8 deletions classes/event/course_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
12 changes: 0 additions & 12 deletions classes/event/delete_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/delete_session_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/signup_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/signup_success.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/take_attendance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
16 changes: 0 additions & 16 deletions classes/event/take_attendance_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/update_manageremail_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/update_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions classes/event/update_session_failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit afd28d4

Please sign in to comment.