ShopMail
in package
OBSOLETE -- See {@see core/MailTemplate.class.php}
Tags
Table of Contents
Properties
- $arrTemplate : array<string|int, mixed>
- The array of mail templates
- $lang_id : int
- The language ID used when init() was called
Methods
- errorHandler() : bool
- Migrates existing old Shop mailtemplates to the new MailTemplate class
- getTemplateArray() : mixed
- init() : bool
- Initialize the mail template array
- reset() : mixed
- Reset the class
Properties
$arrTemplate
The array of mail templates
private
static array<string|int, mixed>
$arrTemplate
= false
$lang_id
The language ID used when init() was called
private
static int
$lang_id
= false
Methods
errorHandler()
Migrates existing old Shop mailtemplates to the new MailTemplate class
public
static errorHandler() : bool
Tags
Return values
bool —False. Always.
getTemplateArray()
public
static getTemplateArray([mixed $lang_id = 0 ]) : mixed
Parameters
- $lang_id : mixed = 0
init()
Initialize the mail template array
public
static init([int $lang_id = 0 ]) : bool
Uses the given language ID, if any, or the language set in the LANG_ID global constant. Upon success, stores the language ID used in the $lang_id class variable.
Parameters
- $lang_id : int = 0
-
The optional language ID
Return values
bool —True on success, false otherwise
reset()
Reset the class
public
static reset() : mixed