From 0528361cc139d8da6cfa7b0b73a526350fa428c4 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 9 Aug 2013 14:22:48 +0800 Subject: [PATCH] MDL-39954 event: Changing get_legacy_eventname to public static --- mod/assign/classes/event/assessable_submitted.php | 2 +- .../submission/file/classes/event/assessable_uploaded.php | 2 +- .../submission/onlinetext/classes/event/assessable_uploaded.php | 2 +- .../type/online/classes/event/assessable_uploaded.php | 2 +- .../type/upload/classes/event/assessable_submitted.php | 2 +- .../type/upload/classes/event/assessable_uploaded.php | 2 +- mod/forum/classes/event/assessable_uploaded.php | 2 +- mod/workshop/classes/event/assessable_uploaded.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mod/assign/classes/event/assessable_submitted.php b/mod/assign/classes/event/assessable_submitted.php index a0138330ee1..ad9d7c8bc36 100644 --- a/mod/assign/classes/event/assessable_submitted.php +++ b/mod/assign/classes/event/assessable_submitted.php @@ -72,7 +72,7 @@ class assessable_submitted extends \core\event\assessable_submitted { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_submitted'; } diff --git a/mod/assign/submission/file/classes/event/assessable_uploaded.php b/mod/assign/submission/file/classes/event/assessable_uploaded.php index baddca3d5c3..0f2ccc7a6ef 100644 --- a/mod/assign/submission/file/classes/event/assessable_uploaded.php +++ b/mod/assign/submission/file/classes/event/assessable_uploaded.php @@ -76,7 +76,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_file_uploaded'; } diff --git a/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php b/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php index ca5e19c0de6..179319e71e9 100644 --- a/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php +++ b/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php @@ -68,7 +68,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_content_uploaded'; } diff --git a/mod/assignment/type/online/classes/event/assessable_uploaded.php b/mod/assignment/type/online/classes/event/assessable_uploaded.php index aee852e07e2..e5116ba5f2c 100644 --- a/mod/assignment/type/online/classes/event/assessable_uploaded.php +++ b/mod/assignment/type/online/classes/event/assessable_uploaded.php @@ -69,7 +69,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_content_uploaded'; } diff --git a/mod/assignment/type/upload/classes/event/assessable_submitted.php b/mod/assignment/type/upload/classes/event/assessable_submitted.php index 7b7f5607cf6..0cd22881c1e 100644 --- a/mod/assignment/type/upload/classes/event/assessable_submitted.php +++ b/mod/assignment/type/upload/classes/event/assessable_submitted.php @@ -64,7 +64,7 @@ class assessable_submitted extends \core\event\assessable_submitted { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_files_done'; } diff --git a/mod/assignment/type/upload/classes/event/assessable_uploaded.php b/mod/assignment/type/upload/classes/event/assessable_uploaded.php index fbf82226b26..ff7f8329664 100644 --- a/mod/assignment/type/upload/classes/event/assessable_uploaded.php +++ b/mod/assignment/type/upload/classes/event/assessable_uploaded.php @@ -75,7 +75,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_file_uploaded'; } diff --git a/mod/forum/classes/event/assessable_uploaded.php b/mod/forum/classes/event/assessable_uploaded.php index ca24081dd9e..408547c9c21 100644 --- a/mod/forum/classes/event/assessable_uploaded.php +++ b/mod/forum/classes/event/assessable_uploaded.php @@ -69,7 +69,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_content_uploaded'; } diff --git a/mod/workshop/classes/event/assessable_uploaded.php b/mod/workshop/classes/event/assessable_uploaded.php index 474fc2d17c4..c7907f92d1c 100644 --- a/mod/workshop/classes/event/assessable_uploaded.php +++ b/mod/workshop/classes/event/assessable_uploaded.php @@ -75,7 +75,7 @@ class assessable_uploaded extends \core\event\assessable_uploaded { * * @return string */ - protected function get_legacy_eventname() { + public static function get_legacy_eventname() { return 'assessable_content_uploaded'; }