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() |
||
34 | |||
35 | /** |
||
36 | * Returns all registrations, where the confirmation date is less than the |
||
37 | * given date |
||
38 | * |
||
39 | * @param \Datetime $dateNow Date |
||
40 | * |
||
41 | * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array |
||
42 | */ |
||
43 | public function findExpiredRegistrations($dateNow) |
||
52 | |||
53 | /** |
||
54 | * Returns all registrations for the given event with the given constraints |
||
55 | * Constraints are combined with a logical AND |
||
56 | * |
||
57 | * @param Event $event Event |
||
58 | * @param CustomNotification $customNotification |
||
59 | * @param array $findConstraints FindConstraints |
||
60 | * |
||
61 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
62 | */ |
||
63 | public function findNotificationRegistrations( |
||
108 | |||
109 | /** |
||
110 | * Returns registrations for the given UserRegistrationDemand demand |
||
111 | * |
||
112 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
113 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
114 | */ |
||
115 | public function findRegistrationsByUserRegistrationDemand($demand) |
||
129 | |||
130 | /** |
||
131 | * Returns all registrations for the given event and where the waitlist flag is as given |
||
132 | * |
||
133 | * @param Event $event |
||
134 | * @param bool $waitlist |
||
135 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
136 | */ |
||
137 | public function findByEventAndWaitlist($event, $waitlist = false) |
||
146 | |||
147 | /** |
||
148 | * Returns all potential move up registrations for the given event ordered by "registration_date" |
||
149 | * |
||
150 | * @param Event $event |
||
151 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
152 | */ |
||
153 | public function findWaitlistMoveUpRegistrations(Event $event) |
||
165 | |||
166 | /** |
||
167 | * Sets the displayMode constraint to the given constraints array |
||
168 | * |
||
169 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
170 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
171 | * @param array $constraints Constraints |
||
172 | */ |
||
173 | protected function setDisplayModeConstraint($query, $demand, &$constraints) |
||
185 | |||
186 | /** |
||
187 | * Sets the storagePage constraint to the given constraints array |
||
188 | * |
||
189 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
190 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
191 | * @param array $constraints Constraints |
||
192 | */ |
||
193 | protected function setStoragePageConstraint($query, $demand, &$constraints) |
||
200 | |||
201 | /** |
||
202 | * Sets the user constraint to the given constraints array |
||
203 | * |
||
204 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
205 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
206 | * @param array $constraints Constraints |
||
207 | */ |
||
208 | protected function setUserConstraint($query, $demand, &$constraints) |
||
214 | |||
215 | /** |
||
216 | * Sets the ordering to the given query for the given demand |
||
217 | * |
||
218 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
219 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
220 | */ |
||
221 | protected function setOrderingsFromDemand($query, $demand) |
||
231 | } |
||
232 |
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..