Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Question API: Difference between revisions

From MoodleDocs
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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.
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 wince 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:
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 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 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 formats|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==
==See also==


[[Core APIs]]
* [[Core APIs]]
* [[Quiz]] - quiz developer docs.
* [[History of the Moodle quiz and question bank]]

Latest revision as of 20:15, 11 April 2012

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 bank

Question engine

See also