notify($package, $name, $message, ['error']);
Creates an information or error notification that can be displayed in a plugin. This can be used in automated scripts like daemons or cronjobs to notify the user about good or bad news about the status of your plugin.This function is exported, therefore you do not need to prefix the function call with LoxBerry::System.
$package is the owner of the notification. To show the notification bullet on the plugins page, this needs to be
Inside the package, you can group your notifications by
$name. For example, your plugin uses a cronjob and a daemon. Use "cronjob" and "daemon" as names to differentiate these notifications.
$message is the text that is saved and displayed in the notification.
notify always saves the time you have called notify, so you don't need to place a timestamp in the message.
|$package||x||This is, where the message belongs to. In a plugin, always use the variable $lbpplugindir.|
|$name||x||The notification group, this notification belongs to.|
|$message||x||The message to be sent.|
If you omit this parameter, an informational notification is created.
If the parameter is <> undef, an error is created.
The content of
NAME is case-sensitive. If you set the
NAME => "Daemon", you have to query
Please see the Notification tips and tricks