Notification
Table of Contents
Methods
- __call() : mixed
- It's magic.
- __construct() : mixed
- Creates (wake-ups) a notification object.
- checkConditions() : string
- Agent function.
- delete() : Result
- Deletes data from DB.
- fill() : mixed
- Fills data from DB.
- fillActions() : mixed
- Fills the actions collection from DB.
- getActions() : array<string|int, Action>
- Returns an array of actions.
- getActive() : bool
- getAlertCount() : int
- getAuditTypeId() : string
- getCheckInterval() : int
- getDateChecked() : DateTime
- getEventCount() : int
- getId() : int
- getItemId() : string
- getName() : string
- getRemoteAddr() : string
- getRequestUri() : string
- getUserAgent() : string
- getUserId() : int
- save() : Result
- Saves data to DB.
- send() : mixed
- Sends the notification via its actions.
- setActionsFromArray() : mixed
- Sets actions from an array.
- setActive() : $this
- setAlertCount() : $this
- setAuditTypeId() : $this
- setCheckInterval() : $this
- setDateChecked() : $this
- setEventCount() : $this
- setFromArray() : mixed
- Sets values from an array.
- setItemId() : $this
- setName() : $this
- setRemoteAddr() : $this
- setRequestUri() : $this
- setUserAgent() : $this
- setUserId() : $this
Methods
__call()
It's magic.
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
..
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Tags
__construct()
Creates (wake-ups) a notification object.
public
__construct([int $id = 0 ]) : mixed
Parameters
- $id : int = 0
checkConditions()
Agent function.
public
static checkConditions(int $id) : string
Parameters
- $id : int
-
Notification ID
Return values
stringdelete()
Deletes data from DB.
public
delete() : Result
Return values
Resultfill()
Fills data from DB.
public
fill() : mixed
fillActions()
Fills the actions collection from DB.
public
fillActions() : mixed
getActions()
Returns an array of actions.
public
getActions() : array<string|int, Action>
Return values
array<string|int, Action>getActive()
public
getActive() : bool
Return values
boolgetAlertCount()
public
getAlertCount() : int
Return values
intgetAuditTypeId()
public
getAuditTypeId() : string
Return values
stringgetCheckInterval()
public
getCheckInterval() : int
Return values
intgetDateChecked()
public
getDateChecked() : DateTime
Return values
DateTimegetEventCount()
public
getEventCount() : int
Return values
intgetId()
public
getId() : int
Return values
intgetItemId()
public
getItemId() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetRemoteAddr()
public
getRemoteAddr() : string
Return values
stringgetRequestUri()
public
getRequestUri() : string
Return values
stringgetUserAgent()
public
getUserAgent() : string
Return values
stringgetUserId()
public
getUserId() : int
Return values
intsave()
Saves data to DB.
public
save() : Result
Return values
Resultsend()
Sends the notification via its actions.
public
send() : mixed
setActionsFromArray()
Sets actions from an array.
public
setActionsFromArray(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
setActive()
public
setActive(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetAlertCount()
public
setAlertCount(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetAuditTypeId()
public
setAuditTypeId(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetCheckInterval()
public
setCheckInterval(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetDateChecked()
public
setDateChecked(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetEventCount()
public
setEventCount(int $n) : $this
Parameters
- $n : int
Return values
$thissetFromArray()
Sets values from an array.
public
setFromArray(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
setItemId()
public
setItemId(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetName()
public
setName(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetRemoteAddr()
public
setRemoteAddr(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetRequestUri()
public
setRequestUri(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetUserAgent()
public
setUserAgent(mixed $arg) : $this
Parameters
- $arg : mixed
Return values
$thissetUserId()
public
setUserId(mixed $arg) : $this
Parameters
- $arg : mixed