1 | <?php |
||
12 | class YRC extends BaseObject |
||
13 | { |
||
14 | /** |
||
15 | * The user class |
||
16 | * @var string |
||
17 | */ |
||
18 | public $user; |
||
19 | |||
20 | /** |
||
21 | * The token class |
||
22 | * @var string |
||
23 | */ |
||
24 | public $token; |
||
25 | |||
26 | /** |
||
27 | * The access header |
||
28 | * If set access to controller actions is granted if and only if the HTTP header value |
||
29 | * identified by this parameters equals the $accessHeaderSecret property |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public $accessHeader; |
||
33 | |||
34 | /** |
||
35 | * The access header secret value |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public $accessHeaderSecret; |
||
39 | |||
40 | /** |
||
41 | * Helper method to get the user class |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getUserClass() |
||
48 | |||
49 | /** |
||
50 | * Helper method to get the token class |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getTokenClass() |
||
57 | |||
58 | /** |
||
59 | * Helper method to check the access header |
||
60 | * @return boolean |
||
61 | */ |
||
62 | public function checkAccessHeader($request) |
||
80 | } |
||
81 |