Implementing views for moodle gradebook
I'd like to implement a view for my content type that allows teachers to view the students' responses in the moodle gradebook. Several content types (such as Fill in the Blanks) have implemented this feature. Can someone point out how this is done? I don't think I need a detailled tutorial, but just an idea where the views are generated and maybe a reference to an example.