Calculated question bugs and new features proposal: Difference between revisions
From MoodleDocs
Line 5: | Line 5: | ||
*'''Improve the actual calculated question''' | *'''Improve the actual calculated question''' | ||
** Correct the minor problems of the new 1.8 interface and add some features | ** Correct the minor problems of the new 1.8 interface and add some features | ||
***Adding a display of the available category wild cards | |||
****before the question text when editing the question | |||
****in the datasetdefinition form | |||
** 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). | ** 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). | ||
** Adding the possibility to show calculated results in the question as data | ** Adding the possibility to show calculated results in the question as data |
Revision as of 21:20, 16 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
- Improve the actual calculated question
- Correct the minor problems of the new 1.8 interface and add some features
- Adding a display of the available category wild cards
- before the question text when editing the question
- in the datasetdefinition form
- Adding a display of the available category wild cards
- Correct the minor problems of the new 1.8 interface and add some features
- 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).
- Adding the possibility to show calculated results in the question as data
Given {m} and {x} and {b} ask for the slope of X1 = {x} , Y1 = {= {x}*{m}+ {b}) X2 = {=2*{x}} , Y2 = {= 2*{x}*{m}+ {b}) Calculate the slope of the line So if in one set of data {x} = 2 , {m}= 1 and {b}= 3 The question display will be X1 = 2 , Y1 = 5 X2 = 4 , Y2 = 7 Calculate the slope of the curve ?
- Extending the actual php math function (sin(), cos() etc.) to complex function using php mathlibs
- Develop the calculated questiontype
- Adding multiples answers with different grade.
So to be able to grade correctly typical errors related to units (i.e.10 times more or less)
- Using these multiple answers to create a multiple choice calculated question
The user could select either type when creating the question or saving it as new question
- Going further and create a cloze version of the calculated question
allowing to have multiple questions and either multiple answers or as a multiple choice calculated question
Improvement of the user interface
- Correct the minor problems of the new 1.8 interface and add some features. The interface should give consistent results independent of the question status
- creating a new question
- editing an existing question
- saving an existing questiuon as a new question
- Removing the side effects when typing the enter key in dataitems_form.php input fields
- Verify that there is at least one wild card in either the question or the answer text.
- If so saving the datasetdefs with either
- default value ( new question)
- copy of the already defined datasetdefs when saving an existing question as a new one.
- If so saving the datasetdefs with either
- change the code so that generating datatitems value ( for a quiz or preview) can handle this without error ( or possibly a warning) and send back a value on the fly.
- Verify that there is at least one wild card in either the question or the answer text.
- adding a table showing the shareable category wild cards available in the first page of question creation or edition
- identifying more clearly which of the wild cards has an already defined shareable category wild cards available
- Removing the side effects when typing the enter key in dataitems_form.php input fields
- ...
Adding new class functions or make substantial change to existing one
- adding a table display function showing the shareable category wild cards available in the first page of question creation or edition
- a general function for the abstractype class (showing only the name and nb of items)
- 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
- There is no way to import calculated questions in Moodle actually.The steps to correct this are:
- Adding an importdatadef() function and import dataitem function() to calculated questiontype class
- adding a preliminary verifyimporteddata() function to calculated questiontype class
- modify the savequestion() and saveoptions() function to accept import data.
- ...
(to be continued)Pierre Pichet 2 February 2007