| @@ 240-251 (lines=12) @@ | ||
| 237 | ->find(); |
|
| 238 | } |
|
| 239 | ||
| 240 | public function upcomingEventsAvailable() |
|
| 241 | { |
|
| 242 | return EventQuery::create() |
|
| 243 | ->useAvailabilityQuery() |
|
| 244 | ->filterByUser($this) |
|
| 245 | ->filterByAvailable(true) |
|
| 246 | ->endUse() |
|
| 247 | ->filterByRemoved(false) |
|
| 248 | ->filterByDate(['min' => new DateTime()]) |
|
| 249 | ->orderByDate('asc') |
|
| 250 | ->find(); |
|
| 251 | } |
|
| 252 | ||
| 253 | public function upcomingEventsUnavailable() |
|
| 254 | { |
|
| @@ 253-264 (lines=12) @@ | ||
| 250 | ->find(); |
|
| 251 | } |
|
| 252 | ||
| 253 | public function upcomingEventsUnavailable() |
|
| 254 | { |
|
| 255 | return EventQuery::create() |
|
| 256 | ->useAvailabilityQuery() |
|
| 257 | ->filterByUser($this) |
|
| 258 | ->filterByAvailable(false) |
|
| 259 | ->endUse() |
|
| 260 | ->filterByRemoved(false) |
|
| 261 | ->filterByDate(['min' => new DateTime()]) |
|
| 262 | ->orderByDate('asc') |
|
| 263 | ->find(); |
|
| 264 | } |
|
| 265 | ||
| 266 | public function upcomingEventsAwaitingResponse() |
|
| 267 | { |
|