Commit 3b908929 authored by Rajesh Taneja's avatar Rajesh Taneja
Browse files

MDL-41456 Events: Fixed existing events to respect base event access specifier and return data type

parent ee788142
......@@ -56,7 +56,7 @@ class all_submissions_downloaded extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -81,7 +81,7 @@ class assessable_submitted extends \core\event\assessable_submitted {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class extension_granted extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class identities_revealed extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class marker_updated extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class statement_accepted extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_duplicated extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_graded extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_locked extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_status_updated extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_unlocked extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class submission_updated extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -56,7 +56,7 @@ class workflow_state_updated extends \core\event\base {
*
* @return array
*/
public function get_legacy_logdata() {
protected function get_legacy_logdata() {
return $this->legacylogdata;
}
......
......@@ -76,10 +76,10 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
/**
* Return localised event name.
*
* @return \lang_string
* @return string
*/
public static function get_name() {
return new \lang_string('event_assessable_uploaded', 'assignment_online');
return get_string('event_assessable_uploaded', 'assignment_online');
}
/**
......
......@@ -81,10 +81,10 @@ class assessable_submitted extends \core\event\assessable_submitted {
/**
* Return localised event name.
*
* @return \lang_string
* @return string
*/
public static function get_name() {
return new \lang_string('event_assessable_submitted', 'assignment_submitted');
return get_string('event_assessable_submitted', 'assignment_submitted');
}
/**
......
......@@ -92,10 +92,10 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
/**
* Return localised event name.
*
* @return \lang_string
* @return string
*/
public static function get_name() {
return new \lang_string('event_assessable_uploaded', 'assignment_upload');
return get_string('event_assessable_uploaded', 'assignment_upload');
}
/**
......
......@@ -76,10 +76,10 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
/**
* Return localised event name.
*
* @return \lang_string
* @return string
*/
public static function get_name() {
return new \lang_string('event_assessable_uploaded', 'mod_forum');
return get_string('event_assessable_uploaded', 'mod_forum');
}
/**
......
......@@ -91,10 +91,10 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
/**
* Return localised event name.
*
* @return \lang_string
* @return string
*/
public static function get_name() {
return new \lang_string('event_assessable_uploaded', 'mod_workshop');
return get_string('event_assessable_uploaded', 'mod_workshop');
}
/**
......
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