46950 Commits

Author SHA1 Message Date
Tim Hunt
38d42fc476 MDL-27408 question engine upgrade, change to update the quiz settings in config_plugins.
Also start creating the unit tests for the upgrade.
2011-05-11 15:32:29 +01:00
Tim Hunt
cd300cf34c MDL-20636 Initial pass at converting this code to Moodle 2.0 style. 2011-05-11 15:32:26 +01:00
Tim Hunt
cca6d63252 MDL-20636 Refactor the various list pages a bit. 2011-05-11 15:32:24 +01:00
Tim Hunt
5ab62d9d3d MDL-20636 listpreupgrade done. 2011-05-11 15:32:22 +01:00
Tim Hunt
22cd62caa9 MDL-20636 Cleanup in the upgradehelper plugin. 2011-05-11 15:32:20 +01:00
Tim Hunt
92dcdc88df MDL-20636 Implement lots of the post-upgrade functionality for the upgrade helper plugin. 2011-05-11 15:32:18 +01:00
Tim Hunt
d98389ffed MDL-20636 Start of work on a local plugin to help with the question engine upgrade on large sites. 2011-05-11 15:32:16 +01:00
Tim Hunt
0859ff6503 MDL-20636 Re-organise all the old upgrade code, before I start work on it for real. 2011-05-11 15:32:14 +01:00
Dean Lennard
0de4393945 MDL-20636 moved header creation into seperate funciton 2011-05-11 15:04:19 +01:00
Dean Lennard
8e8bd3f967 MDL-20636 Changed renderer function scopes so they can be overridden. 2011-05-11 15:04:13 +01:00
Dean Lennard
2c3e2b53e6 MDL-20636 Added phpDoc comments 2011-05-11 15:04:07 +01:00
Wale Olujide
3546187e63 MDL-20636 Fix for minor css issue for wip#372 2011-05-10 11:45:08 +01:00
Tim Hunt
78a61cd6d0 MDL-20636 quiz renderers. Some final clean-ups. 2011-05-09 14:22:20 +01:00
Dean Lennard
7933ab8c67 MDL-20636 Code Checked 2011-05-09 12:31:13 +01:00
Dean Lennard
37015e0cd1 MDL-20636 Convverted html to html::writer and code checked 2011-05-09 12:31:11 +01:00
Dean Lennard
88c7e2a9b6 MDL-20636 Changed guest access and enrollment code checking 2011-05-09 12:31:09 +01:00
Dean Lennard
56cef201da MDL-20636 Created view object in renderer file 2011-05-09 12:31:07 +01:00
Dean Lennard
3b7efd6d8f MDL-20636 Added viuew object as class 2011-05-09 12:31:05 +01:00
Dean Lennard
fcd5e24506 MDL-20636 Code checked 2011-05-09 12:31:03 +01:00
Dean Lennard
da59992eda MDL-20636 Made changes to view and renderer sections 2011-05-09 12:31:01 +01:00
Dean Lennard
8d47043fee MDL-20636 updates to code 2011-05-09 12:30:59 +01:00
Dean Lennard
cbe8754358 MDL-20636 code checked 2011-05-09 12:30:57 +01:00
Dean Lennard
7886376a12 MDL-20636 changed accessrules to return the button instead of eco it and applied this change to render file 2011-05-09 12:30:55 +01:00
Dean Lennard
213d4cff9c MDL-20636 updates to view/renderer code 2011-05-09 12:30:53 +01:00
Dean Lennard
06eb64b8ba MDL-20636 added view page to the renderer file 2011-05-09 12:30:51 +01:00
Dean Lennard
13040e1452 MDL-20636 changes made to renderers, attempt and view 2011-05-09 12:30:49 +01:00
Dean Lennard
63be47d932 MDL-20636 Made changes to the three files and code checked 2011-05-09 12:30:47 +01:00
Dean Lennard
bcd42560e3 MDL-20636 Updated code to include html writer 2011-05-09 12:30:45 +01:00
Dean Lennard
9f335e76fa MDL-20636 Fixed issues raised 2011-05-09 12:30:43 +01:00
Dean Lennard
606e07d574 MDL-20636 Attempt as converting attempt.php over to renderer 2011-05-09 12:30:41 +01:00
Tim Hunt
b3782c71bf MDL-20636 My go and creating a renderer for mod/quiz/review.php.
Note that this breaks the attempt.php page; there are a lot of methods that are missing PHPdoc comment; there are probably now some unused methods that could be deleted; and there are a couple of places which could be handled a bit better.

But, overall, I think this way makes sense.
2011-05-09 12:30:39 +01:00
Tim Hunt
c749527bec MDL-20636 Finished backup and restore of attempt data. Yay 2011-05-05 21:26:25 +01:00
Tim Hunt
3b3d5e799d MDL-20636 Fix 2 essay issues. Wrong file area name and broken backup/restore. 2011-05-05 21:23:41 +01:00
Tim Hunt
9e06daf251 MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers 2011-05-05 18:53:43 +01:00
Tim Hunt
d6522c33a1 MDL-20636 Fix qtype backup issues. 2011-05-03 17:53:12 +01:00
Tim Hunt
bea1a6a73a MDL-20636 Work-in-progress on quiz attempt backup and restore. 2011-04-28 21:21:43 +01:00
Tim Hunt
d1de533164 MDL-20636 qtype_numerical oops, I deleted a function from the wrong place. Fix. 2011-04-28 20:22:45 +01:00
Tim Hunt
5073fb743f MDL-20636 qtype_numerical multi-choice units now work, I think. 2011-04-28 20:06:51 +01:00
Tim Hunt
ae3e2e6e7f MDL-20636 qtype_numerical Fix a bunch of minor issues found by Pierre. 2011-04-28 20:06:49 +01:00
Tim Hunt
5d2465c3f4 MDL-20636 numerical qtype: assorted changes
1. database upgrade to merge instructions into the questiontext field,
and remove the UNITDISPLAY option.

2. Changes to the validation in deferred feedback mode, so students
are warned about incomplete answers.

3. Using this to wark students if they enter an answer that is not
recognised as a number.
2011-04-28 20:06:47 +01:00
Tim Hunt
52ad7e0c1b MDL-20636 Tidy-up of numerical questiontype.php. 2011-04-28 20:06:45 +01:00
Tim Hunt
d7d8cee279 MDL-20636 Finish implementing answer processing. 2011-04-28 20:06:43 +01:00
Tim Hunt
b3c9da2f0a MDL-20636 I think I have now find a reliable way to parse responses. 2011-04-28 20:06:41 +01:00
Tim Hunt
544de1c035 MDL-20636 Lots of work on numerical answer matching.
Still more to do. Not all the unit tests pass at the moment.
2011-04-28 20:06:39 +01:00
Tim Hunt
91d431240f MDL-20636 Better way of handling the creation of test questions for different question types. 2011-04-28 20:06:37 +01:00
Tim Hunt
fdd015b779 MDL-20636 Fix some minor editing problems, and a bunch of coding style. 2011-04-28 20:06:35 +01:00
Tim Hunt
1fa3936440 MDL-20636 Fix the numerical qtype editing form. 2011-04-28 20:06:33 +01:00
Tim Hunt
397bd29549 MDL-20636 Fix qtype_numerical get_question_options. 2011-04-28 20:06:31 +01:00
Tim Hunt
0ff173d3f2 MDL-20636 Fix numerical unit tests. 2011-04-28 20:06:29 +01:00
Tim Hunt
50c0296698 MDL-26724 notice from numerical qtype when no answer is given. 2011-04-28 20:06:27 +01:00