Differential D16776 Diff 40412 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 84 Lines • ▼ Show 20 Lines | $fields = array( | ||||
->setIsRequired(true) | ->setIsRequired(true) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorCalendarEventNameTransaction::TRANSACTIONTYPE) | PhabricatorCalendarEventNameTransaction::TRANSACTIONTYPE) | ||||
->setConduitDescription(pht('Rename the event.')) | ->setConduitDescription(pht('Rename the event.')) | ||||
->setConduitTypeDescription(pht('New event name.')) | ->setConduitTypeDescription(pht('New event name.')) | ||||
->setValue($object->getName()), | ->setValue($object->getName()), | ||||
id(new PhabricatorBoolEditField()) | id(new PhabricatorBoolEditField()) | ||||
->setKey('isAllDay') | ->setKey('isAllDay') | ||||
->setLabel(pht('All Day')) | |||||
->setOptions(pht('Normal Event'), pht('All Day Event')) | ->setOptions(pht('Normal Event'), pht('All Day Event')) | ||||
->setAsCheckbox(true) | |||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorCalendarEventAllDayTransaction::TRANSACTIONTYPE) | PhabricatorCalendarEventAllDayTransaction::TRANSACTIONTYPE) | ||||
->setDescription(pht('Marks this as an all day event.')) | ->setDescription(pht('Marks this as an all day event.')) | ||||
->setConduitDescription(pht('Make the event an all day event.')) | ->setConduitDescription(pht('Make the event an all day event.')) | ||||
->setConduitTypeDescription(pht('Mark the event as an all day event.')) | ->setConduitTypeDescription(pht('Mark the event as an all day event.')) | ||||
->setValue($object->getIsAllDay()), | ->setValue($object->getIsAllDay()), | ||||
id(new PhabricatorEpochEditField()) | id(new PhabricatorEpochEditField()) | ||||
->setKey('start') | ->setKey('start') | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |