diff options
Diffstat (limited to 'app/Controller/UserHelper.php')
-rw-r--r-- | app/Controller/UserHelper.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Controller/UserHelper.php b/app/Controller/UserHelper.php new file mode 100644 index 00000000..f164d0a6 --- /dev/null +++ b/app/Controller/UserHelper.php @@ -0,0 +1,24 @@ +<?php + +namespace Kanboard\Controller; + +/** + * User Helper + * + * @package controller + * @author Frederic Guillot + */ +class UserHelper extends Base +{ + /** + * User autocompletion (Ajax) + * + * @access public + */ + public function autocomplete() + { + $search = $this->request->getStringParam('term'); + $users = $this->userFilterAutoCompleteFormatter->create($search)->filterByUsernameOrByName()->format(); + $this->response->json($users); + } +} |