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 | * @inject |
||
36 | */ |
||
37 | protected $eventRepository = null; |
||
38 | |||
39 | /** |
||
40 | * CustomNotificationLogRepository |
||
41 | * |
||
42 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
43 | * @inject |
||
44 | */ |
||
45 | protected $customNotificationLogRepository = null; |
||
46 | |||
47 | /** |
||
48 | * ExportService |
||
49 | * |
||
50 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
51 | * @inject |
||
52 | */ |
||
53 | protected $exportService = null; |
||
54 | |||
55 | /** |
||
56 | * RegistrationService |
||
57 | * |
||
58 | * @var \DERHANSEN\SfEventMgt\Service\RegistrationService |
||
59 | * @inject |
||
60 | */ |
||
61 | protected $registrationService = null; |
||
62 | |||
63 | /** |
||
64 | * NotificationService |
||
65 | * |
||
66 | * @var \DERHANSEN\SfEventMgt\Service\NotificationService |
||
67 | * @inject |
||
68 | */ |
||
69 | protected $notificationService = null; |
||
70 | |||
71 | /** |
||
72 | * SettingsService |
||
73 | * |
||
74 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
75 | * @inject |
||
76 | */ |
||
77 | protected $settingsService = null; |
||
78 | |||
79 | /** |
||
80 | * The current page uid |
||
81 | * |
||
82 | * @var int |
||
83 | */ |
||
84 | protected $pid = 0; |
||
85 | |||
86 | /** |
||
87 | * Initialize action |
||
88 | * |
||
89 | * @return void |
||
90 | */ |
||
91 | 1 | public function initializeAction() |
|
95 | |||
96 | /** |
||
97 | * Set date format for fields startDate and endDate |
||
98 | * |
||
99 | * @return void |
||
100 | */ |
||
101 | 2 | public function initializeListAction() |
|
121 | |||
122 | /** |
||
123 | * List action for backend module |
||
124 | * |
||
125 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
||
126 | * @param int $messageId MessageID |
||
127 | * |
||
128 | * @return void |
||
129 | */ |
||
130 | 4 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
|
154 | |||
155 | /** |
||
156 | * Export registrations for a given event |
||
157 | * |
||
158 | * @param int $eventUid Event UID |
||
159 | * |
||
160 | * @return bool Always FALSE, since no view should be rendered |
||
161 | */ |
||
162 | 1 | public function exportAction($eventUid) |
|
167 | |||
168 | /** |
||
169 | * Calls the handleExpiredRegistrations Service |
||
170 | * |
||
171 | * @return void |
||
172 | */ |
||
173 | 1 | public function handleExpiredRegistrationsAction() |
|
178 | |||
179 | /** |
||
180 | * The index notify action |
||
181 | * |
||
182 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
183 | * |
||
184 | * @return void |
||
185 | */ |
||
186 | 1 | public function indexNotifyAction(Event $event) |
|
187 | { |
||
188 | 1 | $customNotifications = $this->settingsService->getCustomNotifications($this->settings); |
|
189 | 1 | $logEntries = $this->customNotificationLogRepository->findByEvent($event); |
|
190 | 1 | $this->view->assignMultiple([ |
|
191 | 1 | 'event' => $event, |
|
192 | 1 | 'customNotifications' => $customNotifications, |
|
193 | 1 | 'logEntries' => $logEntries, |
|
194 | 1 | ]); |
|
195 | 1 | } |
|
196 | |||
197 | /** |
||
198 | * Notify action |
||
199 | * |
||
200 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
201 | * @param string $customNotification CustomNotification |
||
202 | * |
||
203 | * @return void |
||
204 | */ |
||
205 | 1 | public function notifyAction(Event $event, $customNotification) |
|
216 | |||
217 | /** |
||
218 | * Shows the settings error view |
||
219 | * |
||
220 | * @return void |
||
221 | */ |
||
222 | public function settingsErrorAction() |
||
225 | } |
||
226 |