1 | <?php |
||
20 | class VisitorsController extends AbstractController |
||
21 | { |
||
22 | /** |
||
23 | * The template base path |
||
24 | */ |
||
25 | const TEMPLATE_BASE = parent::TEMPLATE_BASE . '/visitors'; |
||
26 | |||
27 | /** |
||
28 | * The index view template path |
||
29 | */ |
||
30 | const TEMPLATE_INDEX = self::TEMPLATE_BASE . '/index'; |
||
31 | |||
32 | /** |
||
33 | * The detail view template path |
||
34 | */ |
||
35 | const TEMPLATE_DETAIL = self::TEMPLATE_BASE . '/detail'; |
||
36 | |||
37 | /** |
||
38 | * @return Response |
||
39 | */ |
||
40 | public function actionIndex(): Response |
||
52 | |||
53 | /** |
||
54 | * @param $identifier |
||
55 | * @return Response |
||
56 | * @throws \flipbox\craft\ember\exceptions\RecordNotFoundException |
||
57 | */ |
||
58 | public function actionDetail($identifier): Response |
||
94 | |||
95 | |||
96 | /******************************************* |
||
97 | * BASE PATHS |
||
98 | *******************************************/ |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | protected function getBaseActionPath(): string |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | protected function getBaseCpPath(): string |
||
115 | |||
116 | /******************************************* |
||
117 | * VARIABLES |
||
118 | *******************************************/ |
||
119 | |||
120 | /** |
||
121 | * @param array $variables |
||
122 | * @param Visitor $visitor |
||
123 | */ |
||
124 | protected function baseUpsertVariables(Visitor $visitor, array &$variables = []) |
||
136 | |||
137 | /** |
||
138 | * @inheritdoc |
||
139 | */ |
||
140 | protected function baseVariables(array &$variables = []) |
||
153 | } |
||
154 |