1
|
|
|
<?php |
2
|
|
|
namespace DERHANSEN\SfEventMgt\Controller; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the TYPO3 CMS project. |
6
|
|
|
* |
7
|
|
|
* It is free software; you can redistribute it and/or modify it under |
8
|
|
|
* the terms of the GNU General Public License, either version 2 |
9
|
|
|
* of the License, or any later version. |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please read the |
12
|
|
|
* LICENSE.txt file that was distributed with this source code. |
13
|
|
|
* |
14
|
|
|
* The TYPO3 project - inspiring people to share! |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* EventController |
19
|
|
|
* |
20
|
|
|
* @author Torben Hansen <[email protected]> |
21
|
|
|
*/ |
22
|
|
|
abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController |
23
|
|
|
{ |
24
|
|
|
/** |
25
|
|
|
* EventRepository |
26
|
|
|
* |
27
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository |
28
|
|
|
*/ |
29
|
|
|
protected $eventRepository = null; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Registration repository |
33
|
|
|
* |
34
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository |
35
|
|
|
*/ |
36
|
|
|
protected $registrationRepository = null; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* Category repository |
40
|
|
|
* |
41
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository |
42
|
|
|
*/ |
43
|
|
|
protected $categoryRepository = null; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Location repository |
47
|
|
|
* |
48
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository |
49
|
|
|
*/ |
50
|
|
|
protected $locationRepository = null; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Organisator repository |
54
|
|
|
* |
55
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository |
56
|
|
|
*/ |
57
|
|
|
protected $organisatorRepository = null; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Notification Service |
61
|
|
|
* |
62
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\NotificationService |
63
|
|
|
*/ |
64
|
|
|
protected $notificationService = null; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* ICalendar Service |
68
|
|
|
* |
69
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\ICalendarService |
70
|
|
|
*/ |
71
|
|
|
protected $icalendarService = null; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Hash Service |
75
|
|
|
* |
76
|
|
|
* @var \TYPO3\CMS\Extbase\Security\Cryptography\HashService |
77
|
|
|
*/ |
78
|
|
|
protected $hashService; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* RegistrationService |
82
|
|
|
* |
83
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\RegistrationService |
84
|
|
|
*/ |
85
|
|
|
protected $registrationService = null; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* CalendarService |
89
|
|
|
* |
90
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\CalendarService |
91
|
|
|
*/ |
92
|
|
|
protected $calendarService = null; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* UtilityService |
96
|
|
|
* |
97
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\UtilityService |
98
|
|
|
*/ |
99
|
|
|
protected $utilityService = null; |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* PaymentMethodService |
103
|
|
|
* |
104
|
|
|
* @var \DERHANSEN\SfEventMgt\Service\PaymentService |
105
|
|
|
*/ |
106
|
|
|
protected $paymentService = null; |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* FieldRepository |
110
|
|
|
* |
111
|
|
|
* @var \DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository |
112
|
|
|
*/ |
113
|
|
|
protected $fieldRepository = null; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* DI for $calendarService |
117
|
|
|
* |
118
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\CalendarService $calendarService |
119
|
|
|
*/ |
120
|
|
|
public function injectCalendarService(\DERHANSEN\SfEventMgt\Service\CalendarService $calendarService) |
121
|
|
|
{ |
122
|
|
|
$this->calendarService = $calendarService; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* DI for $categoryRepository |
127
|
|
|
* |
128
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository |
129
|
|
|
*/ |
130
|
|
|
public function injectCategoryRepository( |
131
|
|
|
\DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository |
132
|
|
|
) { |
133
|
|
|
$this->categoryRepository = $categoryRepository; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* DI for $eventRepository |
138
|
|
|
* |
139
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository |
140
|
|
|
*/ |
141
|
|
|
public function injectEventRepository(\DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository) |
142
|
|
|
{ |
143
|
|
|
$this->eventRepository = $eventRepository; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* DI for $hashService |
148
|
|
|
* |
149
|
|
|
* @param \TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService |
150
|
|
|
*/ |
151
|
|
|
public function injectHashService(\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService) |
152
|
|
|
{ |
153
|
|
|
$this->hashService = $hashService; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* DI for $icalendarService |
158
|
|
|
* |
159
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService |
160
|
|
|
*/ |
161
|
|
|
public function injectIcalendarService(\DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService) |
162
|
|
|
{ |
163
|
|
|
$this->icalendarService = $icalendarService; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* DI for $locationRepository |
168
|
|
|
* |
169
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository |
170
|
|
|
*/ |
171
|
|
|
public function injectLocationRepository( |
172
|
|
|
\DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository |
173
|
|
|
) { |
174
|
|
|
$this->locationRepository = $locationRepository; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* DI for $notificationService |
179
|
|
|
* |
180
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\NotificationService $notificationService |
181
|
|
|
*/ |
182
|
|
|
public function injectNotificationService(\DERHANSEN\SfEventMgt\Service\NotificationService $notificationService) |
183
|
|
|
{ |
184
|
|
|
$this->notificationService = $notificationService; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* DI for $organisatorRepository |
189
|
|
|
* |
190
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository |
191
|
|
|
*/ |
192
|
|
|
public function injectOrganisatorRepository( |
193
|
|
|
\DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository |
194
|
|
|
) { |
195
|
|
|
$this->organisatorRepository = $organisatorRepository; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* DI for $paymentService |
200
|
|
|
* |
201
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\PaymentService $paymentService |
202
|
|
|
*/ |
203
|
|
|
public function injectPaymentService(\DERHANSEN\SfEventMgt\Service\PaymentService $paymentService) |
204
|
|
|
{ |
205
|
|
|
$this->paymentService = $paymentService; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* DI for $registrationRepository |
210
|
|
|
* |
211
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository |
212
|
|
|
*/ |
213
|
|
|
public function injectRegistrationRepository( |
214
|
|
|
\DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository |
215
|
|
|
) { |
216
|
|
|
$this->registrationRepository = $registrationRepository; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* DI for $registrationService |
221
|
|
|
* |
222
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService |
223
|
|
|
*/ |
224
|
|
|
public function injectRegistrationService(\DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService) |
225
|
|
|
{ |
226
|
|
|
$this->registrationService = $registrationService; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* DI for $utilityService |
231
|
|
|
* |
232
|
|
|
* @param \DERHANSEN\SfEventMgt\Service\UtilityService $utilityService |
233
|
|
|
*/ |
234
|
|
|
public function injectUtilityService(\DERHANSEN\SfEventMgt\Service\UtilityService $utilityService) |
235
|
|
|
{ |
236
|
|
|
$this->utilityService = $utilityService; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* DI for $fieldRepository |
241
|
|
|
* |
242
|
|
|
* @param \DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository $fieldRepository |
243
|
|
|
*/ |
244
|
|
|
public function injectFieldRepository( |
245
|
|
|
\DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository $fieldRepository |
246
|
|
|
) { |
247
|
|
|
$this->fieldRepository = $fieldRepository; |
248
|
|
|
} |
249
|
|
|
} |
250
|
|
|
|