Differential D25200 Diff 697 src/applications/calendar/import/PhabricatorCalendarICSFileImportEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/import/PhabricatorCalendarICSFileImportEngine.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function newEditEngineFields( | ||||
} | } | ||||
return $fields; | return $fields; | ||||
} | } | ||||
public function getDisplayName(PhabricatorCalendarImport $import) { | public function getDisplayName(PhabricatorCalendarImport $import) { | ||||
$filename_key = PhabricatorCalendarImportICSFileTransaction::PARAMKEY_NAME; | $filename_key = PhabricatorCalendarImportICSFileTransaction::PARAMKEY_NAME; | ||||
$filename = $import->getParameter($filename_key); | $filename = $import->getParameter($filename_key); | ||||
if (strlen($filename)) { | if (phutil_nonempty_string($filename)) { | ||||
return pht('ICS File "%s"', $filename); | return pht('ICS File "%s"', $filename); | ||||
} else { | } else { | ||||
return pht('ICS File'); | return pht('ICS File'); | ||||
} | } | ||||
} | } | ||||
public function importEventsFromSource( | public function importEventsFromSource( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0