1 | <?php |
||
24 | class RegistrationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Disable the use of storage records, because the StoragePage can be set |
||
29 | * in the plugin |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function initializeObject() |
||
39 | |||
40 | /** |
||
41 | * Returns all registrations, where the confirmation date is less than the |
||
42 | * given date |
||
43 | * |
||
44 | * @param \Datetime $dateNow Date |
||
45 | * |
||
46 | * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array |
||
47 | */ |
||
48 | public function findExpiredRegistrations($dateNow) |
||
56 | |||
57 | /** |
||
58 | * Returns all registrations for the given event with the given constraints |
||
59 | * Constraints are combined with a logical AND |
||
60 | * |
||
61 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
62 | * @param array $findConstraints FindConstraints |
||
63 | * |
||
64 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
65 | */ |
||
66 | public function findNotificationRegistrations($event, $findConstraints) |
||
102 | |||
103 | /** |
||
104 | * Returns all registrations for the given event matching the given e-mail address |
||
105 | * |
||
106 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event |
||
107 | * @param string $email E-Mail |
||
108 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
109 | */ |
||
110 | public function findEventRegistrationsByEmail($event, $email) |
||
118 | |||
119 | /** |
||
120 | * Returns registrations for the given UserRegistrationDemand demand |
||
121 | * |
||
122 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
123 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
||
124 | */ |
||
125 | public function findRegistrationsByUserRegistrationDemand($demand) |
||
138 | |||
139 | /** |
||
140 | * Sets the displayMode constraint to the given constraints array |
||
141 | * |
||
142 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
143 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
144 | * @param array $constraints Constraints |
||
145 | * |
||
146 | * @return void |
||
147 | */ |
||
148 | protected function setDisplayModeConstraint($query, $demand, &$constraints) |
||
160 | |||
161 | /** |
||
162 | * Sets the storagePage constraint to the given constraints array |
||
163 | * |
||
164 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
165 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
166 | * @param array $constraints Constraints |
||
167 | * |
||
168 | * @return void |
||
169 | */ |
||
170 | protected function setStoragePageConstraint($query, $demand, &$constraints) |
||
177 | |||
178 | /** |
||
179 | * Sets the user constraint to the given constraints array |
||
180 | * |
||
181 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
182 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
183 | * @param array $constraints Constraints |
||
184 | * |
||
185 | * @return void |
||
186 | */ |
||
187 | protected function setUserConstraint($query, $demand, &$constraints) |
||
193 | |||
194 | /** |
||
195 | * Sets the ordering to the given query for the given demand |
||
196 | * |
||
197 | * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query Query |
||
198 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand $demand |
||
199 | * |
||
200 | * @return void |
||
201 | */ |
||
202 | protected function setOrderingsFromDemand($query, $demand) |
||
212 | } |
||
213 |