mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-44107 deprecate can_view() in feedback events, to be replaced by is_anonymous()
See MDL-44661 for more info.
This commit is contained in:
parent
bc22fa9310
commit
d58a8932b8
@ -53,6 +53,8 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
@ -84,6 +84,8 @@ class response_deleted extends \core\event\base {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
@ -106,6 +106,8 @@ class response_submitted extends \core\event\base {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user