47 Commits

Author SHA1 Message Date
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
thepurpleblob
6f8481ec0a MDL-11425:
Process the text properly for the category path.

Merged from STABLE_18.
2007-10-09 10:16:01 +00:00
tjhunt
4ab4dcb27a MDL-10916 - Import and Export of Cloze question misses out "generalfeedback" column. Merged from MOODLE_17_STABLE. 2007-09-24 14:17:23 +00:00
thepurpleblob
228b6f6b1d MDL-10785:
empty() changed to !isset()

Merged from STABLE_18
2007-08-10 07:17:46 +00:00
thepurpleblob
392238d626 Was not checking error return from plugin export properly 2007-08-08 15:23:11 +00:00
thepurpleblob
a41e328736 MDL-6367:
First shot at import/export support in plugins.
2007-08-08 10:45:09 +00:00
thepurpleblob
caa99ee735 Fixed typo stopping image importing working 2007-05-31 08:32:07 +00:00
thepurpleblob
2377f8dcd4 MDL-9716
'answernumbering' field now supported
2007-05-29 15:19:12 +00:00
thepurpleblob
81a7a02b8f Progress with making the code a bit more resilient.
Added XML tidy up if tidy extension is available.
2007-05-23 12:52:33 +00:00
thepurpleblob
6af98025d7 merged from STABLE18 2007-05-21 13:11:06 +00:00
pichetp
6e8f63c6d4 removing $qo->generalfeedback = ''; line 640 as generalfeedback is already set in
import_headers().
2007-05-13 15:07:07 +00:00
thepurpleblob
460135234c MDL-9700:
Added more comprehensive checks for missing fields not exported in
previous versions.
More could be done, but this covers the basics and works for 1.6 (and
probably 1.5) exports.
2007-05-08 14:24:13 +00:00
pichetp
c9e4ba362d integrate the new $question->export_process parameter for export 2007-03-29 09:09:16 +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
thepurpleblob
1710226966 Check for empty text strings. Thanks to Quedoc. 2007-03-21 11:18:28 +00:00
pichetp
41a89a0748 Give the question bank code sensible PHPdocumentor package names. 2007-03-20 02:10:26 +00:00
thepurpleblob
4089729b66 Use $this->error for only error report 2007-03-14 13:14:37 +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
thepurpleblob
55c548682f MDL-8857
Make numerical and essay question formats more consistent.
2007-03-12 16:32:52 +00:00
thepurpleblob
7939a4a0cb MDL-8563
$question->answer was swapped for $question->correctanswer in questiontype
for some reason! Compensated for in format type.
2007-02-21 14:20:46 +00:00
thepurpleblob
f1abd39fe5 MDL-8450 Added support for including question categories in a quiz export. Also a bit of format tidy up and fix a misshandled sesskey. 2007-02-07 10:29:53 +00:00
thepurpleblob
5bed54e1fc MDL-8100, defaultgrade not imported. Question obect initialisation and value import wrong way round - whoops! 2007-01-16 12:12:26 +00:00
tjhunt
3246ed335d MDL-7975 - Make import and export of truefalse questions more reliable. Merged from MOODLE_17_STABLE. 2006-12-18 18:07:49 +00:00
tjhunt
55894a4205 MDL-7928 - Numerical question type should use * for the match anything answer. Merged from MOODLE_17_STABLE. 2006-12-15 18:30:39 +00:00
thepurpleblob
ee259d0cd1 Category can now be specified in Moodle XML format. 2006-11-29 14:27:48 +00:00
tjhunt
2da448161a MDL-6297 shuffleanswers option not imported correctly for MC questions. 2006-10-03 14:01:38 +00:00
tjhunt
a4514d91de Renamed new commentary feature to 'general feedback'. 2006-09-19 13:35:42 +00:00
tjhunt
307f045f07 MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer
In passing, I fixed MDL-6297 Export of multichoice questions in Moodle XML format doesn't save shuffle option too.
2006-08-24 10:22:43 +00:00
tjhunt
6e557c0806 Fixed syntax error in a PHPdoc comments. 2006-08-24 10:16:54 +00:00
thepurpleblob
c81415c77e Merged from STABLE 2006-08-23 14:57:40 +00:00
tjhunt
1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
thepurpleblob
71ffbac2da merged from STABLE 2006-07-05 12:39:35 +00:00
tjhunt
ee800653e4 Corrected reference to lang string and fixed a notice. Merged from MOODLE_16_STABLE. 2006-06-14 15:32:55 +00:00
thepurpleblob
7b8bc256cc Merged from STABLE 2006-06-02 09:45:19 +00:00
thepurpleblob
a0d187bfd7 Merged from STABLE 2006-06-01 10:13:57 +00:00
thepurpleblob
36e2232e27 Merged from STABLE. 2006-05-13 08:49:46 +00:00
thepurpleblob
c515fcf73e Removed mystery (probably diagnostic) message 2006-04-28 09:39:13 +00:00
thepurpleblob
d08e16b2a5 Moodle xml format can now export and import the actual image files, encoding
in 'base64' format.
2006-04-21 12:35:57 +00:00
thepurpleblob
51bcdf28b3 Added support for matching questions. Bug #3901 2006-03-23 11:13:50 +00:00
gustav_delius
f5565b6969 Removing some more references to quiz from import/export code 2006-03-01 07:36:09 +00:00
thepurpleblob
84769fd8a8 Moving quiz import/export files to new question area. 2006-02-24 15:14:09 +00:00