1 | <?php |
||
23 | class RegistrationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
||
24 | { |
||
25 | /** |
||
26 | * Disable the use of storage records, because the StoragePage can be set |
||
27 | * in the plugin |
||
28 | */ |
||
29 | public function initializeObject() |
||
36 | |||
37 | /** |
||
38 | * Override the default findByUid function |
||
39 | * |
||
40 | * Note: This is required in order to make Extbase return the registration object with the language |
||
41 | * overlay of all sub-properties overlayed correctly. If this function is not used, findByUid will |
||
42 | * return the registration object in the expected language, but the included event object will be |
||
43 | * in the default language. |
||
44 | * |
||
45 | * This is no bug in Extbase, but a special behavior in sf_event_mgt, since the UID of the event in |
||
46 | * the default language is saved to the registration (to make event limitations work correctly) |
||
47 | * |
||
48 | * @param int $uid |
||
49 | * @return object |
||
50 | */ |
||
51 | public function findByUid($uid) |
||
57 | |||
58 | /** |
||
59 | * Returns all registrations, where the confirmation date is less than the |
||
60 | * given date |
||
61 | * |
||
62 | * @param \Datetime $dateNow Date |
||
63 | * |
||
64 | * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array |
||
65 | */ |
||
66 | public function findExpiredRegistrations($dateNow) |
||
75 | |||
76 | /** |
||
77 | * Returns all registrations for the given event with the given constraints |
||
78 | * Constraints are combined with a logical AND |
||
79 | * |
||
80 | * @param Event $event Event |
||
81 | * @param CustomNotification $customNotification |
||
82 | * @param array $findConstraints FindConstraints |
||
83 | * |
||
84 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
85 | */ |
||
86 | public function findNotificationRegistrations( |
||
131 | |||
132 | /** |
||
133 | * Returns registrations for the given UserRegistrationDemand demand |
||
134 | * |
||
135 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
136 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
137 | */ |
||
138 | public function findRegistrationsByUserRegistrationDemand($demand) |
||
155 | |||
156 | /** |
||
157 | * Returns all registrations for the given event and where the waitlist flag is as given |
||
158 | * |
||
159 | * @param Event $event |
||
160 | * @param bool $waitlist |
||
161 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
162 | */ |
||
163 | public function findByEventAndWaitlist($event, $waitlist = false) |
||
176 | |||
177 | /** |
||
178 | * Returns all potential move up registrations for the given event ordered by "registration_date" |
||
179 | * |
||
180 | * @param Event $event |
||
181 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
182 | */ |
||
183 | public function findWaitlistMoveUpRegistrations(Event $event) |
||
199 | |||
200 | /** |
||
201 | * Sets the displayMode constraint to the given constraints array |
||
202 | * |
||
203 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
204 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
205 | * @param array $constraints Constraints |
||
206 | */ |
||
207 | protected function setDisplayModeConstraint($query, $demand, &$constraints) |
||
219 | |||
220 | /** |
||
221 | * Sets the storagePage constraint to the given constraints array |
||
222 | * |
||
223 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
224 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
225 | * @param array $constraints Constraints |
||
226 | */ |
||
227 | protected function setStoragePageConstraint($query, $demand, &$constraints) |
||
234 | |||
235 | /** |
||
236 | * Sets the user constraint to the given constraints array |
||
237 | * |
||
238 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
239 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
240 | * @param array $constraints Constraints |
||
241 | */ |
||
242 | protected function setUserConstraint($query, $demand, &$constraints) |
||
248 | |||
249 | /** |
||
250 | * Sets the ordering to the given query for the given demand |
||
251 | * |
||
252 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
253 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
254 | */ |
||
255 | protected function setOrderingsFromDemand($query, $demand) |
||
265 | } |
||
266 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..