Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/query/PhabricatorProjectSearchEngine.php
Show All 18 Lines | final class PhabricatorProjectSearchEngine | ||||
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()) | ||||
->setLabel(pht('Members')) | ->setLabel(pht('Members')) | ||||
->setKey('memberPHIDs') | ->setKey('memberPHIDs') | ||||
->setConduitKey('members') | |||||
->setAliases(array('member', 'members')), | ->setAliases(array('member', 'members')), | ||||
id(new PhabricatorUsersSearchField()) | id(new PhabricatorUsersSearchField()) | ||||
->setLabel(pht('Watchers')) | ->setLabel(pht('Watchers')) | ||||
->setKey('watcherPHIDs') | ->setKey('watcherPHIDs') | ||||
->setConduitKey('watchers') | |||||
->setAliases(array('watcher', 'watchers')), | ->setAliases(array('watcher', 'watchers')), | ||||
id(new PhabricatorSearchSelectField()) | id(new PhabricatorSearchSelectField()) | ||||
->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
->setKey('status') | ->setKey('status') | ||||
->setOptions($this->getStatusOptions()), | ->setOptions($this->getStatusOptions()), | ||||
id(new PhabricatorSearchThreeStateField()) | id(new PhabricatorSearchThreeStateField()) | ||||
->setLabel(pht('Milestones')) | ->setLabel(pht('Milestones')) | ||||
->setKey('isMilestone') | ->setKey('isMilestone') | ||||
Show All 11 Lines | return array( | ||||
->setOptions($this->getIconOptions()), | ->setOptions($this->getIconOptions()), | ||||
id(new PhabricatorSearchCheckboxesField()) | id(new PhabricatorSearchCheckboxesField()) | ||||
->setLabel(pht('Colors')) | ->setLabel(pht('Colors')) | ||||
->setKey('colors') | ->setKey('colors') | ||||
->setOptions($this->getColorOptions()), | ->setOptions($this->getColorOptions()), | ||||
id(new PhabricatorPHIDsSearchField()) | id(new PhabricatorPHIDsSearchField()) | ||||
->setLabel(pht('Parent Projects')) | ->setLabel(pht('Parent Projects')) | ||||
->setKey('parentPHIDs') | ->setKey('parentPHIDs') | ||||
->setConduitKey('parents') | |||||
->setAliases(array('parent', 'parents', 'parentPHID')) | ->setAliases(array('parent', 'parents', 'parentPHID')) | ||||
->setDescription(pht('Find direct subprojects of specified parents.')), | ->setDescription(pht('Find direct subprojects of specified parents.')), | ||||
id(new PhabricatorPHIDsSearchField()) | id(new PhabricatorPHIDsSearchField()) | ||||
->setLabel(pht('Ancestor Projects')) | ->setLabel(pht('Ancestor Projects')) | ||||
->setKey('ancestorPHIDs') | ->setKey('ancestorPHIDs') | ||||
->setConduitKey('ancestors') | |||||
->setAliases(array('ancestor', 'ancestors', 'ancestorPHID')) | ->setAliases(array('ancestor', 'ancestors', 'ancestorPHID')) | ||||
->setDescription( | ->setDescription( | ||||
pht('Find all subprojects beneath specified ancestors.')), | pht('Find all subprojects beneath specified ancestors.')), | ||||
); | ); | ||||
} | } | ||||
protected function buildQueryFromParameters(array $map) { | protected function buildQueryFromParameters(array $map) { | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |