Differential D13589 Diff 33531 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 116 Lines • ▼ Show 20 Lines | foreach ($names as $name) { | ||||
| $name)); | $name)); | ||||
| } | } | ||||
| } | } | ||||
| return mpull($objects, 'getPHID'); | return mpull($objects, 'getPHID'); | ||||
| } | } | ||||
| private function loadPHIDsByTypes($type) { | private function loadPHIDsByTypes($type) { | ||||
| $indexers = id(new PhutilSymbolLoader()) | $indexers = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhabricatorSearchDocumentIndexer') | ->setAncestorClass('PhabricatorSearchDocumentIndexer') | ||||
| ->loadObjects(); | ->execute(); | ||||
| $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 | |||||