Differential D16179 Diff 38920 src/applications/calendar/controller/PhabricatorCalendarController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarController.php
Show All 24 Lines | $crumbs->addAction( | ||||
->setName(pht('Create Event')) | ->setName(pht('Create Event')) | ||||
->setHref($this->getApplicationURI().'event/create/') | ->setHref($this->getApplicationURI().'event/create/') | ||||
->setIcon('fa-plus-square') | ->setIcon('fa-plus-square') | ||||
->setDropdownMenu($actions)); | ->setDropdownMenu($actions)); | ||||
return $crumbs; | return $crumbs; | ||||
} | } | ||||
protected function getEventAtIndexForGhostEvent($viewer, $event, $index) { | |||||
$phid = $event->getInstanceOfEventPHID(); | |||||
if (!$phid) { | |||||
$phid = $event->getPHID(); | |||||
} | |||||
return $this->getEventAtIndexForGhostPHID($viewer, $phid, $index); | |||||
} | |||||
protected function getEventAtIndexForGhostPHID($viewer, $phid, $index) { | protected function getEventAtIndexForGhostPHID($viewer, $phid, $index) { | ||||
$result = id(new PhabricatorCalendarEventQuery()) | $result = id(new PhabricatorCalendarEventQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withInstanceSequencePairs( | ->withInstanceSequencePairs( | ||||
array( | array( | ||||
array( | array( | ||||
$phid, | $phid, | ||||
$index, | $index, | ||||
Show All 38 Lines |