3 final class PhabricatorSpacesSearchField
4 extends PhabricatorSearchTokenizerField
{
6 protected function getDefaultValue() {
10 protected function newDatasource() {
11 return new PhabricatorSpacesNamespaceDatasource();
14 protected function getValueFromRequest(AphrontRequest
$request, $key) {
15 $viewer = $this->getViewer();
16 $list = $this->getListFromRequest($request, $key);
18 $type = new PhabricatorSpacesNamespacePHIDType();
21 foreach ($list as $item) {
22 if ($type->canLoadNamedObject($item)) {
30 $spaces = id(new PhabricatorObjectQuery())
34 foreach (mpull($spaces, 'getPHID') as $phid) {
37 $phids = array_unique($phids);
43 protected function newConduitParameterType() {
44 return new ConduitPHIDListParameterType();