1 | <?php |
||
12 | class YRC extends Object |
||
13 | { |
||
14 | /** |
||
15 | * The user class |
||
16 | * @var string |
||
17 | */ |
||
18 | public $userClass; |
||
19 | |||
20 | /** |
||
21 | * The email address that emails should be sent from |
||
22 | * @var string |
||
23 | */ |
||
24 | public $fromEmail; |
||
25 | |||
26 | /** |
||
27 | * The name to associate with the origin email |
||
28 | * @var string |
||
29 | */ |
||
30 | public $fromName; |
||
31 | |||
32 | /** |
||
33 | * Whether or not we should really send emails |
||
34 | * @var boolean |
||
35 | */ |
||
36 | public $realSend = true; |
||
37 | |||
38 | /** |
||
39 | * The access header |
||
40 | * If set access to controller actions is granted if and only if the HTTP header value |
||
41 | * identified by this parameters equals the $accessHeaderSecret property |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public $accessHeader; |
||
45 | |||
46 | /** |
||
47 | * The access header secret value |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public $accessHeaderSecret; |
||
51 | |||
52 | /** |
||
53 | * Helper method to check the access header |
||
54 | * @return boolean |
||
55 | */ |
||
56 | public function checkAccessHeader($request) |
||
74 | |||
75 | /** |
||
76 | * Send an email using the provided viewfile and parameters |
||
77 | * @param string $viewFile |
||
78 | * @param string $subject |
||
79 | * @param string $email |
||
80 | * @param array $params |
||
81 | * @return boolean |
||
82 | */ |
||
83 | public function sendEmail($viewFile, $subject, $email, array $params = []) |
||
116 | } |