File size: 526 Bytes
e4f4821
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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());
    }
}