1 | <?php |
||
22 | class ExportService |
||
23 | { |
||
24 | /** |
||
25 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository |
||
26 | */ |
||
27 | protected $registrationRepository = null; |
||
28 | |||
29 | /** |
||
30 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository |
||
31 | */ |
||
32 | protected $eventRepository = null; |
||
33 | |||
34 | /** |
||
35 | * @param RegistrationRepository $registrationRepository |
||
36 | */ |
||
37 | public function injectRegistrationRepository( |
||
42 | |||
43 | /** |
||
44 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository |
||
45 | */ |
||
46 | public function injectEventRepository(\DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository) |
||
50 | |||
51 | /** |
||
52 | * Initiates the CSV downloads for registrations of the given event uid |
||
53 | 4 | * |
|
54 | * @param int $eventUid EventUid |
||
55 | 4 | * @param array $settings Settings |
|
56 | 4 | * @throws Exception RuntimeException |
|
57 | 2 | * @return void |
|
58 | */ |
||
59 | 2 | public function downloadRegistrationsCsv($eventUid, $settings = []) |
|
70 | |||
71 | /** |
||
72 | * Returns all Registrations for the given eventUid as a CSV string |
||
73 | * |
||
74 | * @param int $eventUid EventUid |
||
75 | * @param array $settings Settings |
||
76 | 10 | * @throws Exception RuntimeException |
|
77 | * @return string |
||
78 | 10 | */ |
|
79 | 10 | public function exportRegistrationsCsv($eventUid, $settings = []) |
|
122 | |||
123 | /** |
||
124 | * Returns an array with fieldvalues for the given registration |
||
125 | * |
||
126 | * @param Registration $registration |
||
127 | * @param array $registrationFieldData |
||
128 | * @return array |
||
129 | */ |
||
130 | protected function getRegistrationFieldValues($registration, $registrationFieldData) |
||
149 | |||
150 | /** |
||
151 | * Returns an array of registration field uids and title |
||
152 | * |
||
153 | * @param int $eventUid |
||
154 | * @return array |
||
155 | */ |
||
156 | protected function getRegistrationFieldData($eventUid) |
||
167 | |||
168 | /** |
||
169 | * Prepends Byte Order Mark to exported registrations |
||
170 | * |
||
171 | * @param string $exportedRegistrations |
||
172 | * @param array $settings |
||
173 | * @return string |
||
174 | */ |
||
175 | protected function prependByteOrderMark($exportedRegistrations, $settings) |
||
183 | |||
184 | /** |
||
185 | * Returns the requested field from the given registration. If the field is a DateTime object, |
||
186 | * a formatted date string is returned |
||
187 | * |
||
188 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration $registration |
||
189 | * @param string $field |
||
190 | * @return string |
||
191 | */ |
||
192 | protected function getFieldValue($registration, $field) |
||
201 | |||
202 | /** |
||
203 | * Replaces all line breaks with a space |
||
204 | * |
||
205 | * @param mixed $value |
||
206 | * @return mixed |
||
207 | */ |
||
208 | protected function replaceLineBreaks($value) |
||
212 | |||
213 | /** |
||
214 | * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication |
||
215 | */ |
||
216 | protected function getBackendUser() |
||
220 | } |
||
221 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.