26 Commits

Author SHA1 Message Date
tjhunt
84857f8ccd Minor improvement to a subtle edge case of question preview that probably only affects Opaque questions.
Also, revert dongshen's bad error -> print_error changes in this file.
2008-04-17 17:56:41 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
tjhunt
abd616eac4 MDL-13150 - Remove extra <br /> tag for XHTML strict validation - Thanks to Joseph Rézeau 2008-01-24 15:06:51 +00:00
jamiesensei
3a4a9233ce fix for some problems with page params 2007-09-04 05:44:14 +00:00
nicolasconnault
29e959a581 MDL-9005 Fixed this and another multilang issue (module name in preview didn't filter multilang tags either). 2007-08-28 13:21:15 +00:00
jamiesensei
e7e62d45be Fix for MDL-10823 Access to question edit page denied from quiz preview screen. 2007-08-14 04:22:05 +00:00
jamiesensei
271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
tjhunt
46a29ccfec Add id="responseform" to the question preview form tag, to match the quiz form, to make life easier for Javascript on questions. Idea thanks to Adriane Boyd. 2007-07-16 13:32:52 +00:00
tjhunt
294e63eadd Make it possible for question types to do file uploads. 2007-06-15 11:02:47 +00:00
tjhunt
7d87171ba9 MDL-9565 - Question preview links don't work in developer debug mode, and not XHTML strict. Merged from OU Moodle. 2007-04-24 16:59:32 +00:00
tjhunt
4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
tjhunt
70ed76670e Use the right string processing functions when outputting question names. 2007-03-13 16:20:41 +00:00
pichetp
2e7bdb5193 merging from 18_STABLE MDL-8588 2007-03-03 03:36:08 +00:00
vyshane
2697726a66 More xhtml fixes. MDL-7861 related. 2007-01-08 07:45:53 +00:00
vyshane
2139364fbf xhtml fixes. MDL-7861 related 2007-01-08 07:38:29 +00:00
toyomoyo
d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
gustav_delius
b518c69e3b Question preview now handles duplicate responses properly 2006-04-30 12:07:08 +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
66125eda14 Fixed incorrect use of quiz_get_renderoptions. This quiz-specific function should in future be removed from this question code 2006-03-28 07:37:51 +00:00
gustav_delius
6af1e0b2c2 Fix bug 4952 2006-03-21 20:55:23 +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
219e92f2eb Preview now works also if no quiz is specified 2006-02-24 12:38:21 +00:00
gustav_delius
e586cfb4b0 Updated question scripts to work in their new location 2006-02-24 10:35:28 +00:00
gustav_delius
516cf3eb59 Moving quiz-independent question scripts to their new location. In a following commit these files will be updated to actually work in their new location. 2006-02-24 10:21:40 +00:00