Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldSelect.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldSelect.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | public function renderEditControl(array $handles) { | ||||
| return id(new AphrontFormSelectControl()) | return id(new AphrontFormSelectControl()) | ||||
| ->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
| ->setCaption($this->getCaption()) | ->setCaption($this->getCaption()) | ||||
| ->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
| ->setValue($this->getFieldValue()) | ->setValue($this->getFieldValue()) | ||||
| ->setOptions($this->getOptions()); | ->setOptions($this->getOptions()); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| if (!strlen($this->getFieldValue())) { | if (!strlen($this->getFieldValue())) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return idx($this->getOptions(), $this->getFieldValue()); | return idx($this->getOptions(), $this->getFieldValue()); | ||||
| } | } | ||||
| public function getApplicationTransactionTitle( | public function getApplicationTransactionTitle( | ||||
| PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
| ▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines | |||||