KMPMailer
extends Mailer
in package
uses
TemplateAwareMailerTrait
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- mobileCard() : void
- Mobile card.
- newRegistration() : void
- New registration.
- notifyOfWarrant() : void
- Notify of warrant.
- notifySecretaryOfNewMember() : void
- Notify secretary of new member.
- notifySecretaryOfNewMinorMember() : void
- Notify secretary of new minor member.
- render() : array<string|int, mixed>
- Override the render method to use database templates
- resetPassword() : void
- Reset password.
- getCurrentAction() : string|null
- Get the current action being called This is determined by looking at the backtrace
- getDbTemplate() : EmailTemplate|null
- Get database template for current mailer and action
- renderFromDb() : array<string|int, mixed>
- Render email from database template
Properties
$appSettings
protected
AppSettingsTable
$appSettings
Methods
__construct()
Constructor.
public
__construct() : mixed
mobileCard()
Mobile card.
public
mobileCard(mixed $to, mixed $url) : void
Parameters
- $to : mixed
- $url : mixed
newRegistration()
New registration.
public
newRegistration(mixed $to, mixed $url, mixed $sca_name) : void
Parameters
- $to : mixed
- $url : mixed
- $sca_name : mixed
notifyOfWarrant()
Notify of warrant.
public
notifyOfWarrant(string $to, string $memberScaName, string $warrantName, string $warrantStart, string $warrantExpires) : void
Parameters
- $to : string
- $memberScaName : string
- $warrantName : string
- $warrantStart : string
- $warrantExpires : string
notifySecretaryOfNewMember()
Notify secretary of new member.
public
notifySecretaryOfNewMember(mixed $to, mixed $url, mixed $sca_name, mixed $membershipCardPresent) : void
Parameters
- $to : mixed
- $url : mixed
- $sca_name : mixed
- $membershipCardPresent : mixed
notifySecretaryOfNewMinorMember()
Notify secretary of new minor member.
public
notifySecretaryOfNewMinorMember(mixed $to, mixed $url, mixed $sca_name, mixed $membershipCardPresent) : void
Parameters
- $to : mixed
- $url : mixed
- $sca_name : mixed
- $membershipCardPresent : mixed
render()
Override the render method to use database templates
public
render([string $content = '' ]) : array<string|int, mixed>
Parameters
- $content : string = ''
-
Content
Return values
array<string|int, mixed>resetPassword()
Reset password.
public
resetPassword(mixed $to, mixed $url) : void
Parameters
- $to : mixed
- $url : mixed
getCurrentAction()
Get the current action being called This is determined by looking at the backtrace
protected
getCurrentAction() : string|null
Return values
string|nullgetDbTemplate()
Get database template for current mailer and action
protected
getDbTemplate() : EmailTemplate|null
Return values
EmailTemplate|nullrenderFromDb()
Render email from database template
protected
renderFromDb(EmailTemplate $template[, string $content = '' ]) : array<string|int, mixed>
Parameters
- $template : EmailTemplate
-
Database template
- $content : string = ''
-
Fallback content