Page MenuHomec4science

PhabricatorPHIDsSearchField.php
No OneTemporary

File Metadata

Created
Sat, Nov 23, 12:19

PhabricatorPHIDsSearchField.php

<?php
final class PhabricatorPHIDsSearchField
extends PhabricatorSearchField {
protected function getDefaultValue() {
return array();
}
protected function getValueFromRequest(AphrontRequest $request, $key) {
return $request->getStrList($key);
}
protected function newControl() {
if (strlen($this->getValueForControl())) {
return new AphrontFormTextControl();
} else {
return null;
}
}
protected function getValueForControl() {
return implode(', ', parent::getValueForControl());
}
protected function newConduitParameterType() {
return id(new ConduitPHIDListParameterType())
->setAllowEmptyList(false);
}
}

Event Timeline