Differential D12224 Diff 29377 src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
Show All 30 Lines | public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { | ||||
return $query; | return $query; | ||||
} | } | ||||
public function buildSearchForm( | public function buildSearchForm( | ||||
AphrontFormView $form, | AphrontFormView $form, | ||||
PhabricatorSavedQuery $saved_query) { | PhabricatorSavedQuery $saved_query) { | ||||
$phids = $saved_query->getParameter('creatorPHIDs', array()); | $creator_phids = $saved_query->getParameter('creatorPHIDs', array()); | ||||
$creator_handles = id(new PhabricatorHandleQuery()) | |||||
->setViewer($this->requireViewer()) | |||||
->withPHIDs($phids) | |||||
->execute(); | |||||
$form | $form | ||||
->appendChild( | ->appendControl( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
->setDatasource(new PhabricatorPeopleDatasource()) | ->setDatasource(new PhabricatorPeopleDatasource()) | ||||
->setName('creators') | ->setName('creators') | ||||
->setLabel(pht('Creators')) | ->setLabel(pht('Creators')) | ||||
->setValue($creator_handles)); | ->setValue($creator_phids)); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/oauthserver/'.$path; | return '/oauthserver/'.$path; | ||||
} | } | ||||
protected function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
$names = array(); | $names = array(); | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |