UserCheckMail
in package
uses
TraitDataWrite, TraitEmbed, TraitPage
Table of Contents
Properties
Methods
- __construct() : mixed
- getDataWriteInstance() : DataWrite
- getEmbedInstance() : Embed
- getPageInstance() : Page
- sendMail() : array{'displayForm': int, 'message': string}
- Sends either a password reset email or an account activation email based on the specified type.
- getNoSendMsg() : string
- getUserAsk() : array<string|int, mixed>
- user who asked for pw get by mail
- setMailToken() : string
Properties
private
Mail
$mail
Methods
__construct()
public
__construct() : mixed
getDataWriteInstance()
public
getDataWriteInstance() : DataWrite
Return values
DataWritegetEmbedInstance()
public
getEmbedInstance() : Embed
Return values
EmbedgetPageInstance()
public
getPageInstance() : Page
Return values
PagesendMail()
Sends either a password reset email or an account activation email based on the specified type.
public
sendMail(string $strUserEmail[, string $type = 'sendpass' ]) : array{'displayForm': int, 'message': string}
Parameters
- $strUserEmail : string
- $type : string = 'sendpass'
-
'sendpass' or 'activate'
Tags
Return values
array{'displayForm': int, 'message': string}getNoSendMsg()
private
getNoSendMsg(bool $bSend, array<string|int, mixed> $saUserAsk, string $strUserEmail, array<string|int, mixed> $saComposedEmail) : string
Parameters
- $bSend : bool
- $saUserAsk : array<string|int, mixed>
- $strUserEmail : string
- $saComposedEmail : array<string|int, mixed>
Tags
Return values
stringgetUserAsk()
user who asked for pw get by mail
private
getUserAsk(string $strThisEmail) : array<string|int, mixed>
Parameters
- $strThisEmail : string
Return values
array<string|int, mixed>setMailToken()
private
setMailToken(int $nUserID) : string
Parameters
- $nUserID : int