Function fetch_alerts
Fetch the alerts a member currently has.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Profile-View.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Profile-View.php
integer |
$memID |
The ID of the member. |
mixed |
$to_fetch = false |
Alerts to fetch: true/false for all/unread, or a list of one or more IDs. |
array |
$limit = 0 |
Maximum number of alerts to fetch (0 for no limit). |
array |
$offset = 0 |
Number of alerts to skip for pagination. Ignored if $to_fetch is a list of IDs. |
boolean |
$with_avatar = false |
Whether to load the avatar of the alert sender. |
boolean |
$show_links = false |
Whether to show links in the constituent parts of the alert meessage. |
array
|
An array of information about the fetched alerts. |