Differential D14843 Diff 35895 src/applications/search/applicationpanel/PhabricatorSearchApplicationStorageEnginePanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/applicationpanel/PhabricatorSearchApplicationStorageEnginePanel.php
Show All 10 Lines | public function shouldShowForApplication( | ||||
PhabricatorApplication $application) { | PhabricatorApplication $application) { | ||||
return $application instanceof PhabricatorSearchApplication; | return $application instanceof PhabricatorSearchApplication; | ||||
} | } | ||||
public function buildConfigurationPagePanel() { | public function buildConfigurationPagePanel() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$application = $this->getApplication(); | $application = $this->getApplication(); | ||||
$active_engine = PhabricatorSearchEngine::loadEngine(); | $active_engine = PhabricatorFulltextStorageEngine::loadEngine(); | ||||
$engines = PhabricatorSearchEngine::loadAllEngines(); | $engines = PhabricatorFulltextStorageEngine::loadAllEngines(); | ||||
$rows = array(); | $rows = array(); | ||||
$rowc = array(); | $rowc = array(); | ||||
foreach ($engines as $key => $engine) { | foreach ($engines as $key => $engine) { | ||||
try { | try { | ||||
$index_exists = $engine->indexExists() ? pht('Yes') : pht('No'); | $index_exists = $engine->indexExists() ? pht('Yes') : pht('No'); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |