Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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: 245 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: \core_external\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: \core_external\external_description

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

return: external_single_structure