1 | <?php |
||
24 | class CheckInController extends Page_Controller implements PermissionProvider |
||
25 | { |
||
26 | const NO_CODE = -3; |
||
27 | const NO_ATTENDEES = -2; |
||
28 | const CODE_NOT_FOUND = -1; |
||
29 | const ALREADY_CHECKED_IN = 0; |
||
30 | const SUCCESS = 1; |
||
31 | |||
32 | private static $allowed_actions = array( |
||
33 | 'CheckInForm', |
||
34 | 'ticket' |
||
35 | ); |
||
36 | |||
37 | /** |
||
38 | * Add a ticket action for a cleaner API |
||
39 | * |
||
40 | * @return \SS_HTTPResponse|void |
||
41 | */ |
||
42 | public function ticket() { |
||
55 | |||
56 | /** |
||
57 | * Get the check in form |
||
58 | * |
||
59 | * @return CheckInForm |
||
60 | */ |
||
61 | public function CheckInForm() |
||
65 | |||
66 | /** |
||
67 | * Force the controller action |
||
68 | * |
||
69 | * @param string $action |
||
70 | * |
||
71 | * @return SSViewer |
||
72 | */ |
||
73 | public function getViewer($action) |
||
81 | |||
82 | /** |
||
83 | * Get a relative link to the current controller |
||
84 | * Needed to handle the form |
||
85 | * |
||
86 | * @param null $action |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | public function Link($action = null) |
||
98 | |||
99 | /** |
||
100 | * Provide permissions required for ticket check in |
||
101 | * |
||
102 | * @return array |
||
103 | */ |
||
104 | public function providePermissions() |
||
113 | |||
114 | /** |
||
115 | * Here for legacy app support |
||
116 | * |
||
117 | * @deprecated use the ticket action when checking user in trough url |
||
118 | * @return \SS_HTTPResponse|void |
||
119 | * @throws \Exception |
||
120 | */ |
||
121 | public function init() |
||
138 | } |
||
139 |