Hello, I'm trying to create a Moodle feature that will make possible to auto-generate a quiz by defining some rules, for example:
- Generate a quiz with:
RULE 1: 50 questions in total,
RULE 2: include 20 questions from category X
RULE 3: include 30 from category Y
RULE 4: exclude questions that are present in exam: 'EXAM TITLE'
...
After reading some Moodle plugin documentation, I've come the the conclusion that the best plugin type for this would be a 'quiz report' plugin. So the user will have to create an empty quiz and then use this plugin to insert the questions in the quiz following the rules defined.
Can anyone tell me a starting point to learn the functions/APIs needed to create a quiz programmatically?
Thanks a lot