Admin_Notification
Responsible for sending admin notifications regarding frontend submissions.
Tags
Table of Contents
- $moderation_enabled : bool
- Determine if moderation is enabled.
- $document : Document
- The ID of the document for which we're sending an email.
- __construct() : mixed
- Get things started.
- send() : void
- Send email notification.
- set_html_content() : string
- Set the content type for the mail.
- set_sender_email() : string
- Set the sender email address for the mail.
- set_sender_name() : string
- Set the send name for the mail.
- get_message() : string
- Get the message of the email.
- get_subject() : string
- Get the subject of the email.
Properties
$moderation_enabled
Determine if moderation is enabled.
public
bool
$moderation_enabled
= false
$document
The ID of the document for which we're sending an email.
protected
Document
$document
= false
Methods
__construct()
Get things started.
public
__construct(Document $document) : mixed
Parameters
- $document : Document
-
The document object for which we're sending an email.
Return values
mixed —send()
Send email notification.
public
send() : void
Return values
void —set_html_content()
Set the content type for the mail.
public
set_html_content() : string
Return values
string —set_sender_email()
Set the sender email address for the mail.
public
set_sender_email() : string
Return values
string —set_sender_name()
Set the send name for the mail.
public
set_sender_name() : string
Return values
string —get_message()
Get the message of the email.
private
get_message() : string
Return values
string —get_subject()
Get the subject of the email.
private
get_subject() : string