Documentation

Alerts.php

Table of Contents

Functions

bb_add_alert()  : void
Adds an Alert to the Stack
bb_set_alerts()  : void
Sets the Alert Stack
bb_get_alerts()  : null|array<string|int, mixed>
Gets all Alerts

Functions

bb_add_alert()

Adds an Alert to the Stack

bb_add_alert(mixed $status, mixed $htmlText[, bool $dismissable = true ]) : void
Parameters
$status : mixed

Status (primary|secondary|success|danger|warning|info|light|dark)

$htmlText : mixed

Content of the Alert

$dismissable : bool = true

Whether the alert is dismissable

bb_set_alerts()

Sets the Alert Stack

bb_set_alerts(array<string|int, mixed> $alerts) : void
Parameters
$alerts : array<string|int, mixed>

bb_get_alerts()

Gets all Alerts

bb_get_alerts() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>

        
On this page

Search results