Differential D11234 Diff 27012 src/applications/search/management/PhabricatorSearchManagementIndexWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/management/PhabricatorSearchManagementIndexWorkflow.php
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | foreach ($names as $name) { | ||||
"'{$name}' is not the name of a known object."); | "'{$name}' is not the name of a known object."); | ||||
} | } | ||||
} | } | ||||
return mpull($objects, 'getPHID'); | return mpull($objects, 'getPHID'); | ||||
} | } | ||||
private function loadPHIDsByTypes($type) { | private function loadPHIDsByTypes($type) { | ||||
$indexer_symbols = id(new PhutilSymbolLoader()) | $indexers = id(new PhutilSymbolLoader()) | ||||
->setAncestorClass('PhabricatorSearchDocumentIndexer') | ->setAncestorClass('PhabricatorSearchObjectIndexer') | ||||
->setConcreteOnly(true) | ->loadObjects(); | ||||
->setType('class') | |||||
->selectAndLoadSymbols(); | |||||
$indexers = array(); | |||||
foreach ($indexer_symbols as $symbol) { | |||||
$indexers[] = newv($symbol['name'], array()); | |||||
} | |||||
$phids = array(); | $phids = array(); | ||||
foreach ($indexers as $indexer) { | foreach ($indexers as $indexer) { | ||||
$indexer_phid = $indexer->getIndexableObject()->generatePHID(); | $indexer_phid = $indexer->getIndexableObject()->generatePHID(); | ||||
$indexer_type = phid_get_type($indexer_phid); | $indexer_type = phid_get_type($indexer_phid); | ||||
if ($type && strcasecmp($indexer_type, $type)) { | if ($type && strcasecmp($indexer_type, $type)) { | ||||
continue; | continue; | ||||
Show All 12 Lines |