1 | <?php |
||
20 | class RegistrationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
||
21 | { |
||
22 | /** |
||
23 | * Disable the use of storage records, because the StoragePage can be set |
||
24 | * in the plugin |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function initializeObject() |
||
35 | |||
36 | /** |
||
37 | * Returns all registrations, where the confirmation date is less than the |
||
38 | * given date |
||
39 | * |
||
40 | * @param \Datetime $dateNow Date |
||
41 | * |
||
42 | * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array |
||
43 | */ |
||
44 | public function findExpiredRegistrations($dateNow) |
||
53 | |||
54 | /** |
||
55 | * Returns all registrations for the given event with the given constraints |
||
56 | * Constraints are combined with a logical AND |
||
57 | * |
||
58 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
59 | * @param array $findConstraints FindConstraints |
||
60 | * |
||
61 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
62 | */ |
||
63 | public function findNotificationRegistrations($event, $findConstraints) |
||
99 | |||
100 | /** |
||
101 | * Returns registrations for the given UserRegistrationDemand demand |
||
102 | * |
||
103 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
104 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
105 | */ |
||
106 | public function findRegistrationsByUserRegistrationDemand($demand) |
||
120 | |||
121 | /** |
||
122 | * Returns all registrations for the given event and where the waitlist flag is as given |
||
123 | * |
||
124 | * @param Event $event |
||
125 | * @param bool $waitlist |
||
126 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
127 | */ |
||
128 | public function findByEventAndWaitlist($event, $waitlist = false) |
||
142 | |||
143 | /** |
||
144 | * Sets the displayMode constraint to the given constraints array |
||
145 | * |
||
146 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
147 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
148 | * @param array $constraints Constraints |
||
149 | * |
||
150 | * @return void |
||
151 | */ |
||
152 | protected function setDisplayModeConstraint($query, $demand, &$constraints) |
||
164 | |||
165 | /** |
||
166 | * Sets the storagePage constraint to the given constraints array |
||
167 | * |
||
168 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
169 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
170 | * @param array $constraints Constraints |
||
171 | * |
||
172 | * @return void |
||
173 | */ |
||
174 | protected function setStoragePageConstraint($query, $demand, &$constraints) |
||
181 | |||
182 | /** |
||
183 | * Sets the user constraint to the given constraints array |
||
184 | * |
||
185 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
186 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
187 | * @param array $constraints Constraints |
||
188 | * |
||
189 | * @return void |
||
190 | */ |
||
191 | protected function setUserConstraint($query, $demand, &$constraints) |
||
197 | |||
198 | /** |
||
199 | * Sets the ordering to the given query for the given demand |
||
200 | * |
||
201 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
202 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
203 | * |
||
204 | * @return void |
||
205 | */ |
||
206 | protected function setOrderingsFromDemand($query, $demand) |
||
216 | } |
||
217 |