1031 Commits

Author SHA1 Message Date
stronk7
74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
gbateson
8693dca9a0 MDL-18883: fix setting of absolute urls for images in subfolders of course files 2009-04-17 01:51:35 +00:00
tjhunt
f13b675702 shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests. 2009-04-06 02:03:10 +00:00
fmarier
316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +00:00
tjhunt
677f62b67a Update a comment as a test of committing via git. 2009-04-02 07:50:33 +00:00
tjhunt
50da63ebd9 qtypes: MDL-18711 Allow qtype plugins to have custom CSS and JavaScript on the editing page. 2009-03-30 09:15:46 +00:00
tjhunt
3240fd9609 questions: unit tests for default_questiontype::compare_responses. 2009-03-26 08:42:23 +00:00
mudrd8mz
0cd25539b9 MDL-18644 Bugs found by syntax checker, merged from MOODLE_19_STABLE 2009-03-23 10:25:52 +00:00
thepurpleblob
10b4a508ae MDL-18579:
Provide nicer message if 'Stop on error' is selected and errors are found.

Merged from STABLE_19
2009-03-18 11:15:51 +00:00
tjhunt
3e10e4292d quiz editing: MDL-17454 first attemtp, and MDL-18554
This is a minimal fix for MDL-18554, I have just added a cancel button and made it work.

The more substantial part of this is MDL-17454, trying to make the quiz editing screen behave appropriately when shuffle questions is on. I am sure Olli will have opinions about this and want to change it further. Rought summary:
* When shufflequestions is off, never restrict manual paging, even if questionsperpage is set.
* When shuffle questions is on:
** Always display the quiz with the defined number of questions per page.
** Remove controls to add things except at the end of the quiz.
** Disable most of the order and paging tab, but still allow the question list to be reordered, in case that helps teachers track which questions they have added.
** Still allow questions to be reordered on the edit tab, but when moving the top question on a page up, reorder with the previous question, rather than moving to the previous page.
* Change the status bar, so that the yellow highlight is reserved for alert information. The more informative stuff is now plain, and moved to under the title. To my mind that associates it more closely with the quiz name. Also it moves Total of grades and Maximum grade closer together.
* JavaScript cleaned up. I learn more about YUI every day.
* Some PHP code clean ups that I forgot to commit separately before making substantive changes.
2009-03-17 09:51:34 +00:00
tjhunt
babcc520a7 Minor coding style cleanup. 2009-03-17 08:34:56 +00:00
thepurpleblob
c95defa90b MDL-18555:
Adding better handling for unsupported question types.

Merged from STABLE_19
2009-03-16 14:25:30 +00:00
tjhunt
5995f17f72 qtypes: MDL-18559 questions showing penalty information when they shouldn't.
We had a !== when it should have been !=, and our constants were defined as strings not ints. This problem has been there since forever, but no one had noticed before. Thanks to Alan Trick for finally spotting it!
2009-03-16 01:52:47 +00:00
tjhunt
c32f2e5c64 gift import: MDL-18390 better way to get the question type name. 2009-03-12 06:00:55 +00:00
thepurpleblob
f040135da5 MDL-18390 - now correctly looks up name of questiontype from language pack
Merged from STABLE19
2009-03-11 13:16:54 +00:00
tjhunt
26da840f6b quiz and qtypes: Regressions from MDL-7308 since '0.0000000' is not empty() in PHP. 2009-03-11 06:36:25 +00:00
tjhunt
5e4d8cb404 question bank: MDL-18355 Add question button did not work when the question bank was hidden. 2009-03-06 06:46:13 +00:00
tjhunt
26574bbad7 quiz/questions: Improve documentation of database tables. 2009-03-05 11:24:41 +00:00
tjhunt
c65921d422 Question categories. Move code to a more appropriate place. 2009-03-05 04:19:33 +00:00
thepurpleblob
c05878500b MDL-18390:
Correctly report unhandled question types and get string from language pack.
2009-03-03 15:36:17 +00:00
tjhunt
a5bc73aa74 Fix unit tests. 2009-03-03 07:44:30 +00:00
tjhunt
47de80c701 Aiken question import: MDL-18423 Greater robustness when parsing. 2009-03-03 05:11:55 +00:00
tjhunt
8bc590f5df qtypes help: MDL-5106 Create questiontype help file dynamically 2009-02-26 07:07:40 +00:00
tjhunt
b974f94757 quiz editing: MDL-18355 Try to improve the discoverability of Description again. 2009-02-26 06:33:18 +00:00
tjhunt
8ed358dbca qtype admin: MDL-16412 Enforce the allowed question types when a user tries to create a question. 2009-02-26 06:06:18 +00:00
tjhunt
7cf3af550c quiz editing: MDL-18355 further refinements to the UI. Thanks Olli. 2009-02-26 05:53:31 +00:00
tjhunt
63265f262f question types: MDL-18350 oops missed a bit. 2009-02-25 07:16:57 +00:00
tjhunt
cd120b2344 quiz editing / question bank: MDL-18355 Convert the add question drop-down to be a button that pops up a YUI dialogue.
That allows us to have a few sentences explanation of each question type, and is also easier to fit into a tight layout.

This commit should also fix MDL-18214 Layout screwed in Safari with long category names.
2009-02-25 07:14:03 +00:00
tjhunt
4995b9c19c question types: API cleanup.
MDL-18350 remove backwards compatibility support for question types having their lang strings in the quiz language module.
MDL-16407 settings.php support for question types. Remove the old get_config_options from question types. I don't think anyone was using it.
2009-02-25 07:01:57 +00:00
tjhunt
3cac440b76 quiz editing: MDL-18173 Make clear in the UI whether a random question selects from subcategories or not. 2009-02-24 05:16:23 +00:00
pichetp
38e74ec41c MDL-16345 changing &course to &courseid
line1079
  return $CFG->wwwroot . '/question/preview.php?id=' . $questionid . '&courseid=' . $this->course->id;
2009-02-23 20:20:07 +00:00
pichetp
f7fa6874f7 MDL-18034 MDL-18035 correcting typo
saving answers data in $question->answerif they come from edit from.
2009-02-20 20:52:32 +00:00
tjhunt
4d41f4eee8 Add missing Id tags to all files under question, to help the unmerged files script. 2009-02-19 01:09:44 +00:00
tjhunt
2aef1fe52f question editing: MDL-18035 Nice refactoring from Oleg Sychev that saves 50+ lines of code between the various editing forms. 2009-02-18 06:52:11 +00:00
tjhunt
5348b899c4 random question: MDL-18174 Fix notice when adding a random question to a quiz. 2009-02-17 06:14:54 +00:00
tjhunt
24e8b9b684 question bank: MDL-12719, MDL-15774, MDL-17105, and MDL-18174
These are all to do with the combination of the $form->category, and $form->categorymoveto fields on the question editing forms since Moodle 1.9. These are now resolved to a single ->category value in question.php, which simplifies the logic for the individual question types.

MDL-15774 and MDL-12719 errors editing Cloze question
MDL-17105 problems with qustion saving logic.
MDL-18174 'Select from subcategories' option not preserved when editing a random question.
2009-02-13 06:11:42 +00:00
tjhunt
2d1e69d37b question bank: MDL-18215 select all checkbox does not always work. 2009-02-13 05:06:01 +00:00
tjhunt
2a874d65ce quiz editing: MDL-17455 refactor the editing code to use the locallib functions to print the icons.
Also, use the new method in the random question class to get the list of random questions reliably.
2009-02-11 10:08:07 +00:00
tjhunt
64ead3edee Nuke irrelevant comment. 2009-02-11 07:24:29 +00:00
pichetp
9af77e9d17 MDL-18034 Rename answers field to answer in calculated qtype form to increase consistency 2009-02-03 00:40:40 +00:00
Francois Marier
6280ef3e58 Fix CVS-git drift (remove some files deleted in CVS) 2009-02-01 23:43:28 +00:00
pichetp
0a6555f854 MDL-18034 saving answers data in $question->answer if they come from edit from. 2009-01-27 15:00:19 +00:00
pichetp
103a800d67 MDL-17995 replacing is_null() by empty(). 2009-01-26 01:21:58 +00:00
pichetp
8795a5ae25 MDL-17995 replacing $wrapped !='' by !is_null($wrapped)
MDL-17857 Allowing multianwer (Cloze) question to have a 0 default grade as other question types
2009-01-25 14:49:02 +00:00
tjhunt
692d0480e0 question bank: MDL-16345 minor pritification. 2009-01-23 07:29:12 +00:00
tjhunt
bfb1691da3 question bank: MDL-18000 Make select all work by clicking the checkbox column heading.
Yay! I got bug 18000 and it is already fixed.
2009-01-23 06:05:25 +00:00
tjhunt
b7a9dc5193 question bank: MDL-17992 and MDL-17397. Put back questiontext as a separate row option, and increase consistenscy between stand-alone qbank and the display in the quiz editing page. 2009-01-23 05:01:37 +00:00
tjhunt
bcda961144 matching qtype: MDL-17981 extra distractors feature was not working on MS SQL server, since MDL-14420 was fixed. 2009-01-23 02:19:30 +00:00
tjhunt
714aaf918a shortanswer qtype: MDL-17800 Fix merge problem. Thanks to Oleg for spotting this. 2009-01-23 01:11:21 +00:00
tjhunt
e4d1d5e010 question bank: MDL-17871 finish refactor of code into one class per column.
Needs tidying up, but basically there, so checking it in.
2009-01-22 09:19:37 +00:00