Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/editor/PhabricatorCountdownEditEngine.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | final class PhabricatorCountdownEditEngine | ||||
protected function getCommentViewButtonText($object) { | protected function getCommentViewButtonText($object) { | ||||
return pht('Contemplate Infinity'); | return pht('Contemplate Infinity'); | ||||
} | } | ||||
protected function getObjectViewURI($object) { | protected function getObjectViewURI($object) { | ||||
return $object->getURI(); | return $object->getURI(); | ||||
} | } | ||||
protected function getCreateNewObjectPolicy() { | |||||
return $this->getApplication()->getPolicy( | |||||
PhabricatorCountdownCreateCapability::CAPABILITY); | |||||
} | |||||
protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
$epoch_value = $object->getEpoch(); | $epoch_value = $object->getEpoch(); | ||||
if ($epoch_value === null) { | if ($epoch_value === null) { | ||||
$epoch_value = PhabricatorTime::getNow(); | $epoch_value = PhabricatorTime::getNow(); | ||||
} | } | ||||
return array( | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
Show All 31 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