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