Commit graph

303 commits

Author SHA1 Message Date
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
pichetp
d1c432e207 adding more validation and a dummy subquestion in MATCH if there is only 2 subquestions. 2007-05-08 19:19:09 +00:00
poltawski
a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +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
eeea21878d adding calculated question import MDL-5650 2007-05-07 04:01:20 +00:00
thepurpleblob
fa5cb18b74 MDL-9577:
Fixing change of name (answer => correctanswer) for true/false questions.
2007-04-25 09:43:37 +00:00
tjhunt
53a4d39f1c Clean up whitespace. 2007-04-24 23:26:48 +00:00
tjhunt
3509094e65 Remove blank line at start of file. 2007-04-13 16:25:10 +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
3bf7621121 Fixed true/false bug due to new 'correctanswer' field. 2007-03-14 15:16:20 +00:00
thepurpleblob
532344b2cc Fixed some hardcoded strings in GIFT format. 2007-03-14 14:09:57 +00:00
thepurpleblob
4089729b66 Use $this->error for only error report 2007-03-14 13:14:37 +00:00
thepurpleblob
f37015613c MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 13:03:57 +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
pichetp
fde0ef3922 merging from 18 STABLE 2007-03-09 05:50:55 +00:00
pichetp
46551466d8 modifs MDL-5650 2007-03-09 05:28:40 +00:00
pichetp
f0ee68f738 first modifications MDL-5650 2007-03-07 16:31:58 +00:00
toyomoyo
602b17e715 merged fixing indenting 2007-03-02 01:59:19 +00:00
tjhunt
3ed998f343 MDL-6773 - eliminate duplicate code for getting a list of question categories. Merged from MOODLE_18_STABLE. 2007-03-01 09:45:53 +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
57359d2383 MDL-8349 Some of the overidden methods had got out of sync with parent class. 2007-02-07 11:36:20 +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
gbateson
9d45b55ad0 omit empty answers from JQuiz import 2007-02-03 00:36:18 +00:00
thepurpleblob
3d903fcbcc MDL-8342 PHP5 migration thing causing string offset fatal error when data not present in XML file. Added some checks. 2007-01-30 15:16:47 +00:00
thepurpleblob
f4a6bff311 Output was missing utf8 meta tag. 2007-01-30 13:57:45 +00:00
thepurpleblob
296fe50abb MDL-8226 Move aon import format from head into contrib. No longer maintained. Use GIFT instead. 2007-01-19 14:38:18 +00:00
thepurpleblob
a8c733a97b MDL-8226 Move aiken import format from head into contrib. No longer maintained. Use GIFT instead. 2007-01-19 14:35:44 +00:00
skodak
60f9e36ee8 MDL-8223 - last global $course hacks removed 2007-01-19 10:29:03 +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
thepurpleblob
2e15284e31 MDL-8130 Number of improvements to check name length and improve HTML Entity handling. Thanks to Paul Ortman. 2007-01-16 11:23:32 +00:00
vyshane
0927589412 Xhtml fixes for MDL-7861. 2007-01-09 09:07:16 +00:00
gbateson
6385429d24 prevent backslashes being inserted before #-sign in HTML entities by converting html-entities to UTF-8 when importing from Hot Potatoes quizzes into Moodle 's standard Quiz module 2007-01-07 12:37:06 +00:00
thepurpleblob
5363b5551b MDL-7913 Improved category detection (again) to extract all characters. 2007-01-05 10:35:13 +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
09db6da231 MDL-7972 - improve GIFT import export for truefalse questions.
Also clean up whitespace in question/format/gift/format.php.
MDL-7928 - Numerical question type should use * for the match anything answer - GIFT format part. - Merged from MOODLE_17_STABLE.
2006-12-18 16:38:58 +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
6575b04f25 Improved regep for category switching 2006-12-01 16:06:06 +00:00
thepurpleblob
ee259d0cd1 Category can now be specified in Moodle XML format. 2006-11-29 14:27:48 +00:00
thepurpleblob
b39c7aada6 Added ability to specify destination category within GIFT file.
MDL-4163
2006-11-29 13:34:32 +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
thepurpleblob
b0b95fe6fb Merged from STABLE. Fix for MDL-7703. Fixed scope problem by moving all
functions inside the class. Also fixed some notices.
2006-11-28 15:14:37 +00:00
thepurpleblob
85474b2615 Merged from STABLE.
Examview 'SA' type questions now supported.
2006-11-28 11:51:50 +00:00
thepurpleblob
a60b5c161f Merged from STABLE. Fixed a typo and a notice 2006-11-28 09:28:33 +00:00