1 | <?php |
||
19 | class RegistrationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
||
20 | { |
||
21 | /** |
||
22 | * Disable the use of storage records, because the StoragePage can be set |
||
23 | * in the plugin |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function initializeObject() |
||
33 | 44 | ||
34 | /** |
||
35 | 44 | * Returns all registrations, where the confirmation date is less than the |
|
36 | 44 | * given date |
|
37 | 44 | * |
|
38 | 44 | * @param \Datetime $dateNow Date |
|
39 | * |
||
40 | * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array |
||
41 | */ |
||
42 | public function findExpiredRegistrations($dateNow) |
||
51 | 6 | ||
52 | 6 | /** |
|
53 | 6 | * Returns all registrations for the given event with the given constraints |
|
54 | 6 | * Constraints are combined with a logical AND |
|
55 | * |
||
56 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
57 | * @param array $findConstraints FindConstraints |
||
58 | * |
||
59 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
60 | */ |
||
61 | public function findNotificationRegistrations($event, $findConstraints) |
||
97 | 2 | ||
98 | 12 | /** |
|
99 | * Returns all registrations for the given event matching the given e-mail address |
||
100 | 12 | * |
|
101 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
102 | * @param string $email E-Mail |
||
103 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
104 | */ |
||
105 | public function findEventRegistrationsByEmail($event, $email) |
||
114 | 2 | ||
115 | 2 | /** |
|
116 | 2 | * Returns registrations for the given UserRegistrationDemand demand |
|
117 | * |
||
118 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
119 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
120 | */ |
||
121 | public function findRegistrationsByUserRegistrationDemand($demand) |
||
135 | 10 | ||
136 | 10 | /** |
|
137 | * Sets the displayMode constraint to the given constraints array |
||
138 | * |
||
139 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
140 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
141 | * @param array $constraints Constraints |
||
142 | * |
||
143 | * @return void |
||
144 | */ |
||
145 | protected function setDisplayModeConstraint($query, $demand, &$constraints) |
||
157 | 8 | ||
158 | 10 | /** |
|
159 | 10 | * Sets the storagePage constraint to the given constraints array |
|
160 | * |
||
161 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
162 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
163 | * @param array $constraints Constraints |
||
164 | * |
||
165 | * @return void |
||
166 | */ |
||
167 | protected function setStoragePageConstraint($query, $demand, &$constraints) |
||
174 | 10 | ||
175 | 10 | /** |
|
176 | 10 | * Sets the user constraint to the given constraints array |
|
177 | * |
||
178 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
179 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
180 | * @param array $constraints Constraints |
||
181 | * |
||
182 | * @return void |
||
183 | */ |
||
184 | protected function setUserConstraint($query, $demand, &$constraints) |
||
190 | 10 | ||
191 | 10 | /** |
|
192 | 10 | * Sets the ordering to the given query for the given demand |
|
193 | * |
||
194 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
195 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
196 | * |
||
197 | * @return void |
||
198 | */ |
||
199 | protected function setOrderingsFromDemand($query, $demand) |
||
209 | } |
||
210 |