Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/typeahead/ManiphestNoOwnerDatasource.php
Show All 14 Lines | final class ManiphestNoOwnerDatasource | ||||
public function getDatasourceApplicationClass() { | public function getDatasourceApplicationClass() { | ||||
return 'PhabricatorManiphestApplication'; | return 'PhabricatorManiphestApplication'; | ||||
} | } | ||||
public function getDatasourceFunctions() { | public function getDatasourceFunctions() { | ||||
return array( | return array( | ||||
'none' => array( | 'none' => array( | ||||
'name' => pht('Find results which are not assigned.'), | 'name' => pht('No Owner'), | ||||
'summary' => pht('Find results which are not assigned.'), | |||||
'description' => pht( | |||||
'This function includes results which have no owner. Use a query '. | |||||
'like this to find unassigned results:'. | |||||
"\n\n". | |||||
'> none()'. | |||||
"\n\n". | |||||
'If you combine this function with other functions, the query will '. | |||||
'return results which match the other selectors //or// have no '. | |||||
chad: return return | |||||
'owner. For example, this query will find results which are owned '. | |||||
'by `alincoln`, and will also find results which have no owner:'. | |||||
"\n\n". | |||||
'> alincoln, none()'), | |||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function loadResults() { | public function loadResults() { | ||||
$results = array( | $results = array( | ||||
$this->buildNoOwnerResult(), | $this->buildNoOwnerResult(), | ||||
); | ); | ||||
Show All 33 Lines |
return return