1 | <?php |
||
13 | abstract class Order_Email extends Email |
||
14 | { |
||
15 | /** |
||
16 | * @var Order |
||
17 | */ |
||
18 | protected $order = null; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | protected $resend = false; |
||
24 | |||
25 | /** |
||
26 | * turns an html document into a formatted html document |
||
27 | * using the emogrify method. |
||
28 | * |
||
29 | * @param $html |
||
30 | * |
||
31 | * @return string HTML |
||
32 | */ |
||
33 | public static function emogrify_html($html) |
||
51 | |||
52 | /** |
||
53 | * returns the standard from email address (e.g. the shop admin email address). |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public static function get_from_email() |
||
68 | |||
69 | /** |
||
70 | * returns the subject for the email (doh!). |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public static function get_subject() |
||
83 | |||
84 | /** |
||
85 | * set the order associated with the email. |
||
86 | * |
||
87 | * @param Order $order - the order to which the email relates |
||
88 | */ |
||
89 | public function setOrder(Order $order) |
||
93 | |||
94 | /** |
||
95 | * sets resend to true, which means that the email |
||
96 | * is sent even if it has already been sent. |
||
97 | */ |
||
98 | public function setResend($resend = true) |
||
102 | |||
103 | /** |
||
104 | * @param null|string $messageID - ID for the message, you can leave this blank |
||
105 | * @param bool $returnBodyOnly - rather than sending the email, only return the HTML BODY |
||
106 | * |
||
107 | * @return bool - TRUE for success and FALSE for failure. |
||
108 | */ |
||
109 | public function send($messageID = null, $returnBodyOnly = false) |
||
145 | |||
146 | /** |
||
147 | * @param bool $result: how did the email go? 1 = sent, 0 = not sent |
||
148 | * |
||
149 | * @return DataObject (OrderEmailRecord) |
||
150 | **/ |
||
151 | protected function createRecord($result) |
||
184 | |||
185 | /** |
||
186 | * converts an Email to A Varchar. |
||
187 | * |
||
188 | * @param string $email - email address |
||
189 | * |
||
190 | * @return string - returns email address without > and < |
||
191 | */ |
||
192 | public function emailToVarchar($email) |
||
198 | |||
199 | /** |
||
200 | * Checks if an email has been sent for this Order for this status (order step). |
||
201 | * |
||
202 | * @return bool |
||
203 | **/ |
||
204 | public function hasBeenSent() |
||
213 | |||
214 | /** |
||
215 | * moves CSS to inline CSS in email. |
||
216 | * |
||
217 | * @param bool $isPlain - should we send the email as HTML or as TEXT |
||
218 | */ |
||
219 | protected function parseVariables($isPlain = false) |
||
227 | |||
228 | /** |
||
229 | * returns the instance of EcommerceDBConfig. |
||
230 | * |
||
231 | * @return EcommerceDBConfig |
||
232 | **/ |
||
233 | public function EcomConfig() |
||
237 | } |
||
238 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.