Question API
From MoodleDocs
The Question API, which can be divided into the Question bank API and the Question engine API, can be used by activities that want to use questions from the question bank in activities.
At the moment, the Quiz module is the only example of a standard module that does this. (People have been saying since Moodle 1.6 that the lesson module should be converted to use the question bank!) Also, the documentation is currently in a bit of a mess, but see:
- Question Engine 2, in particular Using the question engine from module. That is reasonably up-to-date.
- Question engine is the old documentation that applies to Moodle 1.9 and before. The information there about the question bank half of the question system is still relevant.
Question bank
- Question bank database - describes
- Question data structures - describes data structures used to represent questions in the code.
- Question types
- Question import/export formats
- Using the question bank from module
Question engine
- Overview of the Moodle question engine
- Question engine database - describes
- Question data structures - describes data structures used to represent questions in the code.
- Question behaviours
- Question types
- Using the question engine from module
See also
- Core APIs
- Quiz - quiz developer docs.
- History of the Moodle quiz and question bank