Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / field / PhabricatorPHIDsSearchField.php
blobc88ef7670a814e4ed04584ed877bc9adbf477a1c
1 <?php
3 final class PhabricatorPHIDsSearchField
4 extends PhabricatorSearchField {
6 protected function getDefaultValue() {
7 return array();
10 protected function getValueFromRequest(AphrontRequest $request, $key) {
11 return $request->getStrList($key);
14 protected function newControl() {
15 if (strlen($this->getValueForControl())) {
16 return new AphrontFormTextControl();
17 } else {
18 return null;
22 protected function getValueForControl() {
23 return implode(', ', parent::getValueForControl());
26 protected function newConduitParameterType() {
27 return id(new ConduitPHIDListParameterType())
28 ->setAllowEmptyList(false);