Differential D12532 Diff 30092 src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | foreach ($owner_phids as $key => $phid) { | ||||
if ($phid == PhabricatorPeopleNoOwnerDatasource::FUNCTION_TOKEN) { | if ($phid == PhabricatorPeopleNoOwnerDatasource::FUNCTION_TOKEN) { | ||||
$config->setParameter('withUnowned', true); | $config->setParameter('withUnowned', true); | ||||
unset($owner_phids[$key]); | unset($owner_phids[$key]); | ||||
} | } | ||||
} | } | ||||
$config->setParameter('ownerPHIDs', $owner_phids); | $config->setParameter('ownerPHIDs', $owner_phids); | ||||
$datasource = id(new PhabricatorTypeaheadUserParameterizedDatasource()) | $datasource = id(new PhabricatorPeopleUserFunctionDatasource()) | ||||
->setViewer($viewer); | ->setViewer($viewer); | ||||
$author_phids = $config->getParameter('authorPHIDs', array()); | $author_phids = $config->getParameter('authorPHIDs', array()); | ||||
$author_phids = $datasource->evaluateTokens($author_phids); | $author_phids = $datasource->evaluateTokens($author_phids); | ||||
$config->setParameter('authorPHIDs', $author_phids); | $config->setParameter('authorPHIDs', $author_phids); | ||||
$datasource = id(new PhabricatorMetaMTAMailableFunctionDatasource()) | $datasource = id(new PhabricatorMetaMTAMailableFunctionDatasource()) | ||||
->setViewer($viewer); | ->setViewer($viewer); | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | $form | ||||
->setName('query') | ->setName('query') | ||||
->setValue($saved->getParameter('query'))) | ->setValue($saved->getParameter('query'))) | ||||
->appendChild($status_control) | ->appendChild($status_control) | ||||
->appendControl($types_control) | ->appendControl($types_control) | ||||
->appendControl( | ->appendControl( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
->setName('authorPHIDs') | ->setName('authorPHIDs') | ||||
->setLabel('Authors') | ->setLabel('Authors') | ||||
->setDatasource(new PhabricatorTypeaheadUserParameterizedDatasource()) | ->setDatasource(new PhabricatorPeopleUserFunctionDatasource()) | ||||
->setValue($author_phids)) | ->setValue($author_phids)) | ||||
->appendControl( | ->appendControl( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
->setName('ownerPHIDs') | ->setName('ownerPHIDs') | ||||
->setLabel('Owners') | ->setLabel('Owners') | ||||
->setDatasource(new PhabricatorPeopleOwnerDatasource()) | ->setDatasource(new PhabricatorPeopleOwnerDatasource()) | ||||
->setValue($owner_phids)) | ->setValue($owner_phids)) | ||||
->appendControl( | ->appendControl( | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |