MDL-45658 events: included enrolment method in the user_enrolment_deleted/updated event descriptions

This commit is contained in:
Mark Nelson 2014-05-21 19:30:18 -07:00
parent c1ed254643
commit 81512b9856
2 changed files with 4 additions and 4 deletions

View file

@ -66,8 +66,8 @@ class user_enrolment_deleted extends base {
* @return string
*/
public function get_description() {
return "The user with id '$this->userid' unenrolled the user with id '$this->relateduserid' from the course with " .
"id '$this->courseid'.";
return "The user with id '$this->userid' unenrolled the user with id '$this->relateduserid' using the enrolment method " .
"'{$this->other['enrol']}' from the course with id '$this->courseid'.";
}
/**

View file

@ -65,8 +65,8 @@ class user_enrolment_updated extends base {
* @return string
*/
public function get_description() {
return "The user with id '$this->userid' updated the enrolment for the user with id '$this->relateduserid' in " .
"the course with id '$this->courseid'.";
return "The user with id '$this->userid' updated the enrolment for the user with id '$this->relateduserid' using the " .
"enrolment method '{$this->other['enrol']}' in the course with id '$this->courseid'.";
}
/**