Elgg
Version 6.1
|
Controls all admin notices in the system. More...
Public Member Functions | |
add (string $id, string $message) | |
Write a persistent message to the admin view. More... | |
delete (string $id= '') | |
Remove an admin notice by ID. More... | |
find (array $options=[]) | |
Get admin notices. More... | |
exists (string $id) | |
Check if an admin notice is currently active. More... | |
Controls all admin notices in the system.
Definition at line 11 of file AdminNotices.php.
Elgg\Database\AdminNotices::add | ( | string | $id, |
string | $message | ||
) |
Write a persistent message to the admin view.
Useful to alert the admin to take a certain action. The id is a unique ID that can be cleared once the admin completes the action.
string | $id | A unique ID that your plugin can remember |
string | $message | Body of the message |
Definition at line 24 of file AdminNotices.php.
Elgg\Database\AdminNotices::delete | ( | string | $id = '' | ) |
Remove an admin notice by ID.
string | $id | The unique ID assigned in add_admin_notice() |
Definition at line 52 of file AdminNotices.php.
Elgg\Database\AdminNotices::exists | ( | string | $id | ) |
Check if an admin notice is currently active.
string | $id | The unique ID used to register the notice. |
Definition at line 97 of file AdminNotices.php.
Elgg\Database\AdminNotices::find | ( | array | $options = [] | ) |
Get admin notices.
An admin must be logged in since the notices are private.
array | $options | Query options |
Definition at line 80 of file AdminNotices.php.