Notification
extends AbstractEntity
in package
Tags
Table of Contents
- $id : int
- $customEmails : array<string|int, string>
- $header : string
- $isActive : bool
- $message : string
- $recipients : array<string|int, string>
- $subject : string
- $title : string
- $trigger : array<string|int, mixed>
- $triggerTime : string
- $type : string
- __construct() : mixed
- getCustomEmails() : array<string|int, string>
- getHeader() : string
- getId() : int
- getMessage() : string
- getRecipients() : array<string|int, string>
- getSubject() : string
- getTitle() : string
- getTrigger() : array<string|int, mixed>
- getTriggerOperator() : string
- getTriggerPeriod() : int
- getTriggerTime() : string
- getTriggerUnit() : string
- getType() : string
- hasRecipients() : bool
- isActive() : bool
- setupFields() : mixed
Properties
$id
public
int
$id
= 0
Tags
$customEmails
protected
array<string|int, string>
$customEmails
= []
$header
protected
string
$header
= ''
$isActive
protected
bool
$isActive
= true
$message
protected
string
$message
= ''
$recipients
protected
array<string|int, string>
$recipients
= []
$subject
protected
string
$subject
= ''
$title
protected
string
$title
= ''
$trigger
protected
array<string|int, mixed>
$trigger
= ['period' => 1, 'unit' => \MotoPress\Appointment\Helpers\NotificationHelper::DEFAULT_UNIT, 'operator' => \MotoPress\Appointment\Helpers\NotificationHelper::DEFAULT_OPERATOR]
$triggerTime
protected
string
$triggerTime
= '00:00'
$type
protected
string
$type
= 'email'
Methods
__construct()
public
__construct(int $id[, array<string|int, mixed> $fieldValues = [] ]) : mixed
Parameters
- $id : int
- $fieldValues : array<string|int, mixed> = []
-
Optional.
Tags
Return values
mixed —getCustomEmails()
public
getCustomEmails() : array<string|int, string>
Return values
array<string|int, string> —getHeader()
public
getHeader() : string
Return values
string —getId()
public
getId() : int
Tags
Return values
int —getMessage()
public
getMessage() : string
Return values
string —getRecipients()
public
getRecipients() : array<string|int, string>
Return values
array<string|int, string> —"admin", "employee", "customer", "custom".
getSubject()
public
getSubject() : string
Return values
string —getTitle()
public
getTitle() : string
Return values
string —getTrigger()
public
getTrigger() : array<string|int, mixed>
Return values
array<string|int, mixed> —[period, unit, operator]
getTriggerOperator()
public
getTriggerOperator() : string
Return values
string —getTriggerPeriod()
public
getTriggerPeriod() : int
Return values
int —getTriggerTime()
public
getTriggerTime() : string
Return values
string —Time in "H:i" format.
getTriggerUnit()
public
getTriggerUnit() : string
Return values
string —getType()
public
getType() : string
Return values
string —hasRecipients()
public
hasRecipients() : bool
Return values
bool —isActive()
public
isActive() : bool
Return values
bool —setupFields()
protected
setupFields( $fieldValues) : mixed