1 | <?php |
||
23 | class AdministrationController extends AbstractController |
||
24 | { |
||
25 | /** |
||
26 | * CustomNotificationLogRepository |
||
27 | * |
||
28 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository |
||
29 | */ |
||
30 | protected $customNotificationLogRepository = null; |
||
31 | |||
32 | /** |
||
33 | * ExportService |
||
34 | * |
||
35 | * @var \DERHANSEN\SfEventMgt\Service\ExportService |
||
36 | */ |
||
37 | protected $exportService = null; |
||
38 | |||
39 | /** |
||
40 | * SettingsService |
||
41 | * |
||
42 | * @var \DERHANSEN\SfEventMgt\Service\SettingsService |
||
43 | */ |
||
44 | protected $settingsService = null; |
||
45 | |||
46 | /** |
||
47 | * Backend User Session Service |
||
48 | * |
||
49 | * @var \DERHANSEN\SfEventMgt\Service\BeUserSessionService |
||
50 | */ |
||
51 | protected $beUserSessionService = null; |
||
52 | |||
53 | /** |
||
54 | * The current page uid |
||
55 | * |
||
56 | * @var int |
||
57 | */ |
||
58 | protected $pid = 0; |
||
59 | |||
60 | /** |
||
61 | * DI for $customNotificationLogRepository |
||
62 | * |
||
63 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\CustomNotificationLogRepository $customNotificationLogRepository |
||
64 | */ |
||
65 | public function injectCustomNotificationLogRepository( |
||
70 | |||
71 | /** |
||
72 | * DI for $exportService |
||
73 | * |
||
74 | * @param Service\ExportService $exportService |
||
75 | */ |
||
76 | public function injectExportService(\DERHANSEN\SfEventMgt\Service\ExportService $exportService) |
||
80 | |||
81 | /** |
||
82 | * DI for $settingsService |
||
83 | * |
||
84 | * @param Service\SettingsService $settingsService |
||
85 | */ |
||
86 | public function injectSettingsService(\DERHANSEN\SfEventMgt\Service\SettingsService $settingsService) |
||
90 | |||
91 | 2 | /** |
|
92 | * DI for $beUserSessionService |
||
93 | 2 | * |
|
94 | 2 | * @param Service\BeUserSessionService $beUserSessionService |
|
95 | */ |
||
96 | public function injectBeUserSessionService(\DERHANSEN\SfEventMgt\Service\BeUserSessionService $beUserSessionService) |
||
100 | |||
101 | 4 | /** |
|
102 | * Initialize action |
||
103 | 4 | * |
|
104 | 2 | * @return void |
|
105 | 2 | */ |
|
106 | 4 | public function initializeAction() |
|
110 | 4 | ||
111 | 4 | /** |
|
112 | 4 | * Set date format for fields startDate and endDate |
|
113 | 4 | * |
|
114 | 4 | * @return void |
|
115 | 4 | */ |
|
116 | 4 | public function initializeListAction() |
|
136 | 6 | ||
137 | 6 | /** |
|
138 | 8 | * List action for backend module |
|
139 | * |
||
140 | 8 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand $searchDemand SearchDemand |
|
141 | 4 | * @param int $messageId MessageID |
|
142 | 4 | * |
|
143 | * @return void |
||
144 | 8 | */ |
|
145 | 2 | public function listAction(SearchDemand $searchDemand = null, $messageId = null) |
|
179 | |||
180 | /** |
||
181 | * Returns, if the user has write access to temp folder and if not, adds a flash message if configured |
||
182 | * |
||
183 | * @return bool |
||
184 | */ |
||
185 | protected function hasWriteAccessToTempFolder() |
||
198 | |||
199 | /** |
||
200 | * Export registrations for a given event |
||
201 | * |
||
202 | * @param int $eventUid Event UID |
||
203 | * |
||
204 | * @return bool Always FALSE, since no view should be rendered |
||
205 | 2 | */ |
|
206 | public function exportAction($eventUid) |
||
212 | |||
213 | 2 | /** |
|
214 | 2 | * Calls the handleExpiredRegistrations Service |
|
215 | 2 | * |
|
216 | * @return void |
||
217 | */ |
||
218 | public function handleExpiredRegistrationsAction() |
||
223 | |||
224 | /** |
||
225 | * The index notify action |
||
226 | * |
||
227 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
228 | * |
||
229 | * @return void |
||
230 | */ |
||
231 | public function indexNotifyAction(Event $event) |
||
241 | |||
242 | /** |
||
243 | * Notify action |
||
244 | * |
||
245 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
246 | * @param string $customNotification CustomNotification |
||
247 | * |
||
248 | * @return void |
||
249 | */ |
||
250 | public function notifyAction(Event $event, $customNotification) |
||
261 | |||
262 | /** |
||
263 | * Shows the settings error view |
||
264 | * |
||
265 | * @return void |
||
266 | */ |
||
267 | public function settingsErrorAction() |
||
270 | |||
271 | /** |
||
272 | * Suppress default validation messages |
||
273 | * |
||
274 | * @return bool |
||
275 | */ |
||
276 | protected function getErrorFlashMessage() |
||
280 | } |
||
281 |
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: