request->getStringParam('term'); $filter = $this->userQuery->withFilter(new UserNameFilter($search)); $filter->getQuery()->asc(UserModel::TABLE.'.name')->asc(UserModel::TABLE.'.username'); $this->response->json($filter->format($this->userAutoCompleteFormatter)); } /** * User mention auto-completion (Ajax) * * @access public */ public function mention() { $project_id = $this->request->getStringParam('project_id'); $query = $this->request->getStringParam('search'); $users = $this->projectPermissionModel->findUsernames($project_id, $query); $this->response->json($this->userMentionFormatter->withUsers($users)->format()); } /** * Check if the user is connected * * @access public */ public function status() { $this->response->text('OK'); } }