Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBool.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBool.php
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | return id(new AphrontFormCheckboxControl()) | ||||
| ->setCaption($this->getCaption()) | ->setCaption($this->getCaption()) | ||||
| ->addCheckbox( | ->addCheckbox( | ||||
| $this->getFieldKey(), | $this->getFieldKey(), | ||||
| 1, | 1, | ||||
| $this->getString('edit.checkbox'), | $this->getString('edit.checkbox'), | ||||
| (bool)$this->getFieldValue()); | (bool)$this->getFieldValue()); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if ($value) { | if ($value) { | ||||
| return $this->getString('view.yes', pht('Yes')); | return $this->getString('view.yes', pht('Yes')); | ||||
| } else { | } else { | ||||
| return null; | return null; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||