Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / models / helper_mailer.php
blob22197abab9d0e8e6429fe398329da8d63822af6a
1 <?php
3 class HelperMailer extends AkActionMailer
5 var $helpers = 'mailer,example';
7 function use_helper($recipient)
9 $this->set(array(
10 'recipients' => $recipient,
11 'subject' => 'using helpers',
12 'from' => 'tester@example.com'));
15 function use_example_helper($recipient)
17 $this->set(array(
18 'recipients' => $recipient,
19 'subject' => 'using helpers',
20 'body' => array('text' => 'emphasize me!' ),
21 'from' => 'tester@example.com'));
24 function use_mail_helper($recipient)
26 $this->helpers = 'mail';
27 $this->set(array(
28 'recipients' => $recipient,
29 'subject' => 'using helpers',
30 'from' => 'tester@example.com',
31 'body' => array('text' =>
32 "But soft! What light through yonder window breaks? It is the east, " .
33 "and Juliet is the sun. Arise, fair sun, and kill the envious moon, " .
34 "which is sick and pale with grief that thou, her maid, art far more " .
35 "fair than she. Be not her maid, for she is envious! Her vestal " .
36 "livery is but sick and green, and none but fools do wear it. Cast " .
37 "it off!"
38 )));
41 function use_helper_method($recipient)
43 $this->set(array(
44 'recipients' => $recipient,
45 'subject' => 'using helpers',
46 'from' => 'tester@example.com',
47 'body' => array('text' => "emphasize me!")));
51 function name_of_the_mailer_class()
53 return $this->getMailerName();