Differential D13088 Diff 31597 src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | $actions = id(new PhabricatorActionListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setObject($event); | ->setObject($event); | ||||
$can_edit = PhabricatorPolicyFilter::hasCapability( | $can_edit = PhabricatorPolicyFilter::hasCapability( | ||||
$viewer, | $viewer, | ||||
$event, | $event, | ||||
PhabricatorPolicyCapability::CAN_EDIT); | PhabricatorPolicyCapability::CAN_EDIT); | ||||
var_dump($event->getIsRecurring()); | |||||
var_dump($event->getIsGhostEvent()); | |||||
if ($event->getIsRecurring() && $event->getIsGhostEvent()) { | if ($event->getIsRecurring() && $event->getIsGhostEvent()) { | ||||
$index = $event->getSequenceIndex(); | $index = $event->getSequenceIndex(); | ||||
$actions->addAction( | $actions->addAction( | ||||
id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
->setName(pht('Edit This Instance')) | ->setName(pht('Edit This Instance')) | ||||
->setIcon('fa-pencil') | ->setIcon('fa-pencil') | ||||
->setHref($this->getApplicationURI("event/edit/{$id}/{$index}/")) | ->setHref($this->getApplicationURI("event/edit/{$id}/{$index}/")) | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |