Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / field / PhabricatorSearchStringListField.php
blob2dd9517a3ef1ff2d4ce2193f37f6a1bb5e6d3e51
1 <?php
3 final class PhabricatorSearchStringListField
4 extends PhabricatorSearchField {
6 private $placeholder;
8 public function setPlaceholder($placeholder) {
9 $this->placeholder = $placeholder;
10 return $this;
13 public function getPlaceholder() {
14 return $this->placeholder;
17 protected function getDefaultValue() {
18 return array();
21 protected function getValueFromRequest(AphrontRequest $request, $key) {
22 return $request->getStrList($key);
25 protected function newControl() {
26 $control = new AphrontFormTextControl();
28 $placeholder = $this->getPlaceholder();
29 if ($placeholder !== null) {
30 $control->setPlaceholder($placeholder);
33 return $control;
36 protected function getValueForControl() {
37 return implode(', ', parent::getValueForControl());
40 protected function newConduitParameterType() {
41 return new ConduitStringListParameterType();