Remove product literal strings in "pht()", part 18
[phabricator.git] / src / applications / search / field / PhabricatorSearchSelectField.php
blob08061742207b58674a0684528f884e52ca23400a
1 <?php
3 final class PhabricatorSearchSelectField
4 extends PhabricatorSearchField {
6 private $options;
7 private $default;
9 public function setOptions(array $options) {
10 $this->options = $options;
11 return $this;
14 public function getOptions() {
15 return $this->options;
18 protected function getDefaultValue() {
19 return $this->default;
22 public function setDefault($default) {
23 $this->default = $default;
24 return $this;
27 protected function getValueFromRequest(AphrontRequest $request, $key) {
28 return $request->getStr($key);
31 protected function newControl() {
32 return id(new AphrontFormSelectControl())
33 ->setOptions($this->getOptions());