3 final class PhabricatorSearchThreeStateField
4 extends PhabricatorSearchField
{
8 public function setOptions($null, $yes, $no) {
9 $this->options
= array(
17 public function getOptions() {
18 return $this->options
;
21 protected function getDefaultValue() {
25 protected function getValueFromRequest(AphrontRequest
$request, $key) {
26 if (!strlen($request->getStr($key))) {
29 return $request->getBool($key);
32 protected function newControl() {
33 return id(new AphrontFormSelectControl())
34 ->setOptions($this->getOptions());
37 protected function getValueForControl() {
38 $value = parent
::getValueForControl();
39 if ($value === true) {
42 if ($value === false) {
48 protected function newConduitParameterType() {
49 return new ConduitBoolParameterType();