1 | <?php |
||
28 | class AdministrationController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * EventRepository |
||
33 | * |
||
34 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository |
||
35 | * */ |
||
36 | protected $eventRepository = null; |
||
37 | |||
38 | /** |
||
39 | * CustomNotificationLogRepository |
||
40 | * |
||
41 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
42 | */ |
||
43 | protected $customNotificationLogRepository = null; |
||
44 | |||
45 | /** |
||
46 | * ExportService |
||
47 | * |
||
48 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
49 | */ |
||
50 | protected $exportService = null; |
||
51 | |||
52 | /** |
||
53 | * RegistrationService |
||
54 | * |
||
55 | * @var \DERHANSEN\SfEventMgt\Service\RegistrationService |
||
56 | */ |
||
57 | protected $registrationService = null; |
||
58 | |||
59 | /** |
||
60 | * NotificationService |
||
61 | * |
||
62 | * @var \DERHANSEN\SfEventMgt\Service\NotificationService |
||
63 | */ |
||
64 | protected $notificationService = null; |
||
65 | |||
66 | /** |
||
67 | * SettingsService |
||
68 | * |
||
69 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
70 | */ |
||
71 | protected $settingsService = null; |
||
72 | |||
73 | /** |
||
74 | * The current page uid |
||
75 | * |
||
76 | * @var int |
||
77 | */ |
||
78 | protected $pid = 0; |
||
79 | |||
80 | /** |
||
81 | * DI for $customNotificationLogRepository |
||
82 | * |
||
83 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository $customNotificationLogRepository |
||
84 | */ |
||
85 | public function injectCustomNotificationLogRepository( |
||
90 | |||
91 | 1 | /** |
|
92 | * DI for $eventRepository |
||
93 | 1 | * |
|
94 | 1 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository |
|
95 | */ |
||
96 | public function injectEventRepository(\DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository) |
||
100 | |||
101 | 2 | /** |
|
102 | * DI for $exportService |
||
103 | 2 | * |
|
104 | 1 | * @param Service\ExportService $exportService |
|
105 | 1 | */ |
|
106 | 2 | public function injectExportService(\DERHANSEN\SfEventMgt\Service\ExportService $exportService) |
|
110 | 2 | ||
111 | 2 | /** |
|
112 | 2 | * DI for $notificationService |
|
113 | 2 | * |
|
114 | 2 | * @param Service\NotificationService $notificationService |
|
115 | 2 | */ |
|
116 | 2 | public function injectNotificationService(\DERHANSEN\SfEventMgt\Service\NotificationService $notificationService) |
|
120 | 2 | ||
121 | /** |
||
122 | * DI for $registrationService |
||
123 | * |
||
124 | * @param Service\RegistrationService $registrationService |
||
125 | */ |
||
126 | public function injectRegistrationService(\DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService) |
||
130 | 4 | ||
131 | /** |
||
132 | * DI for $settingsService |
||
133 | 4 | * |
|
134 | * @param Service\SettingsService $settingsService |
||
135 | 4 | */ |
|
136 | 3 | public function injectSettingsService(\DERHANSEN\SfEventMgt\Service\SettingsService $settingsService) |
|
140 | 4 | ||
141 | 2 | /** |
|
142 | 2 | * Initialize action |
|
143 | * |
||
144 | 4 | * @return void |
|
145 | 1 | */ |
|
146 | 1 | public function initializeAction() |
|
150 | 4 | ||
151 | 4 | /** |
|
152 | 4 | * Set date format for fields startDate and endDate |
|
153 | 4 | * |
|
154 | * @return void |
||
155 | */ |
||
156 | public function initializeListAction() |
||
176 | 1 | ||
177 | 1 | /** |
|
178 | * List action for backend module |
||
179 | * |
||
180 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
||
181 | * @param int $messageId MessageID |
||
182 | * |
||
183 | * @return void |
||
184 | */ |
||
185 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
||
210 | 1 | ||
211 | 1 | /** |
|
212 | * Export registrations for a given event |
||
213 | 1 | * |
|
214 | 1 | * @param int $eventUid Event UID |
|
215 | 1 | * |
|
216 | * @return bool Always FALSE, since no view should be rendered |
||
217 | */ |
||
218 | public function exportAction($eventUid) |
||
223 | |||
224 | /** |
||
225 | * Calls the handleExpiredRegistrations Service |
||
226 | * |
||
227 | * @return void |
||
228 | */ |
||
229 | public function handleExpiredRegistrationsAction() |
||
234 | |||
235 | /** |
||
236 | * The index notify action |
||
237 | * |
||
238 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
239 | * |
||
240 | * @return void |
||
241 | */ |
||
242 | public function indexNotifyAction(Event $event) |
||
252 | |||
253 | /** |
||
254 | * Notify action |
||
255 | * |
||
256 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
257 | * @param string $customNotification CustomNotification |
||
258 | * |
||
259 | * @return void |
||
260 | */ |
||
261 | public function notifyAction(Event $event, $customNotification) |
||
272 | |||
273 | /** |
||
274 | * Shows the settings error view |
||
275 | * |
||
276 | * @return void |
||
277 | */ |
||
278 | public function settingsErrorAction() |
||
281 | } |
||
282 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):