Differential D11242 Diff 27034 src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php
<?php | <?php | ||||
final class PhabricatorRepositoryPushLogSearchEngine | final class PhabricatorRepositoryPushLogSearchEngine | ||||
extends PhabricatorApplicationSearchEngine { | extends PhabricatorApplicationSearchEngine { | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Push Logs'); | return pht('Push Logs'); | ||||
} | } | ||||
public function getApplicationClassName() { | protected function getApplicationClassName() { | ||||
return 'PhabricatorDiffusionApplication'; | return 'PhabricatorDiffusionApplication'; | ||||
} | } | ||||
public function buildSavedQueryFromRequest(AphrontRequest $request) { | public function buildSavedQueryFromRequest(AphrontRequest $request) { | ||||
$saved = new PhabricatorSavedQuery(); | $saved = new PhabricatorSavedQuery(); | ||||
$saved->setParameter( | $saved->setParameter( | ||||
'repositoryPHIDs', | 'repositoryPHIDs', | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | $form | ||||
->setLabel(pht('Pushers')) | ->setLabel(pht('Pushers')) | ||||
->setValue($pusher_handles)); | ->setValue($pusher_handles)); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/diffusion/pushlog/'.$path; | return '/diffusion/pushlog/'.$path; | ||||
} | } | ||||
public function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
return array( | return array( | ||||
'all' => pht('All Push Logs'), | 'all' => pht('All Push Logs'), | ||||
); | ); | ||||
} | } | ||||
public function buildSavedQueryFromBuiltin($query_key) { | public function buildSavedQueryFromBuiltin($query_key) { | ||||
$query = $this->newSavedQuery(); | $query = $this->newSavedQuery(); | ||||
$query->setQueryKey($query_key); | $query->setQueryKey($query_key); | ||||
Show All 33 Lines |