480 Commits

Author SHA1 Message Date
tjhunt
99ba746d29 MDL-6368 and MDL-6369 - allow question type plugins to easily provide some bits of Javascript and CSS.
If there are any of the files styles.css, styles.php, script.js or script.php in the plugin folder, they will be linked to in the head of the quiz attempt page (only for the question types used on that page).

If you need to do something more complicated in your question type, you can override the get_html_head_contributions method instead.
2007-04-12 15:58:32 +00:00
tjhunt
dcc2ffde63 MDL-9082 - moodle/question:manage does not let you create questions. Also: * remove useless option from print_question_icon * use the right module context in question_list * a bit of XHTML strrrict in question_list Merged from MOODLE_18_STABLE. 2007-04-11 22:57:46 +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
54074fb872 MDL-9303 - General Feedback not shown for essay questions on review screen. Merged from MOODLE_17_STABLE. 2007-04-11 19:04:52 +00:00
thepurpleblob
d19d228e7c MDL-9123:
Added language string for error message
2007-04-11 12:18:28 +00:00
thepurpleblob
22afe6d699 MDL-9123:
No check was made of the validity of the category id read from the form.
So it could theoretically have been spoofed.
2007-04-11 11:00:26 +00:00
tjhunt
1b16ecd1ca MDL-9208 - Only hightlight the correct answer if that option is set. 2007-04-04 18:01:36 +00:00
tjhunt
288731fa09 Bug 2951 - correct PARAM_ types for answers to multichoice and shortanswer questions. Merged from OU Moodle. 2007-04-04 16:51:10 +00:00
tjhunt
d95c82ab59 MDL-9173 - Can't create match anything answer to numerical question type. Merged from OU Moodle. 2007-04-02 13:02:09 +00:00
moodler
782573e86d Merged solution for MDL-6458 typo 2007-03-31 05:25:41 +00:00
tjhunt
b63c5b5905 MDL-9094 - Penalty factor is meaningless for Essay questions, so remove it from the editing form. Manual merge of the corresponding change from MOODLE_17_STABLE. 2007-03-29 23:00:48 +00:00
pichetp
c9e4ba362d integrate the new $question->export_process parameter for export 2007-03-29 09:09:16 +00:00
thepurpleblob
fccf96bdeb Mmm... bit of comment oddness crept in. Don't know if it was a slip of an
editor key by yours truly!
2007-03-28 12:04:08 +00:00
thepurpleblob
5fd8f999d3 A couple of changes to Pierre's calculated question import/export
export_process and import_process flags now apply to all questions
and what looked like a development print_r has been commented out.
2007-03-28 11:58:44 +00:00
pichetp
725ba2a062 first version of calculated question import, MDL-8673, somme echos left to diagnostics
possible bugs
2007-03-28 05:00:36 +00:00
pichetp
cb0245556f creating correctly a new shared dataset on import 2007-03-28 04:51:50 +00:00
pichetp
3f76dd525f adding import and export datasets functions 2007-03-28 04:03:07 +00:00
tjhunt
88495aa8d2 Followup to MDL-8994 - validate the category id we got from the form. Merged from MOODLE_18_STABLE. 2007-03-22 22:02:14 +00:00
tjhunt
6a5e9a8506 MDL-9004 - Breadcrumb trail is wrong when editing a quiz question. Merged from MOODLE_18_STABLE. 2007-03-22 11:46:15 +00:00
tjhunt
6000365ee4 MDL-8994 - Question category selector on the question type editing forms is ignored. Merged from MOODLE_18_STABLE. 2007-03-22 00:10:47 +00:00
tjhunt
c2f8c4be5f Improve string handling in the question type base class. Merged from MOODLE_18_STABLE. 2007-03-21 17:12:50 +00:00
thepurpleblob
1710226966 Check for empty text strings. Thanks to Quedoc. 2007-03-21 11:18:28 +00:00
tjhunt
d187f66046 MDL-8946 - Fix a regression that broke question export. Also, partially clean up the way that question bank navigation tabs are printed, so the code is not duplicated in the quiz. Some other miscellaneous code cleaning too. Merged from MOODLE_18_STABLE. 2007-03-21 10:41:28 +00:00
pichetp
830e47a817 Give the question bank code sensible PHPdocumentor package names. 2007-03-21 02:04:53 +00:00
tjhunt
77fa3a0dad MDL-8978 - Regression from MDL-6386. Merged from MOODLE_16_STABLE. 2007-03-21 00:19:24 +00:00
tjhunt
93c80e1c0e MDL-8140 Other units disappear from the editing form when there is no unit with multiplier 1. Merged from MOODLE_18_STABLE. 2007-03-20 22:23:56 +00:00
tjhunt
1f8db78091 MDL-6386/MDL-6462 - yet more special character issues with multianswer. I think I have got them all this time. 2007-03-20 14:30:44 +00:00
tjhunt
b25486fc72 Matching qestion type was failing to correctly determine wheterh the student had changed their answer. 2007-03-20 14:06:56 +00:00
pichetp
9e20fbc2f4 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 14:05:10 +00:00
pichetp
41a89a0748 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 02:10:26 +00:00
pichetp
bd2b6ad362 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 02:03:18 +00:00
pichetp
1976496e38 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 22:04:30 +00:00
tjhunt
4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
poltawski
76a2edc8fd MDL-6386 - Regression from MDL-6462, lost stripslashes in CLOZE question,
thanks to Joseph Joseph Rézeau  for his attention to this issue. Merged
from MOODLE_18_STABLE
2007-03-17 22:55:05 +00:00
tjhunt
e51efd7ea7 MDL-6462 - Cloze (multianswer) question special character issues. Merged from MOODLE_16_STABLE. 2007-03-15 12:59:10 +00:00
skodak
b4c46a8b0f MDL-8913 use proper returned reference assignment for forms elements (PHP4 trouble); merged from MOODLE_18_STABLE 2007-03-15 12:42:39 +00:00
tjhunt
277e551b88 Oops, reverting. Eloy had already fixed it. 2007-03-14 21:10:55 +00:00
tjhunt
2099d05dec MDL-8232 - can't use = on TEXT colums with MSSQL - was breaking numerical question type upgrade. 2007-03-14 21:07:37 +00:00
thepurpleblob
3bf7621121 Fixed true/false bug due to new 'correctanswer' field. 2007-03-14 15:16:20 +00:00
thepurpleblob
532344b2cc Fixed some hardcoded strings in GIFT format. 2007-03-14 14:09:57 +00:00
thepurpleblob
4089729b66 Use $this->error for only error report 2007-03-14 13:14:37 +00:00
thepurpleblob
f37015613c MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 13:03:57 +00:00
tjhunt
0c6b4d2e81 Entity decoding only done the right number of times on import, not once too often.
Also, fix a notice and and Eclipse warning.
2007-03-13 16:27:24 +00:00
tjhunt
5b0dc681ad Use the right string processing when outputting question text on import/export. 2007-03-13 16:24:13 +00:00
tjhunt
70ed76670e Use the right string processing functions when outputting question names. 2007-03-13 16:20:41 +00:00
thepurpleblob
55c548682f MDL-8857
Make numerical and essay question formats more consistent.
2007-03-12 16:32:52 +00:00
pichetp
92e2ed8f16 merge from 18_STABLE 2007-03-10 10:31:49 +00:00
tjhunt
5dba65907b MDL-8177 - Random questions selected deleted questions. Merged from MOODLE_18_STABLE. 2007-03-10 00:34:05 +00:00
pichetp
fde0ef3922 merging from 18 STABLE 2007-03-09 05:50:55 +00:00
pichetp
46551466d8 modifs MDL-5650 2007-03-09 05:28:40 +00:00