Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

Defines 1 class


Class: api  - X-Ref

Class used to return information to display for the message popup.

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.

return: array notification records
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

count_unread_popup_notifications($useridto = 0)   X-Ref
Count the unread notifications for a user.

return: int count of the unread notifications
param: int $useridto the user id who received the notification