1 | <?php |
||
24 | class AdministrationController extends AbstractController |
||
25 | { |
||
26 | /** |
||
27 | * Backend Template Container |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $defaultViewObjectName = \TYPO3\CMS\Backend\View\BackendTemplateView::class; |
||
32 | |||
33 | /** |
||
34 | * CustomNotificationLogRepository |
||
35 | * |
||
36 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
37 | */ |
||
38 | protected $customNotificationLogRepository = null; |
||
39 | |||
40 | /** |
||
41 | * ExportService |
||
42 | * |
||
43 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
44 | */ |
||
45 | protected $exportService = null; |
||
46 | |||
47 | /** |
||
48 | * SettingsService |
||
49 | * |
||
50 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
51 | */ |
||
52 | protected $settingsService = null; |
||
53 | |||
54 | /** |
||
55 | * Backend User Session Service |
||
56 | * |
||
57 | * @var \DERHANSEN\SfEventMgt\Service\BeUserSessionService |
||
58 | */ |
||
59 | protected $beUserSessionService = null; |
||
60 | |||
61 | /** |
||
62 | * The current page uid |
||
63 | * |
||
64 | * @var int |
||
65 | */ |
||
66 | protected $pid = 0; |
||
67 | |||
68 | /** |
||
69 | * BackendTemplateContainer |
||
70 | * |
||
71 | * @var BackendTemplateView |
||
72 | */ |
||
73 | protected $view; |
||
74 | |||
75 | /** |
||
76 | * DI for $customNotificationLogRepository |
||
77 | * |
||
78 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository $customNotificationLogRepository |
||
79 | */ |
||
80 | public function injectCustomNotificationLogRepository( |
||
85 | |||
86 | /** |
||
87 | * DI for $exportService |
||
88 | * |
||
89 | * @param Service\ExportService $exportService |
||
90 | */ |
||
91 | 1 | public function injectExportService(\DERHANSEN\SfEventMgt\Service\ExportService $exportService) |
|
95 | |||
96 | /** |
||
97 | * DI for $settingsService |
||
98 | * |
||
99 | * @param Service\SettingsService $settingsService |
||
100 | */ |
||
101 | 2 | public function injectSettingsService(\DERHANSEN\SfEventMgt\Service\SettingsService $settingsService) |
|
105 | 1 | ||
106 | 2 | /** |
|
107 | 2 | * DI for $beUserSessionService |
|
108 | 2 | * |
|
109 | 2 | * @param Service\BeUserSessionService $beUserSessionService |
|
110 | 2 | */ |
|
111 | 2 | public function injectBeUserSessionService(\DERHANSEN\SfEventMgt\Service\BeUserSessionService $beUserSessionService) |
|
115 | 2 | ||
116 | 2 | /** |
|
117 | 2 | * Set up the doc header properly here |
|
118 | 2 | * |
|
119 | 2 | * @param ViewInterface $view |
|
120 | 2 | */ |
|
121 | protected function initializeView(ViewInterface $view) |
||
147 | 1 | ||
148 | 1 | /** |
|
149 | * Initialize action |
||
150 | 4 | * |
|
151 | 4 | * @return void |
|
152 | 4 | */ |
|
153 | 4 | public function initializeAction() |
|
157 | |||
158 | /** |
||
159 | * Set date format for fields startDate and endDate |
||
160 | * |
||
161 | * @return void |
||
162 | 1 | */ |
|
163 | public function initializeListAction() |
||
183 | |||
184 | /** |
||
185 | * List action for backend module |
||
186 | 1 | * |
|
187 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
||
188 | 1 | * @param int $messageId MessageID |
|
189 | 1 | * |
|
190 | 1 | * @return void |
|
191 | 1 | */ |
|
192 | 1 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
|
227 | |||
228 | /** |
||
229 | * Export registrations for a given event |
||
230 | * |
||
231 | * @param int $eventUid Event UID |
||
232 | * |
||
233 | * @return void |
||
234 | */ |
||
235 | public function exportAction($eventUid) |
||
240 | |||
241 | /** |
||
242 | * Calls the handleExpiredRegistrations Service |
||
243 | * |
||
244 | * @return void |
||
245 | */ |
||
246 | public function handleExpiredRegistrationsAction() |
||
251 | |||
252 | /** |
||
253 | * The index notify action |
||
254 | * |
||
255 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
256 | * |
||
257 | * @return void |
||
258 | */ |
||
259 | public function indexNotifyAction(Event $event) |
||
269 | |||
270 | /** |
||
271 | * Notify action |
||
272 | * |
||
273 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
274 | * @param string $customNotification CustomNotification |
||
275 | * |
||
276 | * @return void |
||
277 | */ |
||
278 | public function notifyAction(Event $event, $customNotification) |
||
289 | |||
290 | /** |
||
291 | * Shows the settings error view |
||
292 | * |
||
293 | * @return void |
||
294 | */ |
||
295 | public function settingsErrorAction() |
||
298 | |||
299 | /** |
||
300 | * Suppress default validation messages |
||
301 | * |
||
302 | * @return bool |
||
303 | */ |
||
304 | protected function getErrorFlashMessage() |
||
308 | |||
309 | /** |
||
310 | * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication |
||
311 | */ |
||
312 | protected function getBackendUser() |
||
316 | } |
||
317 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.