286 Commits

Author SHA1 Message Date
tjhunt
647bcd4129 Fix getting the context. It did not work during question preview from the question bank when there was no quiz in sight. 2006-08-23 18:37:38 +00:00
thepurpleblob
c81415c77e Merged from STABLE 2006-08-23 14:57:40 +00:00
tjhunt
e9ad37edc2 SC 299. Merged from MOODLE_16_STABLE. 2006-08-22 21:33:54 +00:00
tjhunt
d758f1e2eb Fix an obvious typo in the roles and permissions code. 2006-08-22 19:26:05 +00:00
tjhunt
07d8d530f5 Fix Eclipse warnings. 2006-08-22 19:09:52 +00:00
tjhunt
080314b8bb Fix Eclipse warnings. 2006-08-22 19:09:07 +00:00
tjhunt
20808266c8 Work round Eclipse warning. 2006-08-22 19:01:42 +00:00
toyomoyo
5cf38a57cd some quiz capabilities 2006-08-22 09:04:23 +00:00
toyomoyo
3765fd5367 some capabilities for quiz and questions, need to load them in access.php 2006-08-21 08:40:06 +00:00
tjhunt
0f49e5655d Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE. 2006-08-20 15:37:42 +00:00
tjhunt
948bf30099 Fix Eclipse warnings. 2006-08-20 15:30:31 +00:00
tjhunt
ef82286874 Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE. Stupid, wreched, datalib. Why can't datalib take care of addslashes, so the whole of the rest of the code can forget about it? That is how a database abstraction layer should work. I know, it is pointless to moan about it, but it has just cost me 3 hours, so I feel I have earned the right to moan. 2006-08-18 22:34:54 +00:00
tjhunt
4abc23b2ae Fix some Eclipse code warnings. Merged from MOODLE_16_STABLE. 2006-08-18 21:23:15 +00:00
tjhunt
bc2defd5f8 Bug #3481 - wildcard problem in cloze question. Thanks to Joseph Rezeau. Merged from MOODLE_16_STABLE, not a straight merge becuase of other 1.7 changes. 2006-08-18 10:29:34 +00:00
tjhunt
eb9189bc2f Bug #6277 - Missed function renaming in question/format/multianswer. Merged from MOODLE_16_STABLE. 2006-08-17 17:38:31 +00:00
tjhunt
8d2054411c Tweak to unbreak unit tests. 2006-08-17 17:30:56 +00:00
tjhunt
a21567892f Refactor how question types register themselves with the question bank. This change makes it easier for 3rd party question types to control their destiny, but is also backwards compatible, in that old 3rd party plugins will still work. See http://moodle.org/mod/forum/discuss.php?d=51796 for more details. 2006-08-15 21:25:38 +00:00
tjhunt
3c957efd2e Correct comment. 2006-08-15 20:43:09 +00:00
thepurpleblob
8daaaafcf0 Merged from STABLE 2006-08-15 14:39:47 +00:00
stronk7
d236d4f577 Initial version of the XMLDB file for this plugin 2006-08-12 22:26:05 +00:00
tjhunt
1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
tjhunt
8c8cad45d9 Convert tabs to spaces. 2006-08-10 18:32:32 +00:00
tjhunt
2befe77859 Convert tabs to spaces. 2006-08-10 18:23:09 +00:00
tjhunt
5a14d563b9 Bug #5972 - Some question types mark a blank answer inconsistently.
Also, cleaned up the marking code for numerical and short answer questions, partly by making the base-class method more useful.

Rewrote the way the way short answer questions do wildcard matching to be more robust, Unicode safe, and generally not suck.

This is a big change, so I am pleased to report I tested it using my new Selinium  test suite. See: http://moodle.org/mod/forum/discuss.php?d=51161
2006-08-04 16:53:43 +00:00
tjhunt
00c300692f Fix whitespace. 2006-08-04 16:47:57 +00:00
tjhunt
0b4ce29d8d Matching question would fill in the right answer after an incorrect attempt. 2006-08-04 12:28:39 +00:00
tjhunt
7d6af8ca5a Bug #6185 - bug with matching questions. 2006-07-28 10:56:47 +00:00
tjhunt
fad28a7451 More unit tests for numerical question type. 2006-07-27 08:32:50 +00:00
tjhunt
22f2f41810 Start of unit tests for numerical question type. 2006-07-25 07:08:21 +00:00
tjhunt
87ee4968e5 Bug #4811 (and several dups!) - Matching questions should treat identical answers as the same. 2006-07-21 13:58:00 +00:00
tjhunt
43595a3370 Replace a few odd tabs with spaces. Merged from MOODLE_16_STABLE. 2006-07-21 08:03:23 +00:00
tjhunt
393c9d489a Bug #5946 - matching question php notice. Merged from MOODLE_16_STABLE. 2006-07-21 07:21:45 +00:00
tjhunt
d7444d442f Bug #6033 - missing string for unknown questiontype. Also tidied up some messy code. Merged from MOODLE_16_STABLE. 2006-07-18 15:34:24 +00:00
tjhunt
1367cb8d6b SC#277. Merged from MOODLE_16_STABLE. 2006-07-18 13:33:45 +00:00
tjhunt
da298d8201 Bug 5840 - Image not displayed in Cloze question. Thanks to Joseph Rezeau for the fix. Merged from MOODLE_16_STABLE. 2006-07-17 08:57:30 +00:00
tjhunt
fc05b7d1ca Doh! remove debug code. Sorry. 2006-07-12 17:54:45 +00:00
tjhunt
1fe641f7b4 Bug 5968 - Improvements to the numerical question type. You can now display feedback for wrong answers. You can also award partial credit for different levels of accuracy. 2006-07-12 17:49:14 +00:00
tjhunt
78b9c960e9 Fixed notice when restoring a numerical question with no units. 2006-07-12 17:37:36 +00:00
skodak
b2ec10959a workaround for Bug #6035 - editing quiz in one tab changes quiz in other; merged from MOODLE_16_STABLE 2006-07-11 13:02:42 +00:00
tjhunt
68d07f8b01 6030 - Can't move question categories back to the top level. Merged from MOODLE_16_STABLE. 2006-07-06 10:07:26 +00:00
tjhunt
16750bcd85 File header cleanup. 2006-07-06 09:45:02 +00:00
thepurpleblob
71ffbac2da merged from STABLE 2006-07-05 12:39:35 +00:00
tjhunt
645d76103b Bug 5971 - Allow matching questions to have extra wrong answers - supplimental. And another one. 2006-07-05 12:19:11 +00:00
tjhunt
974383f976 Bug 5971 - Allow matching questions to have extra wrong answers - supplimental. And another one. 2006-07-05 12:00:23 +00:00
tjhunt
0c24ee0fbf Bug 5971 - Allow matching questions to have extra wrong answers - supplimental. I missed a bit last time. 2006-07-05 11:58:14 +00:00
thepurpleblob
eaaf06f1ce Merged from STABLE 2006-07-05 11:51:08 +00:00
tjhunt
a58ffe3fe2 Bug 5971 - Allow matching questions to have extra wrong answers. 2006-07-04 17:11:00 +00:00
tjhunt
1cc1fa2425 Bug #5825 redonly attribute does not work on checkboxes, so using disabled instead when displaying quizzes read-only. 2006-06-15 10:12:17 +00:00
tjhunt
0b34616411 Moved constant definitions out of function, so they are not run repeatedly giving lots of warnings. Merged from MOODLE_16_STABLE. 2006-06-14 15:35:27 +00:00
tjhunt
ee800653e4 Corrected reference to lang string and fixed a notice. Merged from MOODLE_16_STABLE. 2006-06-14 15:32:55 +00:00