1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/project/conduit/ProjectSearchConduitAPIMethod.php
epriestley d1f1d3ec33 Implement a basic project.search third-generation API method
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
2015-12-27 09:21:13 -08:00

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(),
);
}
}