128 Commits

Author SHA1 Message Date
moodler
99058191c6 Merged version bumps for release 1.9 2008-03-03 11:49:34 +00:00
skodak
f2e4a0818a preparation for 1.9 beta 2 - setting correct requires in mods and plugins 2007-10-10 16:09:17 +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
42ff9ce68b MDL-10111 migration of data into new gradebook; added new lib/db/upgradelib.php file (should be used by new groups upgrade code too) 2007-07-22 21:43:47 +00:00
tjhunt
bb4598fcf7 Quiz time limit field: Store it in the DB as an int(10), like the other time-related columns. Also, include the unit (minutes) in the forum label. 2007-07-02 06:48:50 +00:00
tjhunt
ac48e43a89 MDL-648 - Email notification and confirmation when quizzes are submitted. Thanks to Graham Miller for implementing this to my design. 2007-06-26 16:34:05 +00:00
skodak
d6dd21084b MDL-9551 Implemented calls of grade_update() function in Quiz 2007-06-10 22:52:41 +00:00
tjhunt
b9ea2b7ad5 Add a unique index to the question_numerical_units table, to prevent duplicate units being created. 2007-02-28 17:19:04 +00:00
moodler
1934b87667 Updated versions and requires (primarily because of formslib dependencies) 2007-02-02 13:02:24 +00:00
toyomoyo
4c2275d557 fix for MDL-7395, adding capaiblity mod/quiz:ignoretimelimits for quiz takers with disability. 2006-11-23 07:52:54 +00:00
tjhunt
a4514d91de Renamed new commentary feature to 'general feedback'. 2006-09-19 13:35:42 +00:00
tjhunt
717cfb0a7b Rename column question_dataset_items->number to itemnumber, to avoid reserved word. 2006-09-19 10:56:00 +00:00
moodler
0f9602085b Small bump for guest role fix 2006-09-12 08:22:14 +00:00
moodler
8d158ed44f Reload the guest role using new defaults 2006-09-12 07:10:49 +00:00
tjhunt
cd06115fa7 Convert mod/quiz/view.php to roles, and further tidy up the code flow in there. This touches other files because I had to change a function in locallib that had an $isteacher parameter.
I have not converted the rest of the quiz, and I don't intend to. I am hoping Moodle.com will do it.

I hope this does not introduce any bugs, but view.php is so complicate (at least it is less complicated than it was) and the quiz has so many options, that it is hard to be sure. This needs lots of testing before 1.7 is released.
2006-08-25 16:03:54 +00:00
tjhunt
3e3e5a4030 Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.
I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
2006-08-24 16:44:15 +00:00
toyomoyo
945f88ca15 various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib 2006-08-23 06:36:08 +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
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
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
toyomoyo
257c550aae merged fix for 5720 2006-06-07 05:59:25 +00:00
martinlanghoff
f470a1c6d5 moodle16cleanup: mod/quiz uniqueid does not exists, taking upgrade script
from mysql.php ver 2005070202. dropping some unused tables during the
transition from quiz to question lib
2006-05-17 06:56:14 +00:00
gustav_delius
36be25f6e5 Introduce question_attempts table, closing bug 5468
Fixed incorrect check for whether to update state or insert new one in save_question_session()
Deal with manually graded states correctly during regrading
Increase state sequence number during manual grading
Supplied missing userid to quiz_save_best_grade() during manual grading
2006-05-13 16:57:17 +00:00
stronk7
81c2aa8051 Checking one table and one column that, uder some servers didn't get
correctly upgraded. Bug 5321. PG need testing!
(http://moodle.org/bugs/bug.php?op=show&bugid=5321)
2006-04-27 22:56:25 +00:00
gustav_delius
cbe20043b5 Whenever a question is edited the version field is set to question_hash(), see bug 2958. 2006-04-10 22:10:32 +00:00
gustav_delius
34b40897db Added action 'continue attempt' to log_display 2006-04-10 19:13:21 +00:00
gustav_delius
955567ad2f Make sure all random questions have their parent field correctly set, just in case something went wrong here in the past. This may have been the cause of bug 5137 2006-04-09 21:59:55 +00:00
gustav_delius
3a5a6f59a3 Introduce field for teacher comments, in preparation for manual grading 2006-04-06 16:42:00 +00:00
gustav_delius
3be86ca6b3 In preparation of the qtype plugin-mechanism give set version information for all questiontypes that already have database tables. 2006-03-22 08:41:56 +00:00
gustav_delius
6040798269 Abolished the qtype integers. The question types are now indexed by their name as specified by their directory name. This will avoid a lot of confusion in future when we have plugable question types. 2006-03-21 23:08:36 +00:00
gustav_delius
32a189d636 More renamings to separate questions from quiz. Some other small fixes. 2006-03-12 21:17:42 +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
mjollnir_
6ae92cf9b0 Fixing up a badly named quiz table in postgres. PLEASE remember that you cannot just do RENAME - it breaks the sequences 2006-03-01 02:17:47 +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
8a274d4d37 Bumped version number (hadn't been done in a long time) in order to be able to require latest Moodle version in the quiz module. 2006-02-24 10:51:26 +00:00
gustav_delius
f7cf31f594 Some mysql versions appear not to be willing to convert an empty string into a float. So setting all empty fields to 0 first. 2006-02-22 19:12:29 +00:00
gustav_delius
3dd1a5c432 Changing grade fields to float for mysql. Asking Penny to do the same for postgreSQL 2006-02-19 22:19:00 +00:00
gustav_delius
ee49be211b updated required Moodle version in an attempt to stop people installing the unstable quiz module code (I use unstable in the sense of rapidly changing, not in the sense of buggy of course :-)) 2006-02-18 19:03:06 +00:00
gustav_delius
03d1753c1c Renamed table quiz_newest_states to question_sessions 2006-02-15 08:38:41 +00:00
gustav_delius
832d40420c Renamed table quiz_newest_states to question_sessions 2006-02-15 08:34:36 +00:00
mjollnir_
347723bda2 fixing bug # 4751 - adding unique key in postgres for mod/quiz for gustav 2006-02-14 02:01:06 +00:00
gustav_delius
b04523d1c4 convert sequence field to text to accomodate very long sequences, see bug 4257 2006-02-13 23:34:30 +00:00
gustav_delius
a42f000635 Matching questions now no longer give away the answer in the page source, see bug 694 (that is an old bug!) 2006-02-13 23:15:40 +00:00
gustav_delius
353138dc11 Added a unique index for attempt->uniqueid 2006-02-13 13:20:57 +00:00
gustav_delius
162cbee229 Added field to versioning table needed by new versioning table (to be committed later) 2006-02-12 15:28:17 +00:00
gustav_delius
5a981c9480 shuffleanswers option can now also be set at the question level, see http://moodle.org/mod/forum/discuss.php?d=39371 2006-02-12 09:46:34 +00:00
gustav_delius
7c4127efad Put the default grade option onto question edit forms, see http://moodle.org/mod/forum/discuss.php?d=39371#181767 2006-02-11 21:07:08 +00:00
moodler
401c3496ae Adding two new fields for time enforced delay between quiz 2006-02-08 04:37:22 +00:00
mjollnir_
5cde495031 Merged from MOODLE_15_STABLE (ish): Fixing the mass migrate postgres upgrade to be silent in quiz. Added a fix to a previous rename table that breaks pg_dump & pg_restore (incorrectly named sequence) 2005-10-05 01:36:59 +00:00