Prev | Current Page 260 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

Instead, let??™s just use the text to html markup
tool Markdown as we previously did just to give it some basic but clean formatting. This leaves us with the
following adjustment and addition to the code in listing 9.11:
$newSupport->body = $plainTextContent;
$newSupport->body_formatted = $filterFormat->filter($plainTextContent);
As it is quite possible that even if we store a well formatted version of the support email body text that the
issue itself may still not provide us with all the information we need. For that reason we will also store the
sender of the email so we can contact them for any further clarification.
In Figure 9.6 we??™ve added a ???reported_by??? field in our support table to hold this information and adding
the sender to the code in listing 9.11 is accomplished with this addition:
$newSupport->reported_by = $message->from;
We could spend a bit more time breaking up that sender string into its sender??™s name and email address if
we needed to but for now it??™s sufficient for our needs.
Licensed to Menshu You
Zend Framework in Action (Ch010) Manning Publications Co. 16
Figure 9.6 The support table to which the reported_by field has been added, allowing us to record the details of the sender of the
support email.


Pages:
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
szkolenia dla przedsiębiorców oferty spa Wczasy nad morzem projektowanie wnętrz opony michelin