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.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

External message popup API

Copyright: 2016 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 239 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: message_popup_external  - X-Ref

Message external functions

get_popup_notifications_parameters()   X-Ref
Get popup notifications parameters description.

return: external_function_parameters

get_popup_notifications($useridto, $newestfirst, $limit, $offset)   X-Ref
Get notifications function.

param: int      $useridto           the user id who received the message
param: bool     $newestfirst        true for ordering by newest first, false for oldest first
param: int      $limit              the number of results to return
param: int      $offset             offset the result set by a given amount
return: external_description

get_popup_notifications_returns()   X-Ref
Get notifications return description.

return: external_single_structure

get_unread_popup_notification_count_parameters()   X-Ref
Get unread notification count parameters description.

return: external_function_parameters

get_unread_popup_notification_count($useridto)   X-Ref
Get unread notification count function.

param: int      $useridto       the user id who received the message
return: external_description

get_unread_popup_notification_count_returns()   X-Ref
Get unread popup notification count return description.

return: external_single_structure