Class used to return information to display for the message popup.  
 More...
Class used to return information to display for the message popup. 
- Copyright
- 2016 Ryan Wyllie ryan@.nosp@m.mood.nosp@m.le.co.nosp@m.m 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ count_unread_popup_notifications()
  
  | 
        
          | static message_popup\api::count_unread_popup_notifications | ( |  | $useridto = 0 | ) |  |  | static | 
 
Count the unread notifications for a user. 
- Parameters
- 
  
    | int | $useridto | the user id who received the notification |  
 
- Return values
- 
  
    | int | count of the unread notifications |  
 
- Since
- 3.2 
 
 
◆ get_popup_notifications()
  
  | 
        
          | static message_popup\api::get_popup_notifications | ( |  | $useridto = 0, |  
          |  |  |  | $sort = 'DESC', |  
          |  |  |  | $limit = 0, |  
          |  |  |  | $offset = 0 ) |  | static | 
 
Get popup notifications for the specified users. 
Nothing is returned if notifications are disabled.
- Parameters
- 
  
    | int | $useridto | the user id who received the notification |  | string | $sort | the column name to order by including optionally direction |  | int | $limit | limit the number of result returned |  | int | $offset | offset the result set by this amount |  
 
- Return values
- 
  
    | array | notification records |  
 
- Exceptions
- 
  
  
- Since
- 3.2 
 
 
The documentation for this class was generated from the following file:
- message/output/popup/classes/api.php