Skip to content

Commit

Permalink
GHI480 Removing deprecated get_legacy_logdata functions. (PoetOS#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurchward authored May 16, 2023
1 parent 5ca3d4c commit 0aa45f1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 40 deletions.
10 changes: 0 additions & 10 deletions classes/event/all_responses_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,4 @@ public function get_url() {
}
return new \moodle_url("/mod/questionnaire/report.php", $params);
}

/**
* Return the legacy event log data.
*
* @return array
*/
protected function get_legacy_logdata() {
return array($this->courseid, "questionnaire", "view report", "report.php?id=" . $this->contextinstanceid, $this->objectid,
$this->contextinstanceid);
}
}
10 changes: 0 additions & 10 deletions classes/event/attempt_saved.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ public function get_url() {
return new \moodle_url("/mod/questionnaire/view.php", array('id' => $this->contextinstanceid));
}

/**
* Return the legacy event log data.
*
* @return array
*/
protected function get_legacy_logdata() {
return array($this->courseid, "questionnaire", "save", "view.php?id=" .
$this->contextinstanceid, $this->other['questionnaireid'], $this->contextinstanceid);
}

/**
* Custom validation.
*
Expand Down
10 changes: 0 additions & 10 deletions classes/event/attempt_submitted.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ public function get_url() {
return new \moodle_url("/mod/questionnaire/view.php", array('id' => $this->contextinstanceid));
}

/**
* Return the legacy event log data.
*
* @return array
*/
protected function get_legacy_logdata() {
return array($this->courseid, "questionnaire", "submit", "view.php?id=" .
$this->contextinstanceid, $this->other['questionnaireid'], $this->contextinstanceid);
}

/**
* Custom validation.
*
Expand Down
10 changes: 0 additions & 10 deletions classes/event/response_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,4 @@ public function get_url() {
$params['group'] = $this->other['currentgroupid'];
return new \moodle_url("/mod/questionnaire/report.php", $params);
}

/**
* Return the legacy event log data.
*
* @return array
*/
protected function get_legacy_logdata() {
return array($this->courseid, "questionnaire", "view report", "report.php?id=" . $this->contextinstanceid, $this->objectid,
$this->contextinstanceid);
}
}

0 comments on commit 0aa45f1

Please sign in to comment.