Bitrix API

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_EXCEPTION

public mixed TYPE_EXCEPTION = 'exception'

Methods

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
bool

clean()

Cleans all notification

public clean() : bool
Return values
bool

list()

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>|null

save()

Saves all notification from event array

public save(mixed $result) : bool
Parameters
$result : mixed
Return values
bool

        
On this page

Search results