Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/query/ConpherenceThreadSearchEngine.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { | ||||
return $query; | return $query; | ||||
} | } | ||||
public function buildSearchForm( | public function buildSearchForm( | ||||
AphrontFormView $form, | AphrontFormView $form, | ||||
PhabricatorSavedQuery $saved) { | PhabricatorSavedQuery $saved) { | ||||
$phids = $saved->getParameter('participantPHIDs', array()); | $participant_phids = $saved->getParameter('participantPHIDs', array()); | ||||
$participant_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('participants') | ->setName('participants') | ||||
->setLabel(pht('Participants')) | ->setLabel(pht('Participants')) | ||||
->setValue($participant_handles)); | ->setValue($participant_phids)); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/conpherence/search/'.$path; | return '/conpherence/search/'.$path; | ||||
} | } | ||||
protected function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
$names = array(); | $names = array(); | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |