Commit 02915dfc authored by Andrew Nicols's avatar Andrew Nicols Committed by Marina Glancy
Browse files

MDL-45357 events: Remove unnecessary the before 'id' in event descriptions

parent 4d87e5c1
......@@ -59,7 +59,7 @@ class report_viewed extends \core\event\base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' viewed the capability overview report.";
return "The user with id '$this->userid' viewed the capability overview report.";
}
/**
......
......@@ -70,8 +70,8 @@ class blog_association_created extends base {
* @return string
*/
public function get_description() {
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']}'.";
return "The user with id '$this->userid' associated the context '{$this->other['associatetype']}' with id " .
"'{$this->other['associateid']}' to the blog entry with 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 the comment to the blog with the id '{$this->other['itemid']}'.";
return "The user with id '$this->userid' added the comment to the blog with 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 the comment for the blog with the id '{$this->other['itemid']}'.";
return "The user with id '$this->userid' deleted the comment for the blog with id '{$this->other['itemid']}'.";
}
}
......@@ -67,7 +67,7 @@ class blog_entries_viewed extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' viewed blog entries.";
return "The user with id '$this->userid' viewed blog entries.";
}
/**
......
......@@ -88,7 +88,7 @@ class blog_entry_created extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' created the blog entry with the id '$this->objectid'.";
return "The user with id '$this->userid' created the blog entry with id '$this->objectid'.";
}
/**
......
......@@ -87,7 +87,7 @@ class blog_entry_deleted extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' deleted the blog entry with the id '$this->objectid'.";
return "The user with id '$this->userid' deleted the blog entry with id '$this->objectid'.";
}
/**
......
......@@ -86,7 +86,7 @@ class blog_entry_updated extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' updated the blog entry with the id '$this->objectid'.";
return "The user with id '$this->userid' updated the blog entry with id '$this->objectid'.";
}
/**
......
......@@ -71,7 +71,7 @@ class calendar_event_created extends base {
*/
public function get_description() {
$eventname = s($this->other['name']);
return "The user with the id '$this->userid' created the event '$eventname' with the id '$this->objectid'.";
return "The user with id '$this->userid' created the event '$eventname' with id '$this->objectid'.";
}
/**
......
......@@ -71,7 +71,7 @@ class calendar_event_deleted extends base {
*/
public function get_description() {
$eventname = s($this->other['name']);
return "The user with the id '$this->userid' deleted the event '$eventname' with the id '$this->objectid'.";
return "The user with id '$this->userid' deleted the event '$eventname' with id '$this->objectid'.";
}
/**
......
......@@ -71,7 +71,7 @@ class calendar_event_updated extends base {
*/
public function get_description() {
$eventname = s($this->other['name']);
return "The user with the id '$this->userid' updated the event '$eventname' with the id '$this->objectid'.";
return "The user with id '$this->userid' updated the event '$eventname' with id '$this->objectid'.";
}
/**
......
......@@ -61,7 +61,7 @@ class cohort_created extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' created the cohort with the id '$this->objectid'.";
return "The user with id '$this->userid' created the cohort with id '$this->objectid'.";
}
/**
......
......@@ -61,7 +61,7 @@ class cohort_deleted extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' deleted the cohort with the id '$this->objectid'.";
return "The user with id '$this->userid' deleted the cohort with 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->userid' added the user with the id '$this->relateduserid' to the cohort with " .
"the id '$this->objectid'.";
return "The user with id '$this->userid' added the user with id '$this->relateduserid' to the cohort with " .
"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->userid' removed the user with the id '$this->relateduserid' from the cohort with " .
"the id '$this->objectid'.";
return "The user with id '$this->userid' removed the user with id '$this->relateduserid' from the cohort with " .
"id '$this->objectid'.";
}
/**
......
......@@ -61,7 +61,7 @@ class cohort_updated extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' updated the cohort with the id '$this->objectid'.";
return "The user with id '$this->userid' updated the cohort with 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' to the '$this->component' " .
return "The user with id '$this->userid' added the comment with id '$this->objectid' to the '$this->component' " .
"with the course module id '$this->contextinstanceid'.";
}
......
......@@ -70,7 +70,7 @@ 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' from the '$this->component' " .
return "The user with id '$this->userid' deleted the comment with id '$this->objectid' from the '$this->component' " .
"with the course module id '$this->contextinstanceid'.";
}
......
......@@ -63,7 +63,7 @@ abstract class comments_viewed extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' viewed the comments for '$this->component' with instance id '$this->objectid'.";
return "The user with id '$this->userid' viewed the comments for '$this->component' with instance id '$this->objectid'.";
}
/**
......
......@@ -86,7 +86,7 @@ abstract class content_viewed extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->userid' viewed content.";
return "The user with id '$this->userid' viewed content.";
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment