Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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.

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