dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
jamiesensei
11a6096775
fixed closing of popup on saving question which was broken and also added closing of popup on cancel.
2007-09-27 08:17:09 +00:00
jamiesensei
479cca8a1e
fix to make breadcrumbs module independent
2007-09-11 08:23:00 +00:00
jamiesensei
79bb720200
Fixed MDL-10855 'Calculated question error: undefined stdClass::$nextpageparam' and some other calculated question bugs.
2007-08-17 01:06:02 +00:00
jamiesensei
610ef0930f
oops. Removed stray die; that was in the code for debug purposes.
2007-08-16 10:44:07 +00:00
jamiesensei
ba18b21d2e
Fix for MDL-10852 Cannot edit existing questions
2007-08-16 05:25:00 +00:00
jamiesensei
0cbddd850b
MDL-10857 broken link in navlinks for question bank pointing to mod/modname/view.php with cmid param instead of id param
2007-08-15 11:36:01 +00:00
jamiesensei
af49b38948
small fix for breadcrumbs link
2007-08-14 02:56:43 +00:00
tjhunt
37d00ed467
Fix notice.
2007-08-10 10:00:06 +00:00
jamiesensei
271e6decda
merging MOODLE_19_QUESTIONS with HEAD
2007-08-09 21:51:09 +00:00
mattc-catalyst
3b27b0fe21
MDL-9615: Correct incorrect use of term breadcrumbs
...
- $crumbs -> $navlinks
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
jamiesensei
7cd4fda6e7
changing param type for returnurl to PARAM_LOCALURL
2007-05-07 15:16:07 +00:00
jamiesensei
64eeaf4753
removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params.
2007-05-07 07:13:14 +00:00
jamiesensei
561fe61df3
return to the proper page after editing a question in the question bank.
2007-05-07 06:35:33 +00:00
jamiesensei
1d88985787
removing TODO comment as the question.php script no longer treats quiz as special.
2007-05-04 06:09:37 +00:00
jamiesensei
9ab75b2bcc
passing cmid to question.php and removed use of session modform var. Question.php now independent of quiz module. Small improvement to displayed breadcrumbs.
2007-05-04 05:47:59 +00:00
tjhunt
fe6480283c
MDL-9447 - Default grade field is redundant in embeded answer (Cloze) question. Merged from MOODLE_18_STABLE.
2007-04-23 13:55:22 +00:00
tjhunt
add2d7acdf
MDL-9244 - From Moodle 1.9 onwards, don't support question types that have not updated and provided a moodleform for editing.
2007-04-11 21:21:06 +00:00
tjhunt
4323d02959
Give the question bank code sensible PHPdocumentor package names.
2007-03-19 17:22:46 +00:00
jamiesensei
8c2550c87a
moved header printing so it is only printed when displaying a form.
2007-01-10 06:46:12 +00:00
jamiesensei
87391656a3
got rid of 'Changes Saved' message before redirect.
2007-01-10 06:40:42 +00:00
tjhunt
36703ed725
MDL-8003 - part - Use formslib for question editing forms
...
This commit does two things:
1. Gives question types he opion to use formslib for their editing forms, instead of the old mechanism.
2. Converts the truefalse question type to formslib.
2006-12-22 15:39:40 +00:00
vyshane
79b9651ec5
Missing </div>. MDL-7861.
2006-12-20 06:14:18 +00:00
tjhunt
ee6c93555f
MDL-5811 - Quiz editing outputs nasty junk before print_header sometimes. Second attempt at fixing. I forgot to mention the bug number in the previous commit to mod/quiz/edit.php. Merged from MOODLE_17_STABLE.
2006-10-31 12:06:52 +00:00
tjhunt
cc08091300
Fix performance problem with lots of categories. http://moodle.org/mod/forum/discuss.php?d=54945#252145 . Merged from MOODLE_16_STABLE.
2006-10-01 20:32:12 +00:00
tjhunt
a4514d91de
Renamed new commentary feature to 'general feedback'.
2006-09-19 13:35:42 +00:00
vyshane
180f410694
Merged fix for bug MDL-5866.
2006-09-06 08:54:56 +00:00
tjhunt
1680ebe40b
Eliminate an isteacheredit
2006-08-30 15:52:11 +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
16750bcd85
File header cleanup.
2006-07-06 09:45:02 +00:00
skodak
b01a2fcd0f
proper initialisation of $oldquestionid; merged from MOODLE_16_STABLE
2006-05-23 09:32:26 +00:00
thepurpleblob
4267f47b49
Changed require due to moved category functions
2006-05-02 15:23:48 +00:00
gustav_delius
54b3626b9f
Moved all question deletion code to showbank.php. Fixed bug 5186
2006-04-17 05:31:21 +00:00
gustav_delius
89a6e4358a
Fixed parameter type for $confirm
2006-04-11 22:22:31 +00:00
gustav_delius
ab620fbf2b
Added call to optional_param()
2006-04-11 20:42:31 +00:00
gustav_delius
ded180686e
Fix to make it work without globals hack
2006-04-05 19:35:51 +00:00
gustav_delius
4eda4eecbd
Added question type that is used if a question of unknown type is encountered.
...
Also removed some of the unnecessary calls to name()
2006-03-24 21:21:59 +00:00
gustav_delius
aaae75b04f
Renaming question/questiontypes/ to question/types/ as requested by Martin
2006-03-24 19:54:13 +00:00
gustav_delius
76de2cdf1a
Putting the "Save as new question" button back.
2006-03-22 22:37:27 +00:00
thepurpleblob
b4db945e40
Grade option list generation now out to library
2006-03-22 14:44:33 +00:00
gustav_delius
18cbc9683d
rqp questions set the type to rqp_nn where nn is the rqp_type id
2006-03-22 11:19:26 +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
2662cf46fc
Some improvements to how the tabs and links behave.
2006-03-01 21:16:28 +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
4b32fd66ab
Moved function quiz_question_used from mod/quiz/locallib.php to question_used in lib/questionlib. Fixed some more links.
2006-02-24 12:53:47 +00:00
gustav_delius
05054049a5
Fixed the redirection url to edit.php
2006-02-24 12:11:30 +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