Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/query/ConpherenceThreadQuery.php
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | private function loadWidgetData(array $conpherences) { | ||||
$epochs = CalendarTimeUtil::getCalendarEventEpochs( | $epochs = CalendarTimeUtil::getCalendarEventEpochs( | ||||
$this->getViewer()); | $this->getViewer()); | ||||
$start_epoch = $epochs['start_epoch']; | $start_epoch = $epochs['start_epoch']; | ||||
$end_epoch = $epochs['end_epoch']; | $end_epoch = $epochs['end_epoch']; | ||||
$events = array(); | $events = array(); | ||||
if ($participant_phids) { | if ($participant_phids) { | ||||
// TODO: All of this Calendar code is probably extra-broken, but none | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
// of it is currently reachable in the UI. | |||||
$events = id(new PhabricatorCalendarEventQuery()) | $events = id(new PhabricatorCalendarEventQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withInvitedPHIDs($participant_phids) | ->withInvitedPHIDs($participant_phids) | ||||
->withIsCancelled(false) | ->withIsCancelled(false) | ||||
->withDateRange($start_epoch, $end_epoch) | ->withDateRange($start_epoch, $end_epoch) | ||||
->execute(); | ->execute(); | ||||
$events = mpull($events, null, 'getPHID'); | $events = mpull($events, null, 'getPHID'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
This comment has a TODO.