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 | * The access header |
||
34 | * If set access to controller actions is granted if and only if the HTTP header value |
||
35 | * identified by this parameters equals the $accessHeaderSecret property |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public $accessHeader; |
||
39 | |||
40 | /** |
||
41 | * The access header secret value |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public $accessHeaderSecret; |
||
45 | |||
46 | /** |
||
47 | * Helper method to get the user class |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getUserClass() |
||
54 | |||
55 | /** |
||
56 | * Helper method to check the access header |
||
57 | * @return boolean |
||
58 | */ |
||
59 | public function checkAccessHeader($request) |
||
77 | } |