gustav_delius
4377c290c0
Updated comments and made sure teacher preview gets restarted when changes are saved, fixing bug 5478
2006-05-13 10:39:15 +00:00
gustav_delius
6037288eeb
Fixed code that relied on globals hack. Fixed bug 5261
2006-04-20 23:10:45 +00:00
gustav_delius
ffa6ed53e4
Fixed display of information about existing attempts.
2006-04-12 23:24:58 +00:00
gustav_delius
32a189d636
More renamings to separate questions from quiz. Some other small fixes.
2006-03-12 21:17:42 +00:00
skodak
0c0849cf5f
lots of incorrect required_param()'s - there MUST be only two parameters not three!!
2006-03-08 00:08:51 +00:00
gustav_delius
70c01adb91
Improvement to tabbed interface
2006-03-01 09:30:21 +00:00
gustav_delius
dc1f00de19
Some little fixes and more renaming to cleanly separate question code from quiz code
...
Renaming tables:
quiz_answers -> question_answers
quiz_categories -> question_categories
Renaming functions:
quiz_get_category_menu -> question_category_menu
quiz_get_category_coursename -> question_category_coursename
quiz_categorylist -> question_categorylist
2006-03-01 07:03:57 +00:00
gustav_delius
4f48fb42af
Towards removing reference to quiz module from the question code
...
Renaming tables:
quiz_questions -> question
quiz_states -> question_states
Renaming functions:
quiz_delete_question -> delete_question
quiz_get_question_options -> get_question_options
quiz_get_states -> get_question_states
quiz_restore_state -> restore_question_state
quiz_save_question_session -> save_question_session
quiz_state_is_graded -> question_state_is_graded
quiz_extract_responses -> question_extract_responses
quiz_regrade_question_in_attempt -> regrade_question_in_attempt
quiz_process_responses -> question_process_responses
quiz_isgradingevent -> question_isgradingevent($event)
quiz_search_for_duplicate_responses -> question_search_for_duplicate_responses
quiz_apply_penalty_and_timelimit -> question_apply_penalty_and_timelimit
quiz_print_question_icon -> print_question_icon
quiz_get_image -> get_question_image
quiz_make_name_prefix -> question_make_name_prefix
quiz_get_id_from_name_prefix -> question_get_id_from_name_prefix
quiz_new_attempt_uniqueid -> question_new_attempt_uniqueid
quiz_get_renderoptions -> question_get_renderoptions
quiz_print_quiz_question -> print_question
quiz_get_question_responses -> get_question_responses
quiz_get_question_actual_response -> get_question_actual_response
quiz_get_question_fraction_grade -> get_question_fraction_grade
quiz_get_default_category -> get_default_question_category
Renaming constants:
QUIZ_EVENT.... -> QUESTION_EVENT....
QUIZ_MAX_NUMBER_ANSWERS -> QUESTION_NUMANS
2006-02-28 09:26:00 +00:00
gustav_delius
f02c6f017e
Renamed QUIZ_QTYPES to QTYPES
2006-02-24 13:48:43 +00:00
gustav_delius
80a5e194ff
Updated quiz scripts to work with the separate question scripts in moodle/question
2006-02-24 10:43:06 +00:00
gustav_delius
14afbbf034
Added the much-requested question reordering tool
2006-02-19 16:34:06 +00:00
gustav_delius
6551bb8969
Changing headers to decoupling the question editing page from the quiz module.
2006-02-17 17:15:17 +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
mindforge
f8180ec8d8
Merged from 1.5.
2005-09-14 11:17:24 +00:00
gustav_delius
39e3c1f1c3
Merged from STABLE
2005-07-06 07:53:17 +00:00
gustav_delius
fc44ee0de8
Merged from stable
2005-06-05 20:51:15 +00:00
gustav_delius
7bbe08a267
Merged from stable
2005-06-04 09:58:35 +00:00
gustav_delius
97f0cb15f1
Questoin edit popup window now closes itself automatically, see bug 3140. Thank you Eloy for the lesson in javascript.
2005-05-19 08:05:58 +00:00
gustav_delius
6c6d199c48
temporary fix to bug 3140
2005-05-17 22:22:29 +00:00
stronk7
87dddc1445
Replaced some (not all) tabs to spaces.
...
I've leave unmodified formats and nusoap library
2005-05-16 22:51:16 +00:00
gustav_delius
a5389464d7
edit page now remembers the paging for the question list
2005-05-15 07:54:31 +00:00
gustav_delius
b8897e49a8
fixed bug 3191
2005-05-10 10:12:24 +00:00
thepurpleblob
23cd73acbc
Show a link to edit the questions in categories if the quiz has already
...
been attempted.
2005-05-09 13:07:11 +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
47d726e9ae
Fixed error message that created a warning
2005-05-06 16:27:30 +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
55a77c6c66
navigation bar now uses appropriate strings for editing quesitons or editing quiz.
2005-04-12 08:48:13 +00:00
stronk7
b681000402
Now quiz->name supports filterall.
2005-04-03 00:19:11 +00:00
gustav_delius
4dd7a7fd6e
Fixed log, bug 2778
2005-03-21 00:06:04 +00:00
gustav_delius
2f2aad664d
implemented fix for bug 2745 contributed by kagotani
2005-03-16 12:35:19 +00:00
gustav_delius
a9222637f4
When removing question from quiz delete all responses for that question in that quiz
2005-03-14 06:55:01 +00:00
gustav_delius
90abbc9e15
I had forgotten to check that single questions are added only once to quiz
2005-03-14 06:22:55 +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
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
gustav_delius
ec81373f50
In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
...
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
f0148d973c
If a question is removed from a quiz then also all existing responses (e.g. from teacher attempts) are removed. Thanks to Eloy for pointing out that this was missing, http://moodle.org/mod/forum/discuss.php?d=17167#83331
2005-02-06 07:45:40 +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
gustav_delius
4acc80ead1
if the current category is deleted then revert back to the default category
2005-01-22 18:59:10 +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
873b77f0f5
previously I had forgotten to save sumgrades
2005-01-22 16:13:08 +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
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
moodler
bb6c3f3ad2
Fixed my erroneous fix from last checkin
2005-01-06 08:46:12 +00:00
moodler
0181cf725d
This bug stopped this page from even working ....
2005-01-06 02:38:50 +00:00
gustav_delius
1da1f5a890
It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
...
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 17:27:23 +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
267ef6f28f
Improved breadcrumbs on editing pages
2004-12-20 14:26:37 +00:00