thepurpleblob
161568f72c
Oops! It's a call by reference!
2005-05-09 08:40:37 +00:00
thepurpleblob
7132ca0146
Now calls get_question_option() in appropriate question_type to get question
...
objects for quiz export. Bad news is that format is different, so all export
classes will need modifying. Will remove old code when complete.
2005-05-09 08:28:09 +00:00
gustav_delius
3e34b1dc14
Changed table field name 'new' to 'newest' for postgres compatibility
2005-05-08 10:35:47 +00:00
gustav_delius
75e1df6fd2
"Attempt builds on last" feature reenabled
2005-05-07 18:50:32 +00:00
gustav_delius
89cae10a6e
Some corrections in the documentation
2005-05-07 17:18:53 +00:00
gustav_delius
a5c53187cc
enabled penalties for all question types
2005-05-07 14:29:42 +00:00
gustav_delius
1105b32da0
Use round() instead of format_float() to limit decimal points to a MAXIMUM of $quiz->decimalpoints. format_float() always displays EXACTLY that number of digits after the decimal point which is not really desirable.
2005-05-07 13:48:25 +00:00
gustav_delius
ef76e0326d
Some work on the penalty mechanism. Took out the multiplicative scheme because it is just too difficult to understand. Made all question types print grading details when quiz is in adaptive mode. Made improvements to the presentation of the grading details. Enabled the penalty mechanism in a few more (on my way towards doing it for all).
2005-05-07 13:30:35 +00:00
gustav_delius
c14199770b
Fix tooltip on question edit link, see bug 3139
2005-05-06 11:21:00 +00:00
gustav_delius
43bc8c2929
In non-adaptive mode the mark is printed as in the old days and not as --/n
2005-05-06 07:36:54 +00:00
gustav_delius
ee1fb969c8
Merging in from the MOODLE_15_QUIZREFACTOR branch.
...
The quiz module now can handle adaptive questions and can render remote questions via RQP web services.
2005-05-06 06:24:04 +00:00
thepurpleblob
0ae982231f
Import/export changed so that available formats are automatically detected.
...
Classes now have discrete names and methods to identify import/export
capability added. Detecting function factored out into locallib.php
2005-04-20 09:08:25 +00:00
mjollnir_
9058e785cb
Small fixes to quiz for postgres compatibility
2005-04-19 00:41:13 +00:00
stronk7
b681000402
Now quiz->name supports filterall.
2005-04-03 00:19:11 +00:00
defacer
5d38e78fdf
Fixing the behavior of (de)select all javascript links, closing bug 2688.
...
Also, some very slight HTML improvements on the way there.
2005-03-18 14:46:11 +00:00
gustav_delius
7760f60e69
Select all / Deselect all look better as links
2005-03-18 09:21:26 +00:00
gustav_delius
19201c8dac
called table column 'Action' consistently, fixing bug 2698
2005-03-08 09:31:20 +00:00
gustav_delius
9274189f25
small fix to the versioning code
2005-03-07 19:45:39 +00:00
gustav_delius
03f9425fd2
The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734
...
There is also a 'Deselect all' button which I implemented provisionally by putting an extra function checknone() into javascript-static.js. This should be cleaned up by someone who knows javascript.
2005-03-06 12:00:46 +00:00
gustav_delius
1997f36731
Questions that are in use are now only deleted from the category list but not from quizzes or old attempts.
2005-03-05 16:03:59 +00:00
gustav_delius
fef9b51dac
Now can add a single question to quiz with a single click.
2005-03-05 12:55:26 +00:00
gustav_delius
c6bfdec3fc
Versioning of questions: when editing questions the teacher is told about the quizzes in which the question is used and is asked whether to replace them with the new version or not. If there are already attempts at a question than the original version is always kept in the database for audit purposes. More details at http://moodle.org/mod/forum/discuss.php?d=16479
2005-03-03 15:17:45 +00:00
thepurpleblob
6e31897b2d
Export know knows about random questions so it can ignore them
2005-03-03 11:52:02 +00:00
stronk7
e37da3a536
Now decimalpoints is used to show grades
...
(I had to modify quiz_get_best_grade() slighty)
2005-02-14 19:41:52 +00:00
gustav_delius
2f945146d7
Made the quiz paging bar look more like the standard one, see bug 2443.
2005-02-13 14:58:45 +00:00
gustav_delius
0726eb27bb
replaced href="#" by href="javascript:void()" as suggested in bug #1980
2005-02-06 15:18:09 +00:00
gustav_delius
2b6271fccc
I have changed the icon for removing a question from a quiz from X to >> and changed the label from 'Delete' to 'Remove' because it does not delete the question but only removes it from the quiz.
2005-02-06 10:42:31 +00:00
gustav_delius
51d0c8b0bd
edit column in question tables on edit.php are now wide enough to hold all icons without line break
2005-02-06 07:55:05 +00:00
gustav_delius
b37cacae47
It is now no longer possible to add or delete questions in a quiz that students have already attempted, see http://moodle.org/mod/forum/discuss.php?d=16479#86488
2005-02-05 21:03:04 +00:00
gustav_delius
6f7970138a
Taken out some $THEME
2005-02-05 17:28:06 +00:00
thepurpleblob
bb5e13d514
factored out function to see if question is used in quiz into the library
2005-01-27 16:10:25 +00:00
defacer
7a652b5f2b
Switching back to an interger-rounded retrieved best grade. Will probably
...
be more human-friendly on screen.
e.g. "What does 66.67 out of 100 mean?"
2005-01-27 03:14:56 +00:00
defacer
35f45a0d83
It seems that grades are saved with two decimal points of precision while
...
they are being retrieved as integers. Changed it to two decimals everywhere
and continuing to go about it...
2005-01-27 02:45:38 +00:00
defacer
cb8057dee2
Semantically it's better if quiz_get_best_grade returns NULL
...
if there is no such grade.
2005-01-27 02:39:15 +00:00
gustav_delius
0353801a2b
There is now a mechanism by which question types can have their own setup options. Because this does not change anything unless it is used I hope it is o.k. that I am submitting this without asking first. This is based on code by Mad Alex.
2005-01-22 22:27:16 +00:00
gustav_delius
010ec024b8
made multiple.php save to database in addition to $SESSION->modform and also introduced sesskey
2005-01-22 19:14:35 +00:00
gustav_delius
56b2152f69
better parameter validation and general code cleanup for edit.php
2005-01-22 18:17:33 +00:00
gustav_delius
4ac04efaf7
quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167
2005-01-22 15:42:22 +00:00
gustav_delius
ef0921d1ff
It is now possible to base new questions on existing ones, see get_string('editingquestion', 'quiz');
2005-01-19 09:50:33 +00:00
moodler
6710ec8713
Recent activity functions should have been in lib.php, not locallib.php
2005-01-13 03:04:48 +00:00
gustav_delius
9f9cff594c
Just some comment text to explain the $QUIZ_QUESTION_TYPE array.
2005-01-12 06:30:32 +00:00
gustav_delius
76cacec819
split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle.
2005-01-08 20:06:00 +00:00