public function get_users($userlimit = 0) {
        global $DB;
        $users = $DB->get_records_sql($this->sql, $this->params, 0, $userlimit);
        return $users;
    }
public function get_users($userlimit = 0) {
        global $DB;
        $users = $DB->get_records_sql($this->sql, $this->params, 0, $userlimit);
        return $users;
    }
public function get_users ( $ userlimit = 0 ) { global $ DB ; $ users = $ DB -> get_records_sql ( $ this -> sql , $ this -> params , 0 , $ userlimit ) ; return $ users ; }
Get a list of the most recent online users

@param int $userlimit The maximum number of users that will be returned (optional, unlimited if not set)
@return array
Get a list of the most recent online users