Abstract question type / question in Moodle 2.1

Abstract question type / question in Moodle 2.1

by Oleg Sychev -
Number of replies: 1

It was possible before new question engine to have abstract question type (there even used to be one for calculated question) that doesn't used to create question, but to inherit other question types/questions from.

Is it still possible in Moodle 2.1 with it's new question engine and how it is achieved?

Average of ratings: -
In reply to Oleg Sychev

Re: Abstract question type / question in Moodle 2.1

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

What Jamie Pratt has done is to base one question type on another https://github.com/jamiepratt/moodle-qtype_ddwtos/blob/master/question.php#L38

Where he has wanted an abstract base class, he has chosen one question type, and put the files in there. For example: https://github.com/jamiepratt/moodle-qtype_gapselect

This seems to work quite well.