53 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
gustav_delius
c5d94c4150 Moved questiontype specific backup functions into questiontype classes 2006-03-21 18:15:09 +00:00
gustav_delius
fe1106f0d1 Now the question backup code has been separated from the quiz backup code. 2006-03-21 16:50:42 +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
c0749a1605 Fixed backup and restore for match questions 2006-03-19 09:50:43 +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
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
martinlanghoff
20b36bed42 mod/quiz/backuplib: tiny syntax fix - thanks Nigel 2006-02-24 01:10:08 +00:00
gustav_delius
c6293e00db Backing up the 'originalquestion' field 2006-02-23 19:16:39 +00:00
gustav_delius
c4c7a2a67b Revert the fix to $status because it turns out that for example backup_putid() returns false when called with an id that has already been added. 2006-02-19 21:46:36 +00:00
gustav_delius
e1eed5ccfc Fix for bug 4217 2006-02-19 17:41:27 +00:00
gustav_delius
997bcf0eb8 As Eloy pointed out, my recent addition for including child categories used by random questions did not restrict to the course or the instances currently being backed up. 2006-02-16 18:15:15 +00:00
gustav_delius
6a687a0e98 Now contains code to also backup those categories needed by random questions that recurse into child categories.
Fixed the way the $status flag is handled.
2006-02-15 22:30:54 +00:00
gustav_delius
03d1753c1c Renamed table quiz_newest_states to question_sessions 2006-02-15 08:38:41 +00:00
moodler
fd198b8776 Adding new feature: Time delay between quiz attempts 2006-02-13 01:49:52 +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
mjollnir_
1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
michaelpenne
503114809f Added backup/restore code for essay question type. In the process of testing, fixed several other bugs
in the quiz restore code regarding state restoration.
2005-09-19 22:38:18 +00:00
mjollnir_
300dfca610 Merged from MOODLE_15_STABLE: Fixing typo in call to get_record that was causing a lot of noise in the db error log 2005-08-26 04:53:39 +00:00
stronk7
bb7e09a453 Latest changes merged from MOODLE_15_STABLE
Moving the MERGED tag for the whole quiz directory
as talked with Gustav...
2005-07-06 09:05:17 +00:00
gustav_delius
d115d8c736 I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380 2005-07-02 18:14:51 +00:00
gustav_delius
fc44ee0de8 Merged from stable 2005-06-05 20:51:15 +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
stronk7
8636eb6560 Changed backup of numerical questions to use the new DB model 2005-05-11 21:54:21 +00:00
gustav_delius
9a62a7634b Made sure the questions that can be parent questions are backed up and restored first so that the recoding of the parent field will work. 2005-05-10 09:49:58 +00:00
gustav_delius
2e1111c5b1 Towards a Moodle 1.5 quiz backup and restore. Not tested yet.
I moved some quiz speicific functions out of backup/backuplib.php into mod/quiz/backuplib.php
2005-05-10 09:37:09 +00:00
gustav_delius
14a02d9595 updated the database diagrams 2005-05-08 15:11:31 +00:00
gustav_delius
57ddd6adba upgraded backuplib.php. Outstanding issues: quiz_rqp_type table and all of Julian's question-type specific stuff. 2005-05-08 14:33:34 +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
stronk7
a9b1b60bee Avoided some excess of "QUESTION_VERSIONS" ;-) 2005-03-23 23:32:51 +00:00
gustav_delius
1909875912 Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777 2005-03-23 20:59:55 +00:00
stronk7
e4acc4ce48 Now, at backup time (not restore yet):
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
are properly exported. Restore code coming soon.
2005-03-20 20:00:43 +00:00
stronk7
c98cb6bc57 Now quiz_categories' parent and sortoreder is supported in backup.
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
stronk7
5150c3043a Now questionsperpage is in backup & restore 2005-02-19 01:24:17 +00:00
stronk7
f4e56673df Added backup and restore support for decimalpoints 2005-02-14 19:05:00 +00:00
moodler
f5a1c0c064 New field popup to control new feature: launch quiz in fullscreen popup window 2004-12-14 06:43:22 +00:00
kaipe
2ad1b388f7 Updating database and backup/restore in order to make it possible
for teachers to choose number of decimals for calculated questions.
Can someone please check if the database update for postgres7 turns out alright?
2004-12-05 12:56:01 +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
stronk7
9fd687e0d2 Now CALCULATED questions are in backup & restore.
It was difficult to understand but easy to implement :-)
Some mechanisms has been added to avoid to duplicate
quiz_dataset_definitions (confirmed from Henrik).

Please, test, test, test, test....
2004-08-06 23:43:19 +00:00
stronk7
04bc8ed1c1 Now numerical_units support has been added to backup and restore.
Currently only working with numerical questions...
2004-08-05 23:11:31 +00:00
stronk7
1b76b56cbc Added support to timelimit, password and subnet in backup & restore. 2004-07-19 20:04:33 +00:00
stronk7
07bbc2d1c7 Now the questiontextformat is supported in backup/restore too. 2004-02-13 23:47:08 +00:00
moodler
c0542d081d Use main translation for "grades" 2003-11-22 02:42:38 +00:00
stronk7
202ba3902e Now STAMP fiel is supported in backup & restore.
If it exists in backup-file used, else, old search-by-name is used.
When inserting new categories, stamp is filled it it doesn't exist.
Updated version to 1.1 Beta +++ !!
2003-08-27 17:09:01 +00:00
stronk7
1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
stronk7
f53119698e Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:35:21 +00:00
stronk7
bbe15ef239 Changed the "graphical" representation of the mod to include
multianswer table. I start working with it now !!
2003-08-22 15:46:28 +00:00