Inherits DataItem.
Definition at line 40 of file email_template.inc.
◆ EmailTemplate()
EmailTemplate::EmailTemplate |
( |
| ) |
|
Definition at line 109 of file email_template.inc.
111 $this->table =
"email_template";
112 $this->primary_key =
"email_template_id";
114 $this->DataItem(func_get_args());
◆ getEmailTemplate()
static EmailTemplate::getEmailTemplate |
( |
|
$name | ) |
|
|
static |
Retrieves the named email templated.
- Parameters
-
string | $name | the identifier for the email template |
- Returns
- EmailTemplate the matching email template (null if not matched)
Definition at line 57 of file email_template.inc.
◆ setDefaultTemplate()
static EmailTemplate::setDefaultTemplate |
( |
|
$name, |
|
|
|
$recipients, |
|
|
|
$subject, |
|
|
|
$message, |
|
|
|
$class_name, |
|
|
|
$sender_email = "" |
|
) |
| |
|
static |
Create a default template for emails that are sent through Fakoli components (e.g., blog_published)
- Parameters
-
string | $name | |
string | $recipients | |
string | $subject | |
string | $message | |
string | $class_name | |
string | $sender_email | |
Definition at line 89 of file email_template.inc.
92 ->bind(
":name",
$name)
◆ templateExists()
static EmailTemplate::templateExists |
( |
|
$name | ) |
|
|
static |
Checks whether the named EmailTemplate exists.
- Parameters
-
string | $name | the identifier for the email template |
- Returns
- boolean
Definition at line 71 of file email_template.inc.
73 return Query::create(
'EmailTemplate',
"WHERE name=:n")
◆ $fields
Initial value:= array(
"email_template_id" => Number,
"class_name" => String,
"name" => String,
"sender_email" => String,
"recipients" => Text,
"subject" => String,
"message" => HTML
)
Definition at line 42 of file email_template.inc.
The documentation for this class was generated from the following file: