Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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