blob: 308bba9e3c7365f2daf5dab77975acfc68ec6c5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
namespace Kanboard\Controller;
/**
* Group Ajax Controller
*
* @package Kanboard\Controller
* @author Frederic Guillot
*/
class GroupAjaxController extends BaseController
{
/**
* Group auto-completion (Ajax)
*
* @access public
*/
public function autocomplete()
{
$search = $this->request->getStringParam('term');
$groups = $this->groupManager->find($search);
$this->response->json($this->groupAutoCompleteFormatter->withGroups($groups)->format());
}
}
|