Differential D11273 Diff 27082 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 109 Lines • ▼ Show 20 Lines | foreach ($names as $name) { | ||||
} | } | ||||
} | } | ||||
return mpull($objects, 'getPHID'); | return mpull($objects, 'getPHID'); | ||||
} | } | ||||
private function loadPHIDsByTypes($type) { | private function loadPHIDsByTypes($type) { | ||||
$indexers = id(new PhutilSymbolLoader()) | $indexers = id(new PhutilSymbolLoader()) | ||||
->setAncestorClass('PhabricatorSearchObjectIndexer') | ->setAncestorClass('PhabricatorSearchDocumentIndexer') | ||||
->loadObjects(); | ->loadObjects(); | ||||
$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)) { | ||||
Show All 13 Lines |