1250 Commits

Author SHA1 Message Date
pichetp
0735b50962 MDL-17366 cleaning code ( space, indentation etc.) 2009-06-11 17:04:18 +00:00
samhemelryk
aa37f5e315 question bank MDL-18822 Corrected merge error in HEAD, thanks Oleg for spotting 2009-06-08 03:23:24 +00:00
tjhunt
aa9c6ecf02 question bank: MDL-18822 Highlight the last question you edited in the list
Helpful if you need to edit a lot of questions - saves you from losing your place.
Idea and patch by Oleg Sychev.
2009-06-05 08:30:53 +00:00
skodak
bf8e93d704 MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings 2009-06-03 20:00:08 +00:00
stronk7
577ba35087 MDL-19350 upgrade blocks - adding missing savepoints to question types 2009-06-03 17:27:07 +00:00
stronk7
4ff9ba7d7c towards 2.0 DML 2009-06-03 14:38:25 +00:00
pichetp
4328f8233d MDL-17366 define CALCULATEDSIMPLE , used in xml/format.php 2009-06-03 03:04:04 +00:00
pichetp
1d1f5784f8 MDL-17366 detecting real number of data items in database and modifying lang strings 2009-06-03 03:01:37 +00:00
pichetp
9c1c6c7f75 MDL-17366 allow calculatedsimple question type XML import and export 2009-06-02 17:12:27 +00:00
pichetp
acb85fd541 MDL-17366 a new "temporary" icon image 2009-06-01 20:11:13 +00:00
pichetp
f965e5fbfc MDL-17366 removing echo debugging lines. 2009-06-01 03:14:51 +00:00
pichetp
a31697ba49 MDL-17366 adding control of number of values displayed and validation improvments. 2009-06-01 03:12:29 +00:00
pichetp
83a15d025c MDL-17366 adding the calculatedsimple questiontype 2009-05-29 22:42:22 +00:00
pichetp
315efce701 MDL-19214 Adding category hidden element 2009-05-24 02:33:42 +00:00
pichetp
66d0a55c56 MDL-19210 using the get_database_dataset_items() function 2009-05-24 02:02:31 +00:00
pichetp
a2155a7b74 MDL-19210 adding get_database_dataset_items() function 2009-05-24 02:01:03 +00:00
pichetp
3058e79d22 MDL-19213 testing ifthe wizardpage allows editng the tags 2009-05-21 12:19:45 +00:00
pichetp
ad3a4aa67f MDL-19210 eliminate the generation of multiple dataitems having the same item number 2009-05-21 12:10:42 +00:00
tjhunt
d529807a65 moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
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