Commit graph

531 commits

Author SHA1 Message Date
skodak
1223d24a73 MDL-11580 support for hidden state modification in gradebook from activities (quiz now only) - part 1
the hiding/unhiding should be IMO locked in gradebook UI when activity overrides it
2007-10-04 22:57:14 +00:00
tjhunt
b5a16eb72e MDL-6376 - Include quizzes on the MyMoodle page. Initial implementation by Stephen Bourget, with refinements by Tim Hunt. The logic for which quizzes are listed is very similar to the lesson module. 2007-09-21 11:05:04 +00:00
tjhunt
6ef56c991f MDL-6043 - supplimental - make corse reset function update quiz open and close dates. Thanks to Shamim Rezaei for the implementation, which I edited slightly. 2007-09-19 15:38:14 +00:00
nicolasconnault
b159da787a MDL-11282 Using notice_yesno(), but not sure how to provide a backlink with the cancel action... 2007-09-14 19:32:50 +00:00
tjhunt
e8666d9abb MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE. 2007-09-13 17:29:08 +00:00
tjhunt
5b875ebf82 Take out duplicate $Id$ CVS tags. 2007-09-10 11:07:39 +00:00
moodler
f4d24ff5c3 Updating grades will update the grade_item too 2007-09-04 05:56:19 +00:00
tjhunt
acda04bfb9 MDL-10834 - Restore of quiz module may create calendar events without a date/time. Fix thanks to Derek Woolhead. Merged from MOODLE_17_STABLE. 2007-08-14 13:33:39 +00:00
tjhunt
dc5c68519e Notice on quiz config.html page. 2007-08-13 11:19:51 +00:00
skodak
31f626f8c3 MDL-9551 minor cleanup 2007-08-10 21:04:15 +00:00
tjhunt
f5e9cb1e9c MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity. Merged from MOODLE_17_STABLE. 2007-08-08 11:30:50 +00:00
tjhunt
99ebfea247 MDL-10690 - Make quiz name a manditory field. Merged from MOODLE_18_STABLE. 2007-08-03 10:33:29 +00:00
tjhunt
00719c02d6 MDL-10656 - Way to control when Overall feedback is displayed, independantly of the other sorts of feedback. Also, improve the layout of those settings on the quiz editing form. 2007-07-30 10:05:11 +00:00
skodak
ac9b080524 MDL-10202 merge raw and final grade tables 2007-06-20 23:06:29 +00:00
tjhunt
14e6dc791a MDL-10198 - New code to allow files from quiestion attempts to be stored in moodledata and later downloaded. Code thanks to Adriane Boyd, but checked and modified by me, so we share the blame;-) 2007-06-20 15:12:36 +00:00
tjhunt
7a6f4066ce MDL-6043 - Implement course reset function for quizzes. 2007-06-19 22:17:47 +00:00
skodak
83d606dd74 MDL-9551 fixed magic quotes when changing grade_item settings 2007-06-11 09:12:14 +00:00
skodak
d6dd21084b MDL-9551 Implemented calls of grade_update() function in Quiz 2007-06-10 22:52:41 +00:00
tjhunt
ab0a8ff22c MDL-9608 - Work around Firefox putting the user's password in the quiz password field. Merged from MOODLE_18_STABLE. 2007-04-27 08:33:11 +00:00
tjhunt
a0807a0091 XHTML Strrrrrrict! on quiz module config page.
Fix errors when config changes are saved.

Merged from MOODLE_18_STABLE.
2007-02-28 12:24:54 +00:00
vyshane
0927589412 Xhtml fixes for MDL-7861. 2007-01-09 09:07:16 +00:00
skodak
0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
jamiesensei
f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +00:00
jamiesensei
a23f0aaf95 * Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
tjhunt
99aa18808f Make General feedback more tolerant of whitespace. Merged from MOODLE_17_STABLE. 2006-10-30 16:35:53 +00:00
tjhunt
a4514d91de Renamed new commentary feature to 'general feedback'. 2006-09-19 13:35:42 +00:00
thepurpleblob
2bb63d99c2 Fixed syntax error. 2006-08-31 09:17:57 +00:00
toyomoyo
4f83ae95ca adding capabilities 2006-08-31 08:51:09 +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
920b93d1e3 Remove horrific code duplication in mod/quiz/lib.php. 2006-08-16 08:46:10 +00:00
tjhunt
1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
tjhunt
bc5694133a Bug #6206 - Quiz can't be created on some mysql configurations. Merged from MOODLE_1.6_STABLE. 2006-08-03 16:30:38 +00:00
skodak
a5e7cb78fa Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401; merged from MOODLE_15_STABLE 2006-06-02 16:02:10 +00:00
tjhunt
cd70aa32f2 Bug 5247: stop people creating tests with a close date before the open date. 2006-06-01 14:27:37 +00:00
tjhunt
ce687025b7 Fix some Eclipse code style warnings. 2006-05-31 10:35:17 +00:00
moodler
c88369b8e3 Christian's code to support time delays 2006-03-21 09:24:47 +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
75cd257be8 Moved the quiz constants into lib.php to keep things simple. 2006-03-20 20:59:46 +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
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
skodak
bbba475967 fixed includes in included files - see bug #4891 2006-03-07 23:41:22 +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
03d1753c1c Renamed table quiz_newest_states to question_sessions 2006-02-15 08:38:41 +00:00
gustav_delius
8779eab55d Avoid error messages in case $quiz->sumgrades is zero, closing bug 4454. Merged from STABLE 2006-02-12 21:08:43 +00:00
gustav_delius
cd00e988bb Introduced function quiz_delete_question() and questiontype methods delete_question() 2006-02-07 00:44:27 +00:00
gustav_delius
668bc1f3a6 reverting change made by Martin D when going to version 1.230 2006-02-06 20:44:43 +00:00
defacer
64f36986b6 The bug where an event was not created for closing-time-only-supplied
quizzes also existed when updating a quiz instance (not only adding)...
2005-11-23 22:22:44 +00:00