Differential D8286 Diff 19727 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 66 Lines • ▼ Show 20 Lines | $form->appendChild( | ||||
| ->setValue($value) | ->setValue($value) | ||||
| ->setOptions( | ->setOptions( | ||||
| array( | array( | ||||
| '' => $this->getString('search.default', pht('(Any)')), | '' => $this->getString('search.default', pht('(Any)')), | ||||
| 'require' => $this->getString('search.require', pht('Require')), | 'require' => $this->getString('search.require', pht('Require')), | ||||
| ))); | ))); | ||||
| } | } | ||||
| public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
| return id(new AphrontFormCheckboxControl()) | return id(new AphrontFormCheckboxControl()) | ||||
| ->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
| ->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()); | ||||
| Show All 32 Lines | |||||