EmailHandler
extends AbstractProcessingHandler
in package
Table of Contents
Methods
- buildMailTxt() : mixed
- getMailBcc() : string
- エラー通知メールのBccを取得
- getMailFrom() : string
- エラー通知メールのFromを取得
- getMailTo() : bool|string
- エラー通知する宛先のアドレスを取得
- nofify() : void
- メール通知する
- suppressNotifications() : bool
- 通知を一時的に止めるか判断
- write() : void
- ログをメールで送信
Methods
buildMailTxt()
protected
buildMailTxt(mixed $tplPath, mixed $field) : mixed
Parameters
- $tplPath : mixed
- $field : mixed
getMailBcc()
エラー通知メールのBccを取得
protected
getMailBcc() : string
Return values
stringgetMailFrom()
エラー通知メールのFromを取得
protected
getMailFrom() : string
Return values
stringgetMailTo()
エラー通知する宛先のアドレスを取得
protected
getMailTo() : bool|string
Return values
bool|stringnofify()
メール通知する
protected
nofify(string $to, string $from, string $bcc, string $subject, string $body) : void
Parameters
- $to : string
- $from : string
- $bcc : string
- $subject : string
- $body : string
Tags
suppressNotifications()
通知を一時的に止めるか判断
protected
suppressNotifications(string $lockFilePath, string $countFilePath, int $limit, int $timeRange, int $stopTime) : bool
Parameters
- $lockFilePath : string
- $countFilePath : string
- $limit : int
- $timeRange : int
- $stopTime : int
Return values
boolwrite()
ログをメールで送信
protected
write(array<string|int, mixed> $record) : void
Parameters
- $record : array<string|int, mixed>