Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Calculated question bugs and new features proposal.

Development:Calculated question bugs and new features proposal: Difference between revisions

From MoodleDocs
Line 20: Line 20:
==Improvement to import-export process and question category moving==
==Improvement to import-export process and question category moving==


#There is no way to import calculated questions in Moodle actually.
#There is no way to import calculated questions in Moodle actually.The steps to correct this are:
The steps to correct this are:
## Adding an importdatadef() function and import dataitem function() to calculated questiontype class
## Adding an importdatadef() function and import dataitem function() to calculated questiontype class
## adding a preliminary verifyimporteddata() function to calculated questiontype class
## adding a preliminary verifyimporteddata() function to calculated questiontype class

Revision as of 17:51, 2 February 2007

This page will be used as a TODO-List in relation to the bug tracker tasks

Main objectives

The actual plan is to

  1. Correct the minor problems of the new 1.8 interface and add some features
  2. Improving the code flow so that if something is badly set (datadesf, dataitems) the calculated question default to a numerical one with a warning in the quiz display (and in the question name so it appears clrealy in the questions display in the question or quiz edit form).
  3. ...

Improvement of the user interface

  1. Correct the minor problems of the new 1.8 interface and add some features
    1. Removing the side effects when typing the enter key in dataitems_form.php input fields
    2. Verify that there is at least one wild card in either the question or the answer text.
    3. adding a table showing the shareable category wild cards available in the first page of question creation or edition
    4. identifying more clearly which of the wild cards has an already defined shareable category wild cards available

Adding new class functions or make substantial change to existing one

  1. adding a table display function showing the shareable category wild cards available in the first page of question creation or edition
    1. a general function for the abstractype class (showing only the name and nb of items)
    2. a specific function for the calculatedquestion class showing the definition (min:max:type) in a user readable format.

Improvement to import-export process and question category moving

  1. There is no way to import calculated questions in Moodle actually.The steps to correct this are:
    1. Adding an importdatadef() function and import dataitem function() to calculated questiontype class
    2. adding a preliminary verifyimporteddata() function to calculated questiontype class
    3. modify the savequestion() and saveoptions() function to accept import data.
    4. ...


(to be continued)Pierre Pichet 2 February 2007