General developer forum

New Moodle question type

 
Picture of Igor Nikulin
New Moodle question type
 

Hello!


Could you help me to find any documentation about developing and installation new moodle question type? I tried to find moodle question type template but I didn't find it.

 
Average of ratings: -
Picture of Richard Jones
Re: New Moodle question type
Particularly helpful MoodlersPlugin developersTesters

https://github.com/jamiepratt/moodle-qtype_TEMPLATE. Looks like a good place to start.

 
Average of ratings: Useful (2)
Picture of Marcus Green
Re: New Moodle question type
Core developersParticularly helpful MoodlersPlugin developersTesters
https://github.com/marcusgreen/moodle-qtype_TEMPLATE

That repo includes my extensions to Jamie's work

 
Average of ratings: -
Picture of Igor Nikulin
Re: New Moodle question type
 

Will this template work with Moodle 3.5?

 
Average of ratings: -
Picture of Marcus Green
Re: New Moodle question type
Core developersParticularly helpful MoodlersPlugin developersTesters

The essentials of the quiz/question types have not changed wildly for a few years so it is a good place to start. I strongly recommend you get an editor/IDE that has an intellisense type feature that shows you what methods are available for any classes. Also consider the core and 3rd party question types as your documentation. Look at the code from JM Vedrine and Gordon Bateson for ideas.

 
Average of ratings: Useful (1)
Tim at Lone Pine Koala Sanctuary
Re: New Moodle question type
 
Average of ratings: -