Skip to content

Commit 35f3dc1

Browse files
committed
fix: Remove get_legacy_logdata functions
These have now seen final deprecation from M4.2.
1 parent d2ead30 commit 35f3dc1

4 files changed

+0
-40
lines changed

classes/event/collection_deleted.php

-10
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,4 @@ public static function get_name() {
5959
return get_string('eventcollectiondeleted', 'mod_mediagallery');
6060
}
6161

62-
/**
63-
* Return the legacy event log data.
64-
*
65-
* @return array|null
66-
*/
67-
protected function get_legacy_logdata() {
68-
return array($this->courseid, 'mediagallery', 'delete collection', 'view.php?id=' . $this->contextinstanceid,
69-
$this->objectid, $this->contextinstanceid);
70-
}
71-
7262
}

classes/event/course_module_viewed.php

-10
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,4 @@ public function get_url() {
5959
return new \moodle_url('/mod/mediagallery/view.php', array('id' => $this->contextinstanceid));
6060
}
6161

62-
/**
63-
* Return the legacy event log data.
64-
*
65-
* @return array|null
66-
*/
67-
protected function get_legacy_logdata() {
68-
return array($this->courseid, 'mediagallery', 'view', 'view.php?id=' . $this->contextinstanceid,
69-
$this->objectid, $this->contextinstanceid);
70-
}
71-
7262
}

classes/event/gallery_deleted.php

-10
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,4 @@ public function get_url() {
7878
return new \moodle_url('/mod/mediagallery/view.php', array('id' => $this->contextinstanceid));
7979
}
8080

81-
/**
82-
* Return the legacy event log data.
83-
*
84-
* @return array|null
85-
*/
86-
protected function get_legacy_logdata() {
87-
return array($this->courseid, 'mediagallery', 'delete gallery', 'view.php?id=' . $this->contextinstanceid,
88-
$this->objectid, $this->contextinstanceid);
89-
}
90-
9181
}

classes/event/gallery_viewed.php

-10
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,4 @@ public function get_url() {
6868
return new \moodle_url('/mod/mediagallery/view.php', array('g' => $this->objectid));
6969
}
7070

71-
/**
72-
* Return the legacy event log data.
73-
*
74-
* @return array|null
75-
*/
76-
protected function get_legacy_logdata() {
77-
return array($this->courseid, 'mediagallery', 'view', 'view.php?g=' . $this->objectid,
78-
$this->objectid, $this->contextinstanceid);
79-
}
80-
8171
}

0 commit comments

Comments
 (0)