Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phrequent/query/PhrequentSearchEngine.php
<?php | <?php | ||||
final class PhrequentSearchEngine extends PhabricatorApplicationSearchEngine { | final class PhrequentSearchEngine extends PhabricatorApplicationSearchEngine { | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Phrequent Time'); | return pht('Phrequent Time'); | ||||
} | } | ||||
public function getApplicationClassName() { | protected function getApplicationClassName() { | ||||
return 'PhabricatorPhrequentApplication'; | return 'PhabricatorPhrequentApplication'; | ||||
} | } | ||||
public function getPageSize(PhabricatorSavedQuery $saved) { | public function getPageSize(PhabricatorSavedQuery $saved) { | ||||
return $saved->getParameter('limit', 1000); | return $saved->getParameter('limit', 1000); | ||||
} | } | ||||
public function buildSavedQueryFromRequest(AphrontRequest $request) { | public function buildSavedQueryFromRequest(AphrontRequest $request) { | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | $form | ||||
->setValue($order) | ->setValue($order) | ||||
->setOptions(PhrequentUserTimeQuery::getOrderSearchOptions())); | ->setOptions(PhrequentUserTimeQuery::getOrderSearchOptions())); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/phrequent/'.$path; | return '/phrequent/'.$path; | ||||
} | } | ||||
public function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
return array( | return array( | ||||
'tracking' => pht('Currently Tracking'), | 'tracking' => pht('Currently Tracking'), | ||||
'all' => pht('All Tracked'), | 'all' => pht('All Tracked'), | ||||
); | ); | ||||
} | } | ||||
public function buildSavedQueryFromBuiltin($query_key) { | public function buildSavedQueryFromBuiltin($query_key) { | ||||
$query = $this->newSavedQuery(); | $query = $this->newSavedQuery(); | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |