Commit graph

782 commits

Author SHA1 Message Date
thepurpleblob
76f0a33403 Grades in imported questions must match grades option list.
Added option to either generate error or match to nearest valid value if they don't
2006-03-22 16:30:14 +00:00
thepurpleblob
b4db945e40 Grade option list generation now out to library 2006-03-22 14:44:33 +00:00
gustav_delius
dfa47f965c Cleanup: don't use questiontype constants within questiontypes 2006-03-22 13:51:25 +00:00
gustav_delius
76a1cf366e Don't name script files after the plugin, makes it more difficult to base a new plugin on an old one. 2006-03-22 12:19:40 +00:00
gustav_delius
e08eba6a66 These are no longer needed because the restore functions are part of the questiontype classes now. 2006-03-22 11:56:04 +00:00
gustav_delius
18cbc9683d rqp questions set the type to rqp_nn where nn is the rqp_type id 2006-03-22 11:19:26 +00:00
gustav_delius
ead293420d Questiontypes are doing their own database upgrade now.
I modified the enrollment plugin mechanism to work for any type of plugin
2006-03-22 10:44:54 +00:00
gustav_delius
ea889e7744 Recode qtypes during restore of old backups. 2006-03-22 10:32:29 +00:00
gustav_delius
ba8f7ff02a Restore works again, except for random questions. 2006-03-21 22:35:03 +00:00
gustav_delius
315559d354 Moving question restore code into questiontype classes. The restore is now temporarily broken but I will fix it as soon as I get home. 2006-03-21 20:59:32 +00:00
gustav_delius
6af1e0b2c2 Fix bug 4952 2006-03-21 20:55:23 +00:00
gustav_delius
c5d94c4150 Moved questiontype specific backup functions into questiontype classes 2006-03-21 18:15:09 +00:00
gustav_delius
fe1106f0d1 Now the question backup code has been separated from the quiz backup code. 2006-03-21 16:50:42 +00:00
gustav_delius
924ff16a07 Moving question backup from mod/quiz/ to question/. In a first step I am making a duplicate copy of the whole backuplib.php. Next I will go in and delete the question backupcode from mod/quiz/backuplib.php and the quiz backup code from question/backuplib.php 2006-03-21 15:38:35 +00:00
thepurpleblob
bc12bfea4f Removed unused global (see bug #4948) 2006-03-21 13:38:36 +00:00
gustav_delius
f67172b64b Moved code to delete questions and question categories to lib/questionlib.php
Also fixed bug 4949
2006-03-21 09:06:34 +00:00
gustav_delius
90c3f31066 Some improvements to delete_question() 2006-03-20 23:04:22 +00:00
gustav_delius
af3830ee49 Rename quiz_default_questiontype to default_questiontype 2006-03-20 20:52:18 +00:00
gustav_delius
6b11a0e863 Renaming constants QUIZ_ADAPTIVE and QUIZ_IGNORE_DUPRESP to QUESTION_..... and moved them to lib/questionlib.php because they are used for question-level options. 2006-03-20 20:45:55 +00:00
gustav_delius
077588e2a4 Removed references to quiz 2006-03-20 20:19:29 +00:00
gustav_delius
7347c60b52 Teacher-provided text is now printed without cleaning. 2006-03-19 19:49:37 +00:00
gustav_delius
3abfa3a013 Show All link below question list. 2006-03-19 19:23:07 +00:00
gustav_delius
d38bd8c1be Removed a notice 2006-03-19 18:33:35 +00:00
gustav_delius
afabbb3374 Almost forgot to take out diagnostic echo 2006-03-19 18:31:48 +00:00
gustav_delius
f30bbcaf5b Improved handling of event types so that now graded states can always be distinguished from ungraded ones. 2006-03-19 18:28:29 +00:00
gustav_delius
570c30aaa0 slightly more informative error message 2006-03-19 11:05:04 +00:00
gustav_delius
b2315a929d Don't try to recode empty answers. 2006-03-19 11:03:12 +00:00
gustav_delius
96e5e2e251 I hadn't known that ! has higher precedence than == 2006-03-19 11:02:36 +00:00
gustav_delius
18bd0d680c miniscule change: subquestion code only has to be unique within question 2006-03-19 10:43:12 +00:00
gustav_delius
549880a59d temporary fix to essay print_question... This really should be converted to using templates. 2006-03-19 10:21:23 +00:00
gustav_delius
c0749a1605 Fixed backup and restore for match questions 2006-03-19 09:50:43 +00:00
gustav_delius
28b904c8c2 Fixed multichoice restore
Print message when recoding fails
2006-03-19 09:20:42 +00:00
gustav_delius
ccccf04f70 Multianswer restore now works.
Timelimit is rounded to integer before saving in the database
Some more diagnostic error messages
Towards more plugable question types: $QUIZ_MENU is now populated by the question types themselves.
2006-03-18 14:14:55 +00:00
gustav_delius
c6abbe5e39 Some incomplete work on the restore code (committing only because I am moving to a different machine) 2006-03-16 21:17:31 +00:00
thepurpleblob
ced7916cee More coding style improvements. 2006-03-14 16:01:40 +00:00
thepurpleblob
fd14913ed6 fixed yet another missing courseid parameter :-) 2006-03-14 09:57:54 +00:00
skodak
a3182bd7e7 updated language detection 2006-03-13 22:11:56 +00:00
thepurpleblob
cbc87100f7 Added ability to import files already in the course files area. (Bug #3896)
Also started tidying up the code, more to do.
2006-03-13 19:32:42 +00:00
gustav_delius
31d21f22a5 Better display of response history 2006-03-13 00:20:34 +00:00
gustav_delius
12fcd27da6 Some work on question restore code, not complete 2006-03-13 00:18:38 +00:00
gustav_delius
b2b97d6834 Every questiontype should have its own backup and restore code. This is a first step in that direction. I have created the individual restore libraries for all question types but they are not yet used. 2006-03-12 21:27:14 +00:00
gustav_delius
32a189d636 More renamings to separate questions from quiz. Some other small fixes. 2006-03-12 21:17:42 +00:00
thepurpleblob
1e3d6fd804 Fixed up some more links.
Fixed up a bunch of hardcoded text.
Added test for exporting category with no questions.
2006-03-09 16:17:45 +00:00
thepurpleblob
d1c9748130 Adding support for BlackBoard V6 (and 7). Modified from contrib version.
Needs more testing and some fixes, but more-or-less works.
2006-03-08 14:32:54 +00:00
thepurpleblob
a0e512feac Fixed missing courseid param in paging bar 2006-03-08 14:27:26 +00:00
thepurpleblob
07663430ac Fixed some urls (mod/quiz to question). 2006-03-08 13:58:55 +00:00
thepurpleblob
5a4bcbc37c changed filename cleaning from PARAM_CLEANFILE to PARAM_FILE 2006-03-08 13:12:46 +00:00
skodak
e92d8ccf4d fixed category switching bug 2006-03-07 23:59:33 +00:00
skodak
b1f00c8985 incorrect use of required_param() 2006-03-07 23:51:21 +00:00
skodak
107e7612b5 short php tags once more 2006-03-07 21:46:34 +00:00