Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Using the question engine from module.

Development:Using the question engine from module

From MoodleDocs
Revision as of 11:56, 4 December 2009 by Tim Hunt (talk | contribs) (New page: This page explains how to use the new Moodle question engine in an activity module you are developing. Previous section: [[Development:Developing_a_Quest...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page explains how to use the new Moodle question engine in an activity module you are developing.

Previous section: Developing a Question Type

Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.


The first example of a module that uses the question engine is the quiz module. Looking at how the quiz code works will let you see a real working example of what explained on this page.

Note that all the question engine code has extensive PHP documenter comments that should explain the purpose of every class and method. This document is supposed to provide an overview of the key points to get you started. It does not attempt to duplicate all the details in the PHPdocs.


Starting an attempt at some questions

TODO


Displaying questions

TODO


Processing student responses

TODO


See also

In the next section, Implementation plan outlines how I will implement this proposal.

  • The PHP documenter comments that explain the purposes of every method in the question engine code.
  • Back to Question Engine 2

Template:CategoryDeveloper