mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-45357 events: changed event descriptions to ensure consistency in core
This commit is contained in:
parent
0401143193
commit
c5cfb3ca98
@ -70,8 +70,8 @@ class blog_association_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The blog entry with the id '{$this->other['blogid']}' was associated with the context '{$this->other['associatetype']}' with " .
|
||||
"the id '{$this->other['associateid']}' by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' associated the context '{$this->other['associatetype']}' with the id " .
|
||||
"'{$this->other['associateid']}' to the blog entry with the id '{$this->other['blogid']}'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -50,6 +50,6 @@ class blog_comment_created extends comment_created {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' added a comment to the blog with the id '{$this->other['itemid']}'.";
|
||||
return "The user with the id '$this->userid' added the comment to the blog with the id '{$this->other['itemid']}'.";
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,6 @@ class blog_comment_deleted extends comment_deleted {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' deleted comment for the blog with the id '{$this->other['itemid']}'.";
|
||||
return "The user with the id '$this->userid' deleted the comment for the blog with the id '{$this->other['itemid']}'.";
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ class blog_entries_viewed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return 'Blog entries viewed';
|
||||
return "The user with the id '$this->userid' viewed blog entries.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -88,7 +88,7 @@ class blog_entry_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The blog entry with the id '$this->objectid' was created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the blog entry with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -87,7 +87,7 @@ class blog_entry_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The blog entry with the id '$this->objectid' was deleted by user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the blog entry with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -86,7 +86,7 @@ class blog_entry_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The blog entry with the id '$this->objectid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the blog entry with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,8 @@ class calendar_event_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The event '" . s($this->other['name']) . "' was created by user with the id '$this->userid'.";
|
||||
$eventname = s($this->other['name']);
|
||||
return "The user with the id '$this->userid' created the event '$eventname' with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,8 @@ class calendar_event_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The event '" . s($this->other['name']) . "' was deleted by the user with the id '{$this->userid}'.";
|
||||
$eventname = s($this->other['name']);
|
||||
return "The user with the id '$this->userid' deleted the event '$eventname' with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,8 @@ class calendar_event_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The event '" . s($this->other['name']) . "' was updated by the user with the id '{$this->userid}'.";
|
||||
$eventname = s($this->other['name']);
|
||||
return "The user with the id '$this->userid' updated the event '$eventname' with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ class cohort_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The cohort with the id '$this->objectid' was created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the cohort with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ class cohort_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The cohort with the id '$this->objectid' was deleted by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the cohort with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,8 +61,8 @@ class cohort_member_added extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was added to the cohort with the id '$this->objectid' by the " .
|
||||
"user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' added the user with the id '$this->relateduserid' to the cohort with " .
|
||||
"the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,8 +62,8 @@ class cohort_member_removed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was removed from the cohort with the id '$this->objectid' by the " .
|
||||
"user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' removed the user with the id '$this->relateduserid' from the cohort with " .
|
||||
"the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ class cohort_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The cohort with the id '$this->objectid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the cohort with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ abstract class comment_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' added the comment with the id '$this->objectid' for '$this->component' " .
|
||||
return "The user with the id '$this->userid' added the comment with the id '$this->objectid' to the '$this->component' " .
|
||||
"with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
|
@ -70,8 +70,8 @@ abstract class comment_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' deleted the comment with the id '$this->objectid' for '$this->component' " .
|
||||
"with instance id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' deleted the comment with the id '$this->objectid' from the '$this->component' " .
|
||||
"with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +69,7 @@ class course_category_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course category with the id '$this->objectid' was created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the course category with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -71,7 +71,7 @@ class course_category_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The category with the id '$this->objectid' was deleted by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the course category with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -72,7 +72,7 @@ class course_category_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course category with the id '$this->objectid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the course category with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,7 +85,7 @@ class course_completed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->courseid' was completed for the user with the id '$this->relateduserid'.";
|
||||
return "The user with the id '$this->relateduserid' completed the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ class course_completion_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The requirements to complete the course with the id '$this->courseid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the requirements to complete the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,7 +66,7 @@ class course_content_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->courseid' had content deleted by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted content from course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ class course_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->objectid' was created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,7 +68,7 @@ class course_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->courseid' was deleted by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,7 +47,7 @@ class course_reset_started extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' has started the reset of course '$this->courseid''.";
|
||||
return "The user with the id '$this->userid' has started the reset of the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ class course_restored extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->objectid' was restored by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' restored the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ class course_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The course with the id '$this->courseid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the course with the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -76,7 +76,7 @@ class message_sent extends base {
|
||||
public function get_description() {
|
||||
// Check if we are sending from a valid user.
|
||||
if (\core_user::is_real_user($this->userid)) {
|
||||
return "The user with the id '$this->objectid' sent a message to the user with the id '$this->relateduserid'.";
|
||||
return "The user with the id '$this->userid' sent a message to the user with the id '$this->relateduserid'.";
|
||||
}
|
||||
|
||||
return "A message was sent by the system to the user with the id '$this->relateduserid'.";
|
||||
|
@ -70,8 +70,8 @@ class mnet_access_control_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Access control created for the user with the username '{$this->other['username']}' belonging to the mnet " .
|
||||
"host '{$this->other['hostname']}'.";
|
||||
return "The user with the id '$this->userid' created access control for the user with the username '{$this->other['username']}' " .
|
||||
"belonging to the mnet host '{$this->other['hostname']}'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,8 +70,8 @@ class mnet_access_control_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Access control updated for the user with the username '{$this->other['username']}' belonging to the mnet " .
|
||||
"host '{$this->other['hostname']}'.";
|
||||
return "The user with the id '$this->userid' updated access control for the user with the username '{$this->other['username']}' " .
|
||||
"belonging to the mnet host '{$this->other['hostname']}'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,8 +68,8 @@ class note_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The note with the id '$this->objectid' for the user with the id '$this->relateduserid' was created by the user " .
|
||||
"with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the note with the id '$this->objectid' for the user with the id " .
|
||||
"'$this->relateduserid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,8 +68,8 @@ class note_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The note with the id '$this->objectid' for the user with the id '$this->relateduserid' was deleted by the user " .
|
||||
"with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the note with the id '$this->objectid' for the user with the id " .
|
||||
"'$this->relateduserid'";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,8 +68,8 @@ class note_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The note with the id '$this->objectid' for the user with the id '$this->relateduserid' was updated by the user " .
|
||||
"with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the note with the id '$this->objectid' for the user with the id " .
|
||||
"'$this->relateduserid'";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@ class question_category_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "A question category with the id of '$this->objectid' was created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the question category with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ class role_allow_assign_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Allow role assignments updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the allowed role assignments.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ class role_allow_override_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Allow role override updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the allowed role overrides.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ class role_allow_switch_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Allow role switch updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the allowed role switches";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,8 +68,8 @@ class role_assigned extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The role with the id '$this->objectid' was assigned to the user with the id '$this->relateduserid' " .
|
||||
"by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' assigned the role with the id '$this->objectid' to the user with the id " .
|
||||
"'$this->relateduserid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@ class role_capabilities_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The capabilities for the role with the id '$this->objectid' were updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the capabilities for the role with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ class role_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The role with the id '$this->objectid' was deleted by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' deleted the role with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,8 +65,8 @@ class role_unassigned extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The role with the id '$this->objectid' was unassigned from the user with the id '$this->relateduserid' " .
|
||||
"by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' unassigned the role with the id '$this->objectid' from the user with the " .
|
||||
"id '$this->relateduserid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,7 @@ class tag_flagged extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The tag with the id '$this->objectid' was flagged by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' flagged the tag with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ class tag_removed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' removed the tag with the id '{$this->other['tagid']}' to the item type '" .
|
||||
return "The user with the id '$this->userid' removed the tag with the id '{$this->other['tagid']}' from the item type '" .
|
||||
s($this->other['itemtype']) . "' with the id '{$this->other['itemid']}'.";
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ class tag_unflagged extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The tag with the id '$this->objectid' was unflagged by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' unflagged the tag with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ class tag_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The tag with the id '$this->objectid' was updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the tag with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@ class user_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->objectid' was created.";
|
||||
return "The user with the id '$this->userid' created the user with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +69,7 @@ class user_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->objectid' was deleted.";
|
||||
return "The user with the id '$this->userid' deleted the user with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,8 +65,8 @@ class user_enrolment_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was enrolled in the course with the id '$this->courseid' by the " .
|
||||
"user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' enrolled the user with the id '$this->relateduserid' in the course with " .
|
||||
"the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,8 +66,8 @@ class user_enrolment_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was unenrolled in the course with the id '$this->courseid' by the " .
|
||||
"user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' unenrolled the user with the id '$this->relateduserid' from the course with " .
|
||||
"the id '$this->courseid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -107,7 +107,7 @@ class user_graded extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' updated the grade with the id {$this->objectid} for the user with the " .
|
||||
return "The user with the id '$this->userid' updated the grade with the id '$this->objectid' for the user with the " .
|
||||
"id '$this->relateduserid' for the grade item with the id '{$this->other['itemid']}'.";
|
||||
}
|
||||
|
||||
|
@ -84,11 +84,11 @@ class user_password_updated extends base {
|
||||
public function get_description() {
|
||||
if ($this->userid == $this->relateduserid) {
|
||||
if ($this->other['forgottenreset']) {
|
||||
return "User $this->userid reset their password";
|
||||
return "The user with the id '$this->userid' reset their password.";
|
||||
}
|
||||
return "User $this->userid changed their password";
|
||||
return "The user with the id '$this->userid' changed their password.";
|
||||
} else {
|
||||
return "User $this->userid changed password of user $this->relateduserid";
|
||||
return "The user with the id '$this->userid' changed the password of the user with the id '$this->relateduserid'.";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,8 +68,8 @@ class user_profile_viewed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return 'The user ' . $this->userid . ' viewed the profile for user ' . $this->relateduserid . ' in the course ' .
|
||||
$this->other['courseid'];
|
||||
return "The user with the id '$this->userid' viewed the profile for the user with the id '$this->relateduserid' in the course " .
|
||||
"with the id '{$this->other['courseid']}'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@ class user_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return 'User profile updated for userid '.$this->objectid;
|
||||
return "The user with the id '$this->userid' updated the profile for the user with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,7 +47,7 @@ class webservice_service_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The web service service $this->objectid has been created by user $this->userid.";
|
||||
return "The user with the id '$this->userid' created the web service with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ class webservice_service_deleted extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The web service service $this->objectid has been deleted by user $this->userid.";
|
||||
return "The user with the id '$this->userid' deleted the web service with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ class webservice_service_updated extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The web service service $this->objectid has been updated by user $this->userid.";
|
||||
return "The user with the id '$this->userid' updated the web service with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,8 @@ class webservice_service_user_added extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user $this->relateduserid has been added to the web service service $this->objectid.";
|
||||
return "The user with the id '$this->userid' added the user with the id '$this->relateduserid' to the web service " .
|
||||
"with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,8 @@ class webservice_service_user_removed extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user $this->relateduserid has been removed to the web service service $this->objectid.";
|
||||
return "The user with the id '$this->userid' removed the user with the id '$this->relateduserid' from the web service " .
|
||||
"with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,7 +47,7 @@ class webservice_token_created extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "A web service token has been created for the user $this->relateduserid.";
|
||||
return "The user with the id '$this->userid' created a web service token for the user with the id '$this->relateduserid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ class webservice_token_sent extends base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The token $this->objectid has been sent to the user $this->userid.";
|
||||
return "The user with the id '$this->userid' has been sent the web service token with the id '$this->objectid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -99,7 +99,7 @@ class submission_form_viewed extends base {
|
||||
"for the assignment with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
return "The user with the id '$this->userid' viewed their submission for the assignment with the the course " .
|
||||
return "The user with the id '$this->userid' viewed their submission for the assignment with the course " .
|
||||
"module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,8 @@ class chapter_created extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The chapter with the id '$this->objectid' of the book with the course module id '$this->contextinstanceid'
|
||||
has been created by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' created the chapter with the id '$this->objectid' for the book with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,8 +62,8 @@ class chapter_deleted extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The chapter with the id '$this->objectid' of the book with the course module id '$this->contextinstanceid'
|
||||
has been deleted by the user with the id '$this->userid.";
|
||||
return "The user with the id '$this->userid' deleted the chapter with the id '$this->objectid' for the book with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,8 +62,8 @@ class chapter_updated extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The chapter with the id '$this->objectid' of the book with the course module id '$this->contextinstanceid'
|
||||
has been updated by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' updated the chapter with the id '$this->objectid' for the book with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,8 +62,8 @@ class chapter_viewed extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The chapter with the id '$this->objectid' of the book with the course module id '$this->contextinstanceid'
|
||||
has been viewed by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' viewed the chapter with the id '$this->objectid' for the book with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -68,7 +68,7 @@ class record_created extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' created the data record the id '$this->objectid' for the data activity " .
|
||||
return "The user with the id '$this->userid' created the data record with the id '$this->objectid' for the data activity " .
|
||||
"with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class record_deleted extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' deleted the data record the id '$this->objectid' in the data activity " .
|
||||
return "The user with the id '$this->userid' deleted the data record with the id '$this->objectid' in the data activity " .
|
||||
"with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class record_updated extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->userid' updated the data record the id '$this->objectid' in the data activity " .
|
||||
return "The user with the id '$this->userid' updated the data record with the id '$this->objectid' in the data activity " .
|
||||
"with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
|
@ -57,8 +57,8 @@ class readtracking_disabled extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Read tracking has been disabled for the user with the id '$this->relateduserid' in the forum with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' has disabled read tracking for the user with the id '$this->relateduserid' " .
|
||||
"in the forum with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,8 +57,8 @@ class readtracking_enabled extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Read tracking has been enabled for the user with the id '$this->relateduserid' in the forum with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' has enabled read tracking for the user with the id '$this->relateduserid' " .
|
||||
"in the forum with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,8 +57,8 @@ class subscription_created extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was subscribed to the forum with the course module id " .
|
||||
"'$this->contextinstanceid' by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' subscribed the user with the id '$this->relateduserid' to the forum with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,8 +57,8 @@ class subscription_deleted extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with the id '$this->relateduserid' was unsubscribed to the forum with the course module id " .
|
||||
"'$this->contextinstanceid' by the user with the id '$this->userid'.";
|
||||
return "The user with the id '$this->userid' unsubscribed the user with the id '$this->relateduserid' to the forum with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,9 +70,8 @@ class essay_attempt_viewed extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The essay grade for the user with the id '$this->relateduserid' for the attempt with the id " .
|
||||
"'$this->objectid' was viewed by the user with the id '$this->userid' for the lesson activity with the " .
|
||||
"course module id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' viewed the essay grade for the user with the id '$this->relateduserid' for " .
|
||||
"the attempt with the id '$this->objectid' for the lesson activity with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,8 @@ class attempt_becameoverdue extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "Attempt with the id '$this->objectid' for the user with the id '$this->relateduserid' became overdue.";
|
||||
return "The quiz attempt with the id '$this->objectid' belonging to the quiz with the course module id '$this->contextinstanceid' " .
|
||||
"for the user with the id '$this->relateduserid' became overdue.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ class user_report_viewed extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return 'User with id ' . $this->userid . ' viewed user report for user ' . $this->relateduserid;
|
||||
return "The user with the id '$this->userid' viewed the scorm user report for the user with the id '$this->relateduserid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,8 +59,8 @@ class submission_assessed extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The submission with the id '$this->objectid' has been assessed by the user with the id '$this->userid' for the user " .
|
||||
"with the id '$this->relateduserid' in the workshop with the course module id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' assessed the submission with the id '$this->objectid' for the user with " .
|
||||
"the id '$this->relateduserid' in the workshop with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,8 +60,8 @@ class submission_reassessed extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The submission with the id '$this->objectid' has been reassessed by the user with the id '$this->userid' for the user " .
|
||||
"with the id '$this->relateduserid' in the workshop with the course module id '$this->contextinstanceid'.";
|
||||
return "The user with the id '$this->userid' reassessed the submission with the id '$this->objectid' for the user with " .
|
||||
"the id '$this->relateduserid' in the workshop with the course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user