Differential D19842 Diff 47384 src/applications/calendar/editor/PhabricatorCalendarEventEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/editor/PhabricatorCalendarEventEditEngine.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | $fields = array( | ||||
->setValue($object->newEndDateTimeForEdit()->getEpoch()), | ->setValue($object->newEndDateTimeForEdit()->getEpoch()), | ||||
id(new PhabricatorBoolEditField()) | id(new PhabricatorBoolEditField()) | ||||
->setKey('cancelled') | ->setKey('cancelled') | ||||
->setOptions(pht('Active'), pht('Cancelled')) | ->setOptions(pht('Active'), pht('Cancelled')) | ||||
->setLabel(pht('Cancelled')) | ->setLabel(pht('Cancelled')) | ||||
->setDescription(pht('Cancel the event.')) | ->setDescription(pht('Cancel the event.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorCalendarEventCancelTransaction::TRANSACTIONTYPE) | PhabricatorCalendarEventCancelTransaction::TRANSACTIONTYPE) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setConduitDescription(pht('Cancel or restore the event.')) | ->setConduitDescription(pht('Cancel or restore the event.')) | ||||
->setConduitTypeDescription(pht('True to cancel the event.')) | ->setConduitTypeDescription(pht('True to cancel the event.')) | ||||
->setValue($object->getIsCancelled()), | ->setValue($object->getIsCancelled()), | ||||
id(new PhabricatorUsersEditField()) | id(new PhabricatorUsersEditField()) | ||||
->setIsLockable(false) | ->setIsLockable(false) | ||||
->setIsDefaultable(false) | ->setIsDefaultable(false) | ||||
->setKey('hostPHID') | ->setKey('hostPHID') | ||||
->setAliases(array('host')) | ->setAliases(array('host')) | ||||
->setLabel(pht('Host')) | ->setLabel(pht('Host')) | ||||
->setDescription(pht('Host of the event.')) | ->setDescription(pht('Host of the event.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorCalendarEventHostTransaction::TRANSACTIONTYPE) | PhabricatorCalendarEventHostTransaction::TRANSACTIONTYPE) | ||||
->setIsConduitOnly($this->getIsCreate()) | ->setIsFormField(!$this->getIsCreate()) | ||||
->setConduitDescription(pht('Change the host of the event.')) | ->setConduitDescription(pht('Change the host of the event.')) | ||||
->setConduitTypeDescription(pht('New event host.')) | ->setConduitTypeDescription(pht('New event host.')) | ||||
->setSingleValue($object->getHostPHID()), | ->setSingleValue($object->getHostPHID()), | ||||
id(new PhabricatorDatasourceEditField()) | id(new PhabricatorDatasourceEditField()) | ||||
->setIsLockable(false) | ->setIsLockable(false) | ||||
->setIsDefaultable(false) | ->setIsDefaultable(false) | ||||
->setIsHidden($is_future) | ->setIsHidden($is_future) | ||||
->setKey('inviteePHIDs') | ->setKey('inviteePHIDs') | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |