131 Commits

Author SHA1 Message Date
moodler
a0beda7a7a Format quiz feedback 2004-02-18 03:07:50 +00:00
moodler
fc4a5a2f63 FIxed the logging of attempts so that clicking on the link in the log
actually shows you that attempt, rather than opening a new one!
2004-02-17 12:14:02 +00:00
selliott
740f94d8e7 Deleted quiz_print_recent_instance_activity and quiz_get_recent_quizzes (only used in course/recent.php)
Added quiz_print_recent_mod_activity and quiz_get_recent_mod_activity (for course/recent.php)
2004-02-15 06:26:55 +00:00
moodler
5cdb8a856a Quiz questions now have proper formatting controls.
Any format can be used.  This fixes a number of problems at once,
but the latest one is Bug #1047
2004-02-13 14:01:27 +00:00
moodler
0c29498ede Use format_text on question texts so we get caching, filters etc 2004-02-12 03:41:16 +00:00
selliott
0eb7764d4d Added user parameter to print_recent_instance_activity and get_recent_quizzes (for course/recent.php) 2004-02-05 20:40:59 +00:00
selliott
fdba9bb4d9 Added functions quiz_get_recent_quizzes and quiz_print_recent_instance_activity for course/recent.php (a recent activities page). 2004-02-04 15:12:06 +00:00
gustav_delius
d7143408df replaced incorrectly closed html tags, see bug 365 2004-01-25 20:34:54 +00:00
moodler
18352a55f5 For now just avoid public categories.
It would be nice if instead a check was made to make sure that the
category wasn't being used by other courses, then even public
categories could be deleted.
2004-01-21 17:13:55 +00:00
moodler
b2d594c8de New function quiz_delete_course() which deletes all the leftover stuff
while a course is being deleted
2004-01-21 16:44:22 +00:00
moodler
facbf40f92 Only list categories that belong to real courses 2004-01-21 16:04:55 +00:00
moodler
22592150f9 Slight fix for null case (Add Choose item on popup menus) 2004-01-21 03:22:16 +00:00
moodler
b0be6c79bf Some fixes for displaying empty grades in quizzes
suggested by Marilyn Fleming http://moodle.org/mod/forum/discuss.php?d=4636
2004-01-18 06:17:02 +00:00
moodler
2d1c22bb66 Menus on quiz editing no longer need the submit buttons 2004-01-15 15:26:34 +00:00
moodler
29fb5974e7 Increased QUIZ_MAX_NUMBER_ANSWERS to 10, and actually made it apply to everythin 2004-01-10 07:39:19 +00:00
kaipe
5276dc4887 Short-answer fixes:
As the wild card feature makes it possible for a response to match more than one answer alternative, I made sure that the alternative with the
highest grade would count.
I also fixed bug #945 for the short answer case.
2004-01-01 15:01:29 +00:00
kaipe
e097165541 Fixed a single/double quote issue (again) 2003-12-31 19:22:38 +00:00
moodler
89b8d337da Fixed some single/double quote issues 2003-12-30 07:28:43 +00:00
moodler
d751243549 Bodgy HTML converted to nice clean XHTML fragments.
Thanks to Jonathan Moore and all his work!
2003-12-30 07:04:04 +00:00
moodler
0ce4aa1a8a Some preliminary code to allow wildcards in short answers.
Based on code sent by Thomas Robb
2003-12-29 09:40:23 +00:00
moodler
43bf9fc2d7 Reworking of the plug-in format for import/export files.
Each format is now in it's own subdirectory, which allows the
format to have as many files as it likes.  The formats are now
detected automatically (no need to edit lib.php anymore) and
the parent class is now in mod/quiz/format.php

Lastly, I added Paul Shew's new GIFT format.
2003-12-12 07:35:55 +00:00
kaipe
1e085edc43 The Quizzes page is given an "Edit questions" button that links to a possibility to edit questions without opening a quiz. 2003-12-10 20:03:59 +00:00
moodler
0315927955 New format called "Aiken format" by Thomas Robb (and Art Lader)
to allow import of questions like this:

Every seriously injured person is likely to go into
A) shock.
B) infection.
C) hemorrhage.
D) respiratory pain.
ANSWER: A
2003-12-01 06:37:14 +00:00
kaipe
7c9c2a8da6 Made it possble to give negative grades for single multichoice answers in a question with embedded answers, as suggested by Koen Roggemans. The total score of the whole question must still be greater than or equeal to zero. 2003-11-20 19:39:08 +00:00
moodler
45376a51a9 Don't have the Javascript dialog on submitting an attempt if the quiz
doesn't have a grade.
2003-11-15 03:31:37 +00:00
kaipe
fe98ea90f9 The new quizfile.php makes it possible to view associated file material on quizes, such as images, even for questions belonging to a category on a different course. lib.php is updated accordingly... 2003-11-02 21:36:25 +00:00
kaipe
004c02e05c An improvement asked for by koen roggemans:
Especially for multianswer questions it is often desirable to have the grade of the question in a quiz larger than the earlier maximum of 10 points.
The new function quiz_gradesmenu_options($defaultgrade) makes quiz question list grade selector drop-down have the maximum grade option set to the highest value between 10 and the defaultgrade of the question.
2003-10-31 21:27:43 +00:00
moodler
16a1917250 Fix bug in NUMERICAL questions where feedback was only shown if the
question was correct
2003-10-23 15:40:17 +00:00
moodler
857e0dfdd5 Added new import format - Course Test Manager - from Russell Jungwirth.
All I've done is clean up the source code - I've not tested it at all.
2003-10-15 08:53:51 +00:00
moodler
d061d88381 MOved quiz_get_participants from the bottom to the standard functions area 2003-09-28 14:57:16 +00:00
moodler
0a660b03e0 Fixed a NASTY little bug that sometimes occurred when
re-grading quizzes with random questions in them.

(everyone got set to zero)
2003-09-22 16:03:30 +00:00
moodler
081bf74fb1 All grades are hidden now when zero grade is chosen ... even the marks.
This mode is only really useful when feedback is turned on.
2003-09-10 08:22:16 +00:00
moodler
ed1daaa9d7 Quiz grades can be set to zero.
If so, then grades are not shown to students, nor is a column added to
the gradebook (although they are still stored and calculated internally)
2003-09-10 05:02:39 +00:00
stronk7
eb452548f5 Included quiz_get_participants() function. 2003-09-07 21:56:46 +00:00
moodler
25b6ff9d3b Default quiz category must have a stamp 2003-08-28 17:07:24 +00:00
moodler
5ca03851ae Bug fix: On building attempts after the first one, display question images 2003-08-18 07:45:03 +00:00
kaipe
1754624916 Fixed bug that was pointed out by Tom Cat:
The reuse of old quiz_answers records for question type multianswer/embedded did not work properly.
2003-08-10 12:09:49 +00:00
kaipe
586b2c82ed New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
2003-08-03 23:00:45 +00:00
kaipe
5a24a01868 Resolving bug #576.
This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt.
The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.
2003-08-03 21:39:32 +00:00
kaipe
bdb63d64f2 Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc).
For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc.
Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!
2003-08-03 20:02:43 +00:00
kaipe
8b439f8c16 New question type - multianswer 2003-08-01 08:37:11 +00:00
kaipe
44fc346f45 Refactoring only, no new features -
Modified methods are quiz_get_answers and quiz_grade_attempt_results.
For quiz_grade_attempt_results, the switch statement has been separated out into method quiz_grade_attempt_question_result.
2003-07-29 09:11:06 +00:00
moodler
40b1a22162 Further changes to tidy up reports 2003-07-24 16:48:10 +00:00
moodler
29d5d0b40c New modular plugin structure for quiz reports.
The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).
2003-07-24 05:18:00 +00:00
stronk7
3960a44b62 Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS
containing the "," character. Bug #561 closed.
2003-07-21 17:25:59 +00:00
moodler
263cff8b75 Print images correctly on questions included from categories in
other courses.
2003-07-12 16:24:29 +00:00
moodler
9c02661096 Added a question field to numerical table for completeness 2003-07-10 14:09:43 +00:00
moodler
361f649d7a New question type: Numerical questions.
Mostly coded by Henrik Kaipe - I changed a few things on the way in.
2003-07-10 13:25:07 +00:00
moodler
bca64a122b Don't allow grades to ever be set for description questions 2003-07-06 04:19:11 +00:00
moodler
575de48fc3 Description questions should not be selected randomly 2003-07-06 04:08:11 +00:00