NotificationTask
extends AirlayTask
in package
Table of Contents
- mainAction() : void
- abortWorkWithMessage() : never
- addToQueue() : void
- getDataSetTitle() : string
- parseFlagsFromParams() : void
- Parse command line arguments from array. Output default values if --help or -h argument specified.
- processMessage() : void
- requestConfirm() : bool
- getTemplate() : TemplateEntity
- printInfo() : void
Methods
mainAction()
public
mainAction() : void
Return values
void —abortWorkWithMessage()
protected
abortWorkWithMessage(string $message) : never
Parameters
- $message : string
Return values
never —addToQueue()
protected
addToQueue(NotificationSendBody $body) : void
Parameters
- $body : NotificationSendBody
Return values
void —getDataSetTitle()
protected
getDataSetTitle(array<string|int, mixed>|DataSetEntity $dataSet) : string
Parameters
- $dataSet : array<string|int, mixed>|DataSetEntity
Return values
string —parseFlagsFromParams()
Parse command line arguments from array. Output default values if --help or -h argument specified.
protected
parseFlagsFromParams(Flags $flags[, array<string|int, mixed> $params = [] ]) : void
Parameters
- $flags : Flags
- $params : array<string|int, mixed> = []
Return values
void —processMessage()
protected
processMessage(AMQPMessage $message, NotificationSendBody $body) : void
Parameters
- $message : AMQPMessage
- $body : NotificationSendBody
Return values
void —requestConfirm()
protected
requestConfirm(string $message) : bool
Parameters
- $message : string
Return values
bool —getTemplate()
private
getTemplate(ObjectId $templateId) : TemplateEntity
Parameters
- $templateId : ObjectId
Return values
TemplateEntity —printInfo()
private
printInfo(NotificationSendBody $body, bool $isSuccessful, string|null $errorInfo) : void
Parameters
- $body : NotificationSendBody
- $isSuccessful : bool
- $errorInfo : string|null