Commit graph

141 commits

Author SHA1 Message Date
Tim Hunt
67b8b40cfa MDL-27797 fix bugs with Moodle XML export. 2011-06-14 16:34:14 +01:00
Tim Hunt
9c197f4445 MDL-20636 Fix some more codechecker issues. 2011-05-14 22:53:25 +01:00
Tim Hunt
c7df5006b9 MDL-20636 Add lots of missing public/protected/private. 2011-03-23 16:22:25 +00:00
Tim Hunt
c73c98365b MDL-20636 Question import, support for files in hints.
Also fix some minor bugs and unit tests.
2011-03-23 14:27:22 +00:00
Tim Hunt
56b0df7eac MDL-20636 Kill Left over addslashes in the question engine code. #223 2011-03-11 13:45:38 +00:00
Tim Hunt
d649fb0221 MDL-20636 Remove all references to global $QTYPES.
Except in the question types that have not yet been converted to the new question engine.
2011-02-24 15:29:07 +00:00
Tim Hunt
5e8a85aa64 MDL-20636 Massively reduce the number of references to quiz in the question code.
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
2011-02-23 18:53:50 +00:00
Tim Hunt
f7970e3ca7 MDL-20636 Eliminate integer and boolean in PHPdoc comments. should be int and bool. 2011-02-23 16:25:25 +00:00
Tim Hunt
a17b297d60 MDL-20636 Add missing defined('MOODLE_INTERNAL') || die(); 2011-02-23 16:00:20 +00:00
Tim Hunt
7764183a4a MDL-20636 Fix @package names and PHPdoc layout. 2011-02-23 13:38:16 +00:00
Tim Hunt
0ff4bd0877 MDL-20636 Fix new stdClass -> stdClass(), and trailing whitespace. 2011-02-21 18:10:19 +00:00
Tim Hunt
f9b0500f7f MDL-20636 Quiz editing now works, as does the random question type.
However, all this needs more testing.

Also, a bit of a purge of training whitespace and global .
2011-02-10 20:50:18 +00:00
Tim Hunt
fe0412432f MDL-20636 And fix XML import unit tests too. 2011-01-18 16:06:05 +00:00
Tim Hunt
5f7cfba7fa MDL-20636 Question XML export unit tests now all pass. 2011-01-18 14:36:40 +00:00
Tim Hunt
49e2bba7cc MDL-20636 Merge import/export formats. XML is not finished (unit test failures). 2011-01-17 18:01:49 +00:00
Tim Hunt
d1b7e03d5d MDL-20636 Current work-in-progress converting the question engine to Moodle 2.0 2011-01-13 18:35:29 +00:00
Tim Hunt
06f1bd03be question XML import/export MDL-18916 Fix import of questions with images exported from Moodle 1.9.
Thanks again to Patrick Pollet
2010-11-19 14:24:18 +00:00
Tim Hunt
4f2900771d question XML import/export MDL-18916 should include question tags. 2010-11-19 12:33:48 +00:00
Tim Hunt
a5e8e6e5de qtype multicoice xml export MDL-25208 / MDL-25104 revert incorrect change in qtype_multichoice and do a proper fix in XML export. 2010-11-19 09:35:54 +00:00
Pierre Pichet
ab152de445 MDL-25192 and MDL-25194 import and saving images using instructions ['files'] array 2010-11-15 14:14:43 +00:00
Tim Hunt
69988ed452 questions MDL-25104 and MDL-25088 fix question editing and import
Editing of some qtypes was broken since a previous commit by me earlier in the week.

Import of XML and GIFT should now work, but could use some more testing.
2010-11-12 17:11:34 +00:00
Pierre Pichet
c8fdd86791 MDL-25104 Fixing cloze import and export 2010-11-09 04:07:37 +00:00
Pierre Pichet
0814c09938 MDL-25104 Fixing some other error about $files in $instructions param of numerical 2010-11-09 00:02:57 +00:00
Pierre Pichet
ae2c091f09 MDL-25104 Fixing some litle errors about $instructions param of numerical 2010-11-08 20:58:32 +00:00
Tim Hunt
2ed801777a question XML import MDL-25104 fix a whole bunch of minor errors. 2010-11-08 17:25:53 +00:00
Tim Hunt
4673212416 xml import/export MDL-25103 was not working due to out-of-memory errors when calling xmltidy, which broke XML wellformedness.
The solution is to not tidy the XML. The XML generated is already quite well laid out, and if we want it better, we should fix that, rather than trying to load the whole file into memory to reformat it.

Also, while investigating this, I found that we were not handling the mime-type of the exported file very elegantly, so I added a new mime_type method (defaults to getting the mime type of the file extension).
2010-11-08 15:51:10 +00:00
Pierre Pichet
ac582c3b25 MDL-25086 first modifications, numerical options for numerical questions 2010-11-06 02:16:07 +00:00
Dongsheng Cai
cde2709a88 MDL-15573, question export rewrite 2010-11-05 06:34:00 +00:00
Petr Skoda
9cc41dfd6d MDL-24058 replacing forbidden addslashes with something that is most probably completely useless 2010-09-02 12:40:34 +00:00
Tim Hunt
688d875300 qformat xml MDL-22743 questiontextformat not imported correctly since the fix for MDL-9700 went in. 2010-08-05 13:11:27 +00:00
Pierre Pichet
04d8268d82 MDL-10110 adding import export xml for calculatedmulti and calculatedsimple 2010-04-23 23:10:11 +00:00
Petr Skoda
aeb15530b8 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 11:57:52 +00:00
tjhunt
88bc20c30f question types: MDL-20157 export_to_xml and import_from_xml functions for question types using extra_question_fields.
Thanks to Oleg Sychev for the implementation.
2009-09-30 13:38:36 +00:00
pichetp
a800639b62 MDL-20189 correcting for the value of correctanswerlength on calculated export 2009-09-04 02:09:23 +00:00
pichetp
505f73421c MDL-19519 , MDL-1728 Adding database question_calculated_options 2009-08-22 15:38:51 +00:00
nicolasconnault
fef8f84e4b MDL-19822 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:19:00 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
pichetp
9c1c6c7f75 MDL-17366 allow calculatedsimple question type XML import and export 2009-06-02 17:12:27 +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
thepurpleblob
3695cfa93f MDL-16570
Use CDATA sections for text where required. More readable and less error
prone.

Merged from MOODLE_19_STABLE
2008-09-19 10:01:47 +00:00
thepurpleblob
33ed59a208 MDL-16252
Fixed some notices with essay questions when there is no feedback

Merged from STABLE_19
2008-08-28 10:59:22 +00:00
tjhunt
cdfaa8386e Removing calls to depricated stripslashes. It is no longer needed with dmllib 2.0. 2008-07-14 15:29:30 +00:00
thepurpleblob
e7ef42f531 MDL-15473
Fixed typo causing the image location to be ignored if the base_64 image is not included.

Mereged from STABLE_19
2008-07-07 11:54:39 +00:00
dongsheng
d9f30321da "MDL-14129, fix print_error" 2008-06-15 11:07:51 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
tjhunt
c0ffeb3969 MDL-14764 - Imported multichoice questions may have a blank answernumbering value, which results in an "ERR" prefix to all answers' text. Thanks to Nate H for the fix. 2008-05-27 13:42:27 +00:00
thepurpleblob
3f5633df11 MDL-14406
Ensure 'length' field for description type questions is 0 and that
default for all questions is 0

Merged from STABLE_19
2008-05-01 12:21:55 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
thepurpleblob
fc22da99e2 Added check for <text> fields that contain markup (an error!)
Merged from STABLE_19
2008-02-12 11:57:39 +00:00
thepurpleblob
86b685208d MDL-12016:
Read xml structure correctly to get category path.

Merged from STABLE_19
2008-01-15 14:52:49 +00:00