| @@ 277-288 (lines=12) @@ | ||
| 274 | ->find(); |
|
| 275 | } |
|
| 276 | ||
| 277 | public function upcomingEventsAvailable() |
|
| 278 | { |
|
| 279 | return EventQuery::create() |
|
| 280 | ->useAvailabilityQuery() |
|
| 281 | ->filterByUser($this) |
|
| 282 | ->filterByAvailable(true) |
|
| 283 | ->endUse() |
|
| 284 | ->filterByRemoved(false) |
|
| 285 | ->filterByDate(['min' => new DateTime()]) |
|
| 286 | ->orderByDate('asc') |
|
| 287 | ->find(); |
|
| 288 | } |
|
| 289 | ||
| 290 | public function upcomingEventsUnavailable() |
|
| 291 | { |
|
| @@ 290-301 (lines=12) @@ | ||
| 287 | ->find(); |
|
| 288 | } |
|
| 289 | ||
| 290 | public function upcomingEventsUnavailable() |
|
| 291 | { |
|
| 292 | return EventQuery::create() |
|
| 293 | ->useAvailabilityQuery() |
|
| 294 | ->filterByUser($this) |
|
| 295 | ->filterByAvailable(false) |
|
| 296 | ->endUse() |
|
| 297 | ->filterByRemoved(false) |
|
| 298 | ->filterByDate(['min' => new DateTime()]) |
|
| 299 | ->orderByDate('asc') |
|
| 300 | ->find(); |
|
| 301 | } |
|
| 302 | ||
| 303 | public function upcomingEventsAwaitingResponse() |
|
| 304 | { |
|