Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class PhabricatorStandardCustomFieldDate | ||||
| public function readValueFromRequest(AphrontRequest $request) { | public function readValueFromRequest(AphrontRequest $request) { | ||||
| $control = $this->newDateControl(); | $control = $this->newDateControl(); | ||||
| $control->setUser($request->getUser()); | $control->setUser($request->getUser()); | ||||
| $value = $control->readValueFromRequest($request); | $value = $control->readValueFromRequest($request); | ||||
| $this->setFieldValue($value); | $this->setFieldValue($value); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if (!$value) { | if (!$value) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return phabricator_datetime($value, $this->getViewer()); | return phabricator_datetime($value, $this->getViewer()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines | |||||