Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorApplicationSearchEngine.php
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | |||||
/* -( Rendering )---------------------------------------------------------- */ | /* -( Rendering )---------------------------------------------------------- */ | ||||
public function renderResults( | public function renderResults( | ||||
array $objects, | array $objects, | ||||
PhabricatorSavedQuery $query) { | PhabricatorSavedQuery $query) { | ||||
$phids = $this->getRequiredHandlePHIDsForResultList($objects, $query); | |||||
if ($phids) { | |||||
$handles = id(new PhabricatorHandleQuery()) | |||||
->setViewer($this->requireViewer()) | |||||
->witHPHIDs($phids) | |||||
->execute(); | |||||
} else { | |||||
$handles = array(); | |||||
} | |||||
return $this->renderResultList($objects, $query, $handles); | |||||
} | |||||
public function getRequiredHandlePHIDsForResultList( | |||||
array $objects, | |||||
PhabricatorSavedQuery $query) { | |||||
return array(); | |||||
} | |||||
public function renderResultList( | |||||
array $objects, | |||||
PhabricatorSavedQuery $query, | |||||
array $handles) { | |||||
throw new Exception(pht('Not supported here yet!')); | throw new Exception(pht('Not supported here yet!')); | ||||
} | } | ||||
/* -( Application Search )------------------------------------------------- */ | /* -( Application Search )------------------------------------------------- */ | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |