1 | <?php |
||
22 | class AdministrationController extends AbstractController |
||
23 | { |
||
24 | /** |
||
25 | * CustomNotificationLogRepository |
||
26 | * |
||
27 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
28 | */ |
||
29 | protected $customNotificationLogRepository = null; |
||
30 | |||
31 | /** |
||
32 | * ExportService |
||
33 | * |
||
34 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
35 | */ |
||
36 | protected $exportService = null; |
||
37 | |||
38 | /** |
||
39 | * SettingsService |
||
40 | * |
||
41 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
42 | */ |
||
43 | protected $settingsService = null; |
||
44 | |||
45 | /** |
||
46 | * Backend User Session Service |
||
47 | * |
||
48 | * @var \DERHANSEN\SfEventMgt\Service\BeUserSessionService |
||
49 | */ |
||
50 | protected $beUserSessionService = null; |
||
51 | |||
52 | /** |
||
53 | * The current page uid |
||
54 | * |
||
55 | * @var int |
||
56 | */ |
||
57 | protected $pid = 0; |
||
58 | |||
59 | /** |
||
60 | * DI for $customNotificationLogRepository |
||
61 | * |
||
62 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository $customNotificationLogRepository |
||
63 | */ |
||
64 | public function injectCustomNotificationLogRepository( |
||
69 | |||
70 | /** |
||
71 | * DI for $exportService |
||
72 | * |
||
73 | * @param Service\ExportService $exportService |
||
74 | */ |
||
75 | public function injectExportService(\DERHANSEN\SfEventMgt\Service\ExportService $exportService) |
||
79 | |||
80 | /** |
||
81 | * DI for $settingsService |
||
82 | * |
||
83 | * @param Service\SettingsService $settingsService |
||
84 | */ |
||
85 | public function injectSettingsService(\DERHANSEN\SfEventMgt\Service\SettingsService $settingsService) |
||
89 | |||
90 | /** |
||
91 | 1 | * DI for $beUserSessionService |
|
92 | * |
||
93 | 1 | * @param Service\BeUserSessionService $beUserSessionService |
|
94 | 1 | */ |
|
95 | public function injectBeUserSessionService(\DERHANSEN\SfEventMgt\Service\BeUserSessionService $beUserSessionService) |
||
99 | |||
100 | /** |
||
101 | 2 | * Initialize action |
|
102 | * |
||
103 | 2 | * @return void |
|
104 | 1 | */ |
|
105 | 1 | public function initializeAction() |
|
109 | 2 | ||
110 | 2 | /** |
|
111 | 2 | * Set date format for fields startDate and endDate |
|
112 | 2 | * |
|
113 | 2 | * @return void |
|
114 | 2 | */ |
|
115 | 2 | public function initializeListAction() |
|
135 | 4 | ||
136 | 3 | /** |
|
137 | 3 | * List action for backend module |
|
138 | 4 | * |
|
139 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
||
140 | 4 | * @param int $messageId MessageID |
|
141 | 2 | * |
|
142 | 2 | * @return void |
|
143 | */ |
||
144 | 4 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
|
177 | 1 | ||
178 | /** |
||
179 | * Export registrations for a given event |
||
180 | * |
||
181 | * @param int $eventUid Event UID |
||
182 | * |
||
183 | * @return bool Always FALSE, since no view should be rendered |
||
184 | */ |
||
185 | public function exportAction($eventUid) |
||
190 | 1 | ||
191 | 1 | /** |
|
192 | 1 | * Calls the handleExpiredRegistrations Service |
|
193 | 1 | * |
|
194 | 1 | * @return void |
|
195 | 1 | */ |
|
196 | public function handleExpiredRegistrationsAction() |
||
201 | |||
202 | /** |
||
203 | * The index notify action |
||
204 | * |
||
205 | 1 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
|
206 | * |
||
207 | 1 | * @return void |
|
208 | 1 | */ |
|
209 | 1 | public function indexNotifyAction(Event $event) |
|
219 | |||
220 | /** |
||
221 | * Notify action |
||
222 | * |
||
223 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
224 | * @param string $customNotification CustomNotification |
||
225 | * |
||
226 | * @return void |
||
227 | */ |
||
228 | public function notifyAction(Event $event, $customNotification) |
||
239 | |||
240 | /** |
||
241 | * Shows the settings error view |
||
242 | * |
||
243 | * @return void |
||
244 | */ |
||
245 | public function settingsErrorAction() |
||
248 | |||
249 | /** |
||
250 | * Suppress default validation messages |
||
251 | * |
||
252 | * @return bool |
||
253 | */ |
||
254 | protected function getErrorFlashMessage() |
||
258 | } |
||
259 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: