Contains class used to return information to display for the message popup.
Copyright: | 2016 Ryan Wyllie <ryan@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 114 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
api:: (2 methods):
get_popup_notifications()
count_unread_popup_notifications()
get_popup_notifications($useridto = 0, $sort = 'DESC', $limit = 0, $offset = 0) X-Ref |
Get popup notifications for the specified users. Nothing is returned if notifications are disabled. param: int $useridto the user id who received the notification param: string $sort the column name to order by including optionally direction param: int $limit limit the number of result returned param: int $offset offset the result set by this amount return: array notification records |
count_unread_popup_notifications($useridto = 0) X-Ref |
Count the unread notifications for a user. param: int $useridto the user id who received the notification return: int count of the unread notifications |