1 | <?php |
||
25 | class AdministrationController extends AbstractController |
||
26 | { |
||
27 | /** |
||
28 | * Backend Template Container |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $defaultViewObjectName = \TYPO3\CMS\Backend\View\BackendTemplateView::class; |
||
33 | |||
34 | /** |
||
35 | * CustomNotificationLogRepository |
||
36 | * |
||
37 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
38 | */ |
||
39 | protected $customNotificationLogRepository = null; |
||
40 | |||
41 | /** |
||
42 | * ExportService |
||
43 | * |
||
44 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
45 | */ |
||
46 | protected $exportService = null; |
||
47 | |||
48 | /** |
||
49 | * SettingsService |
||
50 | * |
||
51 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
52 | */ |
||
53 | protected $settingsService = null; |
||
54 | |||
55 | /** |
||
56 | * Backend User Session Service |
||
57 | * |
||
58 | * @var \DERHANSEN\SfEventMgt\Service\BeUserSessionService |
||
59 | */ |
||
60 | protected $beUserSessionService = null; |
||
61 | |||
62 | /** |
||
63 | * The current page uid |
||
64 | * |
||
65 | * @var int |
||
66 | */ |
||
67 | protected $pid = 0; |
||
68 | |||
69 | /** |
||
70 | * BackendTemplateContainer |
||
71 | * |
||
72 | * @var BackendTemplateView |
||
73 | */ |
||
74 | protected $view; |
||
75 | |||
76 | /** |
||
77 | * DI for $customNotificationLogRepository |
||
78 | * |
||
79 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository $customNotificationLogRepository |
||
80 | */ |
||
81 | public function injectCustomNotificationLogRepository( |
||
86 | |||
87 | /** |
||
88 | * DI for $exportService |
||
89 | * |
||
90 | * @param Service\ExportService $exportService |
||
91 | */ |
||
92 | public function injectExportService(\DERHANSEN\SfEventMgt\Service\ExportService $exportService) |
||
96 | |||
97 | /** |
||
98 | * DI for $settingsService |
||
99 | * |
||
100 | * @param Service\SettingsService $settingsService |
||
101 | */ |
||
102 | public function injectSettingsService(\DERHANSEN\SfEventMgt\Service\SettingsService $settingsService) |
||
106 | |||
107 | /** |
||
108 | * DI for $beUserSessionService |
||
109 | * |
||
110 | * @param Service\BeUserSessionService $beUserSessionService |
||
111 | */ |
||
112 | public function injectBeUserSessionService(\DERHANSEN\SfEventMgt\Service\BeUserSessionService $beUserSessionService) |
||
116 | |||
117 | /** |
||
118 | * Set up the doc header properly here |
||
119 | * |
||
120 | * @param ViewInterface $view |
||
121 | */ |
||
122 | protected function initializeView(ViewInterface $view) |
||
149 | |||
150 | |||
151 | |||
152 | /** |
||
153 | * Initialize action |
||
154 | * |
||
155 | * @return void |
||
156 | */ |
||
157 | public function initializeAction() |
||
161 | |||
162 | /** |
||
163 | * Set date format for fields startDate and endDate |
||
164 | * |
||
165 | * @return void |
||
166 | */ |
||
167 | public function initializeListAction() |
||
187 | |||
188 | /** |
||
189 | * List action for backend module |
||
190 | * |
||
191 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
||
192 | * @param int $messageId MessageID |
||
193 | * |
||
194 | * @return void |
||
195 | */ |
||
196 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
||
230 | |||
231 | /** |
||
232 | * Export registrations for a given event |
||
233 | * |
||
234 | * @param int $eventUid Event UID |
||
235 | * |
||
236 | * @return void |
||
237 | */ |
||
238 | public function exportAction($eventUid) |
||
243 | |||
244 | /** |
||
245 | * Calls the handleExpiredRegistrations Service |
||
246 | * |
||
247 | * @return void |
||
248 | */ |
||
249 | public function handleExpiredRegistrationsAction() |
||
254 | |||
255 | /** |
||
256 | * The index notify action |
||
257 | * |
||
258 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
259 | * |
||
260 | * @return void |
||
261 | */ |
||
262 | public function indexNotifyAction(Event $event) |
||
272 | |||
273 | /** |
||
274 | * Notify action |
||
275 | * |
||
276 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
277 | * @param string $customNotification CustomNotification |
||
278 | * |
||
279 | * @return void |
||
280 | */ |
||
281 | public function notifyAction(Event $event, $customNotification) |
||
292 | |||
293 | /** |
||
294 | * Shows the settings error view |
||
295 | * |
||
296 | * @return void |
||
297 | */ |
||
298 | public function settingsErrorAction() |
||
301 | |||
302 | /** |
||
303 | * Suppress default validation messages |
||
304 | * |
||
305 | * @return bool |
||
306 | */ |
||
307 | protected function getErrorFlashMessage() |
||
311 | |||
312 | /** |
||
313 | * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication |
||
314 | */ |
||
315 | protected function getBackendUser() |
||
319 | } |
||
320 |