mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-23 21:18:19 +01:00
31 lines
641 B
PHP
31 lines
641 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorIDsSearchField
|
||
|
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 new ConduitIntListParameterType();
|
||
|
}
|
||
|
|
||
|
}
|