public function get_selected_users() {
        global $DB;
        $idlist = array();
        if (!empty($this->filters->userids)) {

            $idlist = explode(',', $this->filters->userids);
            list($where, $params) = $DB->get_in_or_equal($idlist);
            return $DB->get_records_select('user', "id $where", $params);

        }
        return $idlist;
    }
public function get_selected_users() {
        global $DB;
        $idlist = array();
        if (!empty($this->filters->userids)) {

            $idlist = explode(',', $this->filters->userids);
            list($where, $params) = $DB->get_in_or_equal($idlist);
            return $DB->get_records_select('user', "id $where", $params);

        }
        return $idlist;
    }
public function get_selected_users ( ) { global $ DB ; $ idlist = array ( ) ; if ( ! empty ( $ this -> filters -> userids ) ) { $ idlist = explode ( ',' , $ this -> filters -> userids ) ; list ( $ where , $ params ) = $ DB -> get_in_or_equal ( $ idlist ) ; return $ DB -> get_records_select ( 'user' , "id $where" , $ params ) ; } return $ idlist ; }
Returns a list of selected users.

@return array returns an array in the format $userid => $userid
Returns a list of selected users .