Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/query/PhabricatorProjectSearchEngine.php
<?php | <?php | ||||
final class PhabricatorProjectSearchEngine | final class PhabricatorProjectSearchEngine | ||||
extends PhabricatorApplicationSearchEngine { | extends PhabricatorApplicationSearchEngine { | ||||
public function getResultTypeDescription() { | public function getResultTypeDescription() { | ||||
return pht('Projects'); | return pht('Projects'); | ||||
} | } | ||||
public function getApplicationClassName() { | public function getApplicationClassName() { | ||||
return 'PhabricatorProjectApplication'; | return 'PhabricatorProjectApplication'; | ||||
} | } | ||||
public function newQuery() { | public function newQuery() { | ||||
return id(new PhabricatorProjectQuery()) | return id(new PhabricatorProjectQuery()) | ||||
->needImages(true); | ->needImages(true) | ||||
->withIsMilestone(false); | |||||
} | } | ||||
protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
return array( | return array( | ||||
id(new PhabricatorSearchTextField()) | id(new PhabricatorSearchTextField()) | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setKey('name'), | ->setKey('name'), | ||||
id(new PhabricatorUsersSearchField()) | id(new PhabricatorUsersSearchField()) | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |