Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37675

Slimmed down version of Question type - Extend or Duplicate?

$
0
0
by Anne Krijger.  

I need a slimmed down version of the Multiple choice (multichoice) Question type.

The most important changes will be;
* Separate question type that can be recognized as such as well by name as in the database.
* Simpler version of the edit form with some additional options.
* Only a fixed number of multiple answers possible

As I'd rather not duplicate all the multichoice code and start from there, I was looking at extending the multichoice question type.

But it seems I can get only 'halfway', specifically two of the main classes; the edit form class and question type class do not seem to be extendable in a sensible way because they have a lot of type specific string loading (get_string(..., 'qtype_multichoice')) or database access ($DB->...('question_multichoice', ...))

Unfortunately I don't see a way around this.

Any and all comments are welcomed.

Anne.


Viewing all articles
Browse latest Browse all 37675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>