Notification
Class Notification
Table of Contents
Constants
- TYPE_ERROR = 'error'
- TYPE_EXCEPTION = 'exception'
- TYPE_NOTICE = 'notice'
Methods
- __construct() : mixed
- Notification constructor.
- add() : bool
- Adds new notification to instance of action
- clean() : bool
- Cleans all notification
- list() : array<string|int, mixed>|null
- Returns list of notification to instance of action
- save() : bool
- Saves all notification from event array
Constants
TYPE_ERROR
public
mixed
TYPE_ERROR
= 'error'
TYPE_EXCEPTION
public
mixed
TYPE_EXCEPTION
= 'exception'
TYPE_NOTICE
public
mixed
TYPE_NOTICE
= 'notice'
Methods
__construct()
Notification constructor.
public
__construct(Setting $setting) : mixed
Parameters
- $setting : Setting
add()
Adds new notification to instance of action
public
add(mixed $message, mixed $code, mixed $type) : bool
Parameters
- $message : mixed
- $code : mixed
- $type : mixed
Return values
boolclean()
Cleans all notification
public
clean() : bool
Return values
boollist()
Returns list of notification to instance of action
public
list([array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>|null
Parameters
- $filter : array<string|int, mixed> = []
Return values
array<string|int, mixed>|nullsave()
Saves all notification from event array
public
save(mixed $result) : bool
Parameters
- $result : mixed