Commit Graph

74 Commits

Author SHA1 Message Date
jamiesensei cb14dd6316 modifiedby and timemodified is now set when a question is created as well as createdby and timecreated instead of being left as zero 2007-09-27 07:41:58 +00:00
tjhunt 411efaee25 MDL-5327 - When making up a default question name from the question text, strip any HTML tags. Merged from MOODLE_18_STABLE. 2007-09-27 06:54:17 +00:00
tjhunt f59dba8497 MDL-11398 - Random questions sometimes ended up with names different from the cateogry they were actually picking from. Also, the same random questoin could be used in more than one quiz, in which case editing that question would change two quizzes unexpectedly. The fix is:
* Don't let the user set the name for random questions.
* Instead force the name to be "Random (catname)" (localised) whever the question is created or saved.
* When a category is renamed, rename all the random questions in it.
* Remove the restriction that Jamie seems to have added in 1.9 that was preventing the category of random questions from being edited.
2007-09-26 16:10:38 +00:00
tjhunt b92ffdf9ac Whitespace cleanup. 2007-09-24 15:45:29 +00:00
tjhunt 80fdc53efd Related to MDL-10916 - saving Cloze questions in Moodle 1.9 generates Notices because of changes to questionstupe_base::save_question. 2007-09-24 14:18:47 +00:00
tjhunt c5ccb82c61 XHTML Strict in question state history table. Merged from MOODLE_18_STABLE. 2007-09-20 15:10:04 +00:00
tjhunt c767d3b7d3 MDL-11317 - Slashes displayed in incorrect responses for short answer questions. Fix by adding stripslashes in the appropriate place. Merged from MOODLE_18_STABLE. 2007-09-18 12:15:22 +00:00
tjhunt ace1bf9d8e MDL-11284 - Can't save edited questions 2007-09-14 09:33:30 +00:00
jamiesensei ffba1f0bec added some comments 2007-08-16 05:20:35 +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
tjhunt ceeae340f9 MDL-10799 - Question types do not accurately determine whether their state has changed or not. Merged from MOODLE_18_STABLE. 2007-08-10 15:21:29 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
tjhunt e3fa6587ee Helper method to help when calling print_error from a question type. 2007-08-09 15:38:35 +00:00
tjhunt 215bd82630 Fix typo. Thanks to Adriane Boyd. 2007-08-09 09:00:30 +00:00
tjhunt 3d3867b69a MDL-10730 - After submitting a question in adaptive mode, go back to that question, not the top of the page. Code thanks to Tony Gardner-Medwin, based on my suggestion. 2007-08-06 14:10:46 +00:00
tjhunt 5fceb049cc Use of get_html_head_contributions was causing unwanted interaction bewteen question types. Switched to using a class variable. 2007-07-30 17:04:46 +00:00
tjhunt ca9000df6f Fix typo in a comment. 2007-06-19 16:33:16 +00:00
tjhunt 6e9debfbf1 Removing remaining references to RQP in core code. I had not realised there were so many. By the way, I am committing this from a pub in York. Pub's with wireless, whatever next? 2007-05-24 17:25: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 27987cbb78 Eliminate support for old-style question editing forms. 2007-04-25 18:20:04 +00:00
tjhunt 295043c21c Base class methods preparitory to deleting a lot of essentially duplicated code from the various question types. 2007-04-24 23:31:41 +00:00
tjhunt c85607f0be MDL-9432 - When restoring questions, links are not recoded. Merged from OU moodle. 2007-04-18 15:56:21 +00:00
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 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
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 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
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 4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
tjhunt 08eef20df4 MDL-8349 - responses not being filtered in history display. Merged from MOODLE_18_STABLE. 2007-03-06 18:00:23 +00:00
vyshane c7a990842f Merged from 1.8. 2007-02-15 06:15:24 +00:00
tjhunt f07d1d3197 When editing some question types, the options get jumbled up. 2007-01-29 12:35:29 +00:00
jamiesensei 7b41a4a989 some more small changes to datasetdependent and calculated question type forms 2007-01-18 11:21:10 +00:00
jamiesensei 92186abc95 working on multipage form for calculated question type 2007-01-11 04:59:16 +00:00
vyshane 0fd5feef05 Xhtml fixes for MDL-7861. 2007-01-08 07:58:22 +00:00
jamiesensei 271ffe3f25 various formslib work including bug fixes for MDL-8039 id attribute collision between forms and page ids. Also added editor helpbutton. This is a fix for MDL-6941 need the ability to associate several helptopics with htmleditor. Also started on converting forms for question types to formslib. 2007-01-07 12:46:47 +00:00
ikawhero 96ed722ba3 Minor change so code works on all versions of PHP 2006-12-29 02:36:41 +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
toyomoyo 077f381461 accessiblity, associating <th> with respective row or col 2006-12-13 08:24:23 +00:00
tjhunt bb080d2046 MDL-7896 - error from random question type in adaptive mode. Merged from MOODLE_17_STABLE. 2006-12-11 23:46:15 +00:00
tjhunt 2962ad61e4 Put back spaces in code that Martin Dougiamass stripped out of the lang strings without thinking about the consequences. Merged from MOODLE_17_STABLE. 2006-11-28 18:42: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 879caa5172 Make things a bit more robust. Sorry, I can't remember exactly what the problem was that this fixed any more. It has been sitting around for a couple of weeks and I had forgotten to commit it. 2006-10-16 15:23:54 +00:00
tjhunt ec6adca0f4 MDL-6761 Edit qestion link gone from question preview popup. It was checking the wrong capability. 2006-10-02 17:04:12 +00:00
tjhunt a4514d91de Renamed new commentary feature to 'general feedback'. 2006-09-19 13:35:42 +00:00
tjhunt 6459b8fc8d Give a bit more information to the subclasses. 2006-08-31 16:59:52 +00:00
tjhunt 695d225c6a Clarified comment. 2006-08-31 11:28:44 +00:00
tjhunt 32b0adfade Better comments 2006-08-29 08:57:47 +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
tjhunt c82f76d050 MDL-4816 Short answer question type considers '100' and '100.' to be the same Actually, this may have affected other question types too. 2006-08-23 21:17:23 +00:00