/** * Mentions controller accessed from the URL /mentions/user_list * * @return null * @access public */ public function get_userlist() { // Send a JSON response if an AJAX request was used if ($this->request->is_ajax()) { // If we have a query_string, we just get those usernames $query_string = $this->request->variable('term', '') ? $this->request->variable('term', '') : false; $user_list = $this->mentions->get_userlist($query_string); $user_list = array_values($user_list); $json_response = new \phpbb\json_response(); $json_response->send($user_list); } }