65 Commits

Author SHA1 Message Date
tjhunt
199e43d470 Fix Eclipse warnings. 2006-08-22 19:00:18 +00:00
tjhunt
212b7b8cd9 MDL-5270 - give students a feeback comment for their performance in the entire quiz.
Also, along the way I noticed and fixed MDL-6290 student grades not rescaled when quiz maximum grade changed.
2006-08-22 17:31:26 +00:00
tjhunt
dcc0a7e25f Bug #6305 - Quiz settings form field order could be better. Merged from MOODLE_16_STABLE. 2006-08-20 20:11:05 +00:00
tjhunt
4e3487c59c Remove horrific code duplication in mod/quiz/mod.html. 2006-08-15 15:29:38 +00:00
gustav_delius
7ff90101a6 Simplify text on submit button 2006-04-09 22:31:59 +00:00
moodler
c88369b8e3 Christian's code to support time delays 2006-03-21 09:24:47 +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
997a2d5be3 New defaults, strings and help files for shuffle options 2006-02-18 21:07:39 +00:00
gustav_delius
24edc235c6 Fixed submit buttons 2006-02-14 18:21:06 +00:00
gustav_delius
721b5b28c9 Stopped using the language strings for the assignment module because that was requested in bug 4558. 2006-02-12 21:23:54 +00:00
gustav_delius
c4adc2c493 Added a second row of tabs to the Edit tab: Questions, Categories, Import, Export, Settings
Added phpdoc header to some files
Improved language string and help file for decimal digits on grades
2006-02-09 13:57:22 +00:00
moodler
72ef06cfe5 Added new feature, the time enforced delay on attempting quizzes 2006-02-08 04:44:57 +00:00
defacer
9173a5671c Searching around in the langfile, it seems that these are the correct
strings for the helpbuttons' title attribute. I added the first helpbutton
back in as well (exists in 1.5.3+ but not in HEAD???).
2005-11-23 21:16:47 +00:00
defacer
8635a2824a Fixing one get_string() that didn't specify the Quiz langfile, and changing
another to be uniform with the help file title.

Some things in the langfile need fixing too, coming right up.
2005-11-23 21:00:40 +00:00
gustav_delius
aca55f679c A bit of code cleanup as suggested by Olaf Rempel in bug 3881 2005-08-26 19:12:17 +00:00
gustav_delius
c0bbeb675a Removed the restriction that the quiz timelimit has to be less than the session timeout 2005-08-26 18:47:24 +00:00
gustav_delius
9235fb7977 Removed the restriction that the quiz timelimit has to be less than the session timeout 2005-08-26 17:57:36 +00:00
gustav_delius
bb52d44c6a Due date and start date are now optional, as requested in bug 867 and bug 3635 2005-07-07 17:16:56 +00:00
gustav_delius
8c95e97fec merged from stable 2005-06-21 06:57:30 +00:00
gustav_delius
7bbe08a267 Merged from stable 2005-06-04 09:58:35 +00:00
gustav_delius
75e1df6fd2 "Attempt builds on last" feature reenabled 2005-05-07 18:50:32 +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
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
gustav_delius
4fe082e86c quiz_decimalpoints now works correctly also as an advanced option. 2005-04-12 04:48:11 +00:00
gustav_delius
a5c5a1807f fixed bug 2782 2005-03-29 19:24:04 +00:00
gustav_delius
ee930c461d made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. 2005-02-18 17:20:06 +00:00
stronk7
ee40f7a720 Added configuration support for decimalpoints 2005-02-14 18:56:53 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
moodler
d3c8056258 Changes for XHTML and accessibility compatibility.
Tidied up layout and other minor changes.
2005-01-25 09:39:29 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
c1edf51947 When setting up a new quiz the teacher is always redirected to the question edit page so there is no need for two buttons on mod.html 2005-01-12 07:03:25 +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
kaipe
d70ccc495c New feature:
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
gustav_delius
a5c0990e5d New quiz config page to allow admin to set defaults and hide options on the quiz setup page. 2004-12-23 07:09:33 +00:00
moodler
6c83959e33 Quizzes can now be opened in a popup window. Javascript must be enabled.
An attempt has been made to make the popup as secure as possible by disabling
various browser capabilities through javascript.
2004-12-16 08:05:23 +00:00
moodler
7c6c30ed2b Changes for XHTML and accessibility compliance 2004-11-11 12:07:08 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
moodler
d0a1d0483e Fixed a notice 2004-07-29 03:43:48 +00:00
moodler
8c467676c2 Two new features for quizzes! (Thanks Shane)
1)  Quizzes can be restricted by subnet

 2)  Quizzes can require a password to be entered before attempts
2004-07-08 07:50:49 +00:00
moodler
19ebd1557a Minor formatting of timelimit stuff 2004-06-21 12:36:13 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
julmis
f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +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
moodler
ce9aeca5bd Changing that help file name to something shorter 2003-08-18 07:39:23 +00:00
stronk7
d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +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
moodler
f65ed9726a Don't shuffle quiz questions by default (confusing to newcomers) 2003-07-06 04:08:46 +00:00