Milkyway\SS\FlashMessage\Notifier
Synopsis
class Notifier
{
- // members
- protected string $id = 'messages';
- protected string $defaultArea = 'cms';
- protected string $defaultLevel = 'info';
- protected array $levels = ;
- protected array $before = ;
- protected array $jsIncluded = ;
- protected boolean $unique = true;
- protected string $workingArea = '';
- protected $blocker;
- // methods
- public void __construct()
- public $this add()
- public $this remove()
- public $this clear()
- public array get()
- public void before()
- public void removeBefore()
- public $this|mixed __call()
- public void style()
- public BlocksNotifications blocker()
- public $this setBlocker()
- protected bool canView()
- protected void clearWorking()
Members
protected
- $before
- $blocker
- $defaultArea
- $defaultLevel
- $id
- $jsIncluded
- $levels
-
$unique
bool Only allow unique messages - $workingArea
Methods
protected
- canView() — Check whether the area is limited by controller type
- clearWorking()
public
- __construct()
- __call() — Handle some fancy stuff for getting messages
- add() — Add a message to the notifier
- before() — Add a link to execute before messages are added
- blocker() — Get the blocker that blocks notifications
- clear() — Clear a message that matches a set of params
- get() — Get messages for an area
- remove() — Remove a message from the notifier
- removeBefore()
- setBlocker() — Set a new blocker on this notifier
- style() — Include JS and CSS for flash messages