$html = LBLog::get_notifications_html($package, $name, $type);
Returns HTML that shows all notifications of the specific package, and/or name and type. The HTML includes buttons to delete the notifications.
This function is available starting with LoxBerry V1.0.3. If you use that function, set this minimum version in your plugin.cfg.
This function is not exported. Use LBLog::get_notifications_html to call it.
$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.
This is an example of an info notification. The button on the right deletes the notification.
|$package||This is, where the message belongs to. In a plugin, always use the variable $lbpplugindir or constant LBPPLUGINDIR.|
|$name||The notification group, this notification belongs to. If you omit this parameter, all notifications of all groups are returned.|
undef = all
'all' = all
'error' = errors only
'info' = info only
The content of package and name is case-sensitive. If you set the
NAME => "Daemon", you have to query