Sunnysideup\Ecommerce\Email\OrderEmail
Synopsis
class OrderEmail
extends Email
{
- // members
- protected Order $order;
- protected bool $resend = false;
- private static bool $send_all_emails_plain = false;
- private static string $css_file_location = 'vendor/sunnysideup/ecommerce/client/css/OrderReport.css';
- private static bool $copy_to_admin_for_all_emails = true;
- // methods
- public static string emogrify_html()
- public static string get_from_email()
- public static string get_subject()
- public void setOrder()
- public void setResend()
- public bool send()
- public string emailToVarchar()
- public void hasBeenSent()
- public $this render()
- protected void createRecord()
Hierarchy
Extends
- SilverStripe\Control\Email\Email
Members
private
- $copy_to_admin_for_all_emails — Sunnysideup\Ecommerce\Email\bool
- $css_file_location — string
- $send_all_emails_plain — Sunnysideup\Ecommerce\Email\bool
protected
- $order — Sunnysideup\Ecommerce\Model\Order
- $resend — Sunnysideup\Ecommerce\Email\bool
Methods
protected
public
- emailToVarchar() — converts an Email to A Varchar.
- emogrify_html() — turns an html document into a formatted html document using the emogrify method.
- get_from_email() — returns the standard from email address (e.g. the shop admin email address).
- get_subject() — returns the subject for the email (doh!).
- hasBeenSent() — Checks if an email has been sent for this Order for this status (order step).
- render() — Render the email.
- send()
- setOrder() — set the order associated with the email.
- setResend() — sets resend to true, which means that the email is sent even if it has already been sent.