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