Functions
in package
implements
EmailTemplate
Implement additional template methods
This class provides additional functions for the basket email
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $task : Task|null
- $template : Template|null
- Template buffer
- __construct() : mixed
- Functions constructor.
- Attachments() : array<string|int, mixed>
- Add attachments
- ConditionalLink() : string|null
- ConfirmLink() : string|null
- FormatDate() : DateTime|string
- GetEmployee() : Employee|null
- GetTask() : null|Task
- GetUser() : User|null
- Link() : string|null
- Location() : GeographicPosition|null|object
- MailSubject() : void
- RejectLink() : string|null
- StatusLabel() : string
- Get status label
- attachCalendar() : void
Properties
$task
protected
Task|null
$task
= null
$template
Template buffer
protected
Template|null
$template
= null
Methods
__construct()
Functions constructor.
public
__construct(Template $template) : mixed
Parameters
- $template : Template
Return values
mixed —Attachments()
Add attachments
public
Attachments(Email $mail[, string|null &$body = null ][, string|null &$alt_body = null ]) : array<string|int, mixed>
Add a list of attachments and modify the body and add the deep link
Parameters
- $mail : Email
-
A system email object
- $body : string|null = null
-
The mail body
- $alt_body : string|null = null
-
The alternative mail body
Return values
array<string|int, mixed> —A list of attachments to add
ConditionalLink()
public
ConditionalLink( $request) : string|null
Parameters
Return values
string|null —ConfirmLink()
public
ConfirmLink( $request) : string|null
Parameters
Return values
string|null —FormatDate()
public
FormatDate( $date[, $request = null ]) : DateTime|string
Parameters
Return values
DateTime|string —GetEmployee()
public
GetEmployee( $request) : Employee|null
Parameters
Return values
Employee|null —GetTask()
public
GetTask( $request) : null|Task
Parameters
Return values
null|Task —GetUser()
public
GetUser(mixed $request) : User|null
Parameters
- $request : mixed
Return values
User|null —Link()
public
Link( $request) : string|null
Parameters
Return values
string|null —Location()
public
Location( $request[, bool $cords = false ]) : GeographicPosition|null|object
Parameters
Return values
GeographicPosition|null|object —MailSubject()
public
MailSubject(Email $mail, MailSender $interface) : void
Parameters
- $mail : Email
- $interface : MailSender
Return values
void —RejectLink()
public
RejectLink( $request) : string|null
Parameters
Return values
string|null —StatusLabel()
Get status label
public
StatusLabel( $val, $l) : string
Parameters
Return values
string —attachCalendar()
protected
attachCalendar(Email $mail, Event $vEvent, array<string|int, mixed> &$assets) : void
Parameters
- $mail : Email
- $vEvent : Event
- $assets : array<string|int, mixed>