Differential D8286 Diff 19727 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
Show All 30 Lines | public function setValueFromStorage($value) { | ||||
if (strlen($value)) { | if (strlen($value)) { | ||||
$value = (int)$value; | $value = (int)$value; | ||||
} else { | } else { | ||||
$value = null; | $value = null; | ||||
} | } | ||||
return $this->setFieldValue($value); | return $this->setFieldValue($value); | ||||
} | } | ||||
public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
return $this->newDateControl(); | return $this->newDateControl(); | ||||
} | } | ||||
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); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |