Differential D18693 Diff 44881 src/applications/calendar/editor/PhabricatorCalendarImportEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/editor/PhabricatorCalendarImportEditEngine.php
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | protected function buildCustomEditFields($object) { | ||||
if ($can_trigger) { | if ($can_trigger) { | ||||
$frequency_map = PhabricatorCalendarImport::getTriggerFrequencyMap(); | $frequency_map = PhabricatorCalendarImport::getTriggerFrequencyMap(); | ||||
$frequency_options = ipull($frequency_map, 'name'); | $frequency_options = ipull($frequency_map, 'name'); | ||||
$fields[] = id(new PhabricatorSelectEditField()) | $fields[] = id(new PhabricatorSelectEditField()) | ||||
->setKey('frequency') | ->setKey('frequency') | ||||
->setLabel(pht('Update Automatically')) | ->setLabel(pht('Update Automatically')) | ||||
->setDescription(pht('Configure an automatic update frequncy.')) | ->setDescription(pht('Configure an automatic update frequency.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorCalendarImportFrequencyTransaction::TRANSACTIONTYPE) | PhabricatorCalendarImportFrequencyTransaction::TRANSACTIONTYPE) | ||||
->setConduitDescription(pht('Set the automatic update frequency.')) | ->setConduitDescription(pht('Set the automatic update frequency.')) | ||||
->setConduitTypeDescription(pht('Update frequency constant.')) | ->setConduitTypeDescription(pht('Update frequency constant.')) | ||||
->setValue($object->getTriggerFrequency()) | ->setValue($object->getTriggerFrequency()) | ||||
->setOptions($frequency_options); | ->setOptions($frequency_options); | ||||
} | } | ||||
Show All 10 Lines |