mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
d1f1d3ec33
Summary: Ref T10010. This still needs support for attachments (to get members) and more constraints (like slugs), but mostly works. Test Plan: Ran query, saw basically sensible results. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10010 Differential Revision: https://secure.phabricator.com/D14889
24 lines
479 B
PHP
24 lines
479 B
PHP
<?php
|
|
|
|
final class ProjectSearchConduitAPIMethod
|
|
extends PhabricatorSearchEngineAPIMethod {
|
|
|
|
public function getAPIMethodName() {
|
|
return 'project.search';
|
|
}
|
|
|
|
public function newSearchEngine() {
|
|
return new PhabricatorProjectSearchEngine();
|
|
}
|
|
|
|
public function getMethodSummary() {
|
|
return pht('Read information about projects.');
|
|
}
|
|
|
|
protected function getCustomQueryMaps($query) {
|
|
return array(
|
|
'slugMap' => $query->getSlugMap(),
|
|
);
|
|
}
|
|
|
|
}
|