Event
Table of Contents
Constants
- ERR_MODULE = 'module'
- ERR_SITE = 'site'
- ERR_TEMPLATES = 'templates'
Methods
- __construct() : mixed
- Message constructor.
- createMessageList() : Result<int, Message>
- send() : Result
- setLanguage() : $this
- setSite() : $this
- setTemplate() : $this
Constants
ERR_MODULE
public
mixed
ERR_MODULE
= 'module'
ERR_SITE
public
mixed
ERR_SITE
= 'site'
ERR_TEMPLATES
public
mixed
ERR_TEMPLATES
= 'templates'
Methods
__construct()
Message constructor.
public
__construct(string $eventName[, array<string|int, mixed> $fields = [] ]) : mixed
Parameters
- $eventName : string
-
Name of a SMS template
- $fields : array<string|int, mixed> = []
-
Data fields to insert into the message
createMessageList()
public
createMessageList() : Result<int, Message>
Return values
Result<int, Message>send()
public
send([bool $directly = false ]) : Result
Parameters
- $directly : bool = false
-
True - send directly, False - send via queue
Return values
ResultsetLanguage()
public
setLanguage(string $languageId) : $this
Parameters
- $languageId : string
Return values
$thissetSite()
public
setSite(string $siteId) : $this
Parameters
- $siteId : string
Return values
$thissetTemplate()
public
setTemplate(int $templateId) : $this
Parameters
- $templateId : int