Functions
in package
Implement additional template methods
This class provides additional functions for the system event email
Tags
Table of Contents
- $template : Template|null
- __construct() : mixed
- Functions constructor.
- FormatLocalDate() : DateTime|string
- GetBasketUrl() : string
- TextTable() : mixed
- TextTableBasketNotify() : string
- Render data to text table
Properties
$template
private
Template|null
$template
Methods
__construct()
Functions constructor.
public
__construct(Template $template) : mixed
Parameters
- $template : Template
Return values
mixed —FormatLocalDate()
public
FormatLocalDate( $date[, string $timezone = 'Europe/Berlin' ][, string $format = 'd.m.Y H:i' ]) : DateTime|string
Parameters
Return values
DateTime|string —GetBasketUrl()
public
GetBasketUrl(string $id) : string
Parameters
- $id : string
Return values
string —TextTable()
public
TextTable( $data, string $lang) : mixed
Parameters
Return values
mixed —TextTableBasketNotify()
Render data to text table
public
TextTableBasketNotify(array<string|int, mixed> $data, string $lang) : string
Parameters
- $data : array<string|int, mixed>
- $lang : string