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:
Petr Škoda 2014-03-18 14:03:43 +08:00
parent bc22fa9310
commit d58a8932b8
3 changed files with 6 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/