136 Commits

Author SHA1 Message Date
gbateson
7433742566 MDL-13048 fix indefined course id when importing a Hot Potatoes quiz into the Lesson module 2008-02-05 04:13:51 +00:00
gbateson
9d042298ff fix for MDL-13174 ' replace calls to html_entity_decode() with hotpot_charcode_to_utf8() because html_entity_decode is broken in PHP4 2008-01-31 07:28:30 +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
toyomoyo
3ea69b8d43 MDL-12346, lesson module GIFT import fails 2007-11-29 04:31:57 +00:00
tjhunt
0d4c63d7fb MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is done on the editing form. Merged from MOODLE_18_STABLE. 2007-10-25 09:43:06 +00:00
thepurpleblob
0db7823cf9 MDL-11769:
question name is properly truncated to less than 255 characters tom
stop PostGRES choking.
2007-10-15 13:50:57 +00:00
nicolasconnault
ed818bbdbf MDL-10905 iterating correctly with readdir (as shown in php doc) 2007-10-15 05:18:58 +00:00
gbateson
2958e18586 where the correct responses on a JQuiz multiple choice question all have a score of 0%, the scores will be corrected to 100% 2007-10-15 01:00:38 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +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
skodak
42626376f3 MDL-11442 removed last instances of global $course 2007-09-27 08:18:28 +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
ad2cd664d7 Typo!
Merged from STABLE_18
2007-09-18 12:30:19 +00:00
pichetp
7ba1111637 Correcting a little error: datesetitem = array(); instead of datasetitem = array();
line +-550 $question->dataset[$datasetname]->datasetitem = array();
2007-09-07 02:38:02 +00:00
thepurpleblob
13e88db4a2 MDL-10819:
GIFT now exports grade fractions for numeric questions

Merged from STABLE_18
2007-08-20 10:36:30 +00:00
thepurpleblob
d510ec64b6 MDL-10902:
Whoops! Overwrote question object. Variable name changed
Thanks to Adriane Boyd for spotting that one.

Merged from STABLE_18
2007-08-18 09:33:45 +00:00
thepurpleblob
4433fff5a8 Moved check for plugin import/export to the start rather than the end
Merged from STABLE_18
2007-08-17 09:47:51 +00:00
thepurpleblob
228b6f6b1d MDL-10785:
empty() changed to !isset()

Merged from STABLE_18
2007-08-10 07:17:46 +00:00
jamiesensei
271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
thepurpleblob
64de04fb09 Added hooks to qtype import/export 2007-08-09 14:12:12 +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
c56abad900 MDL-10680:
subquestions/subanswers needed swapped for matching questions

Merged from STABLE_18
2007-08-01 13:44:35 +00:00
thepurpleblob
1b36a58597 MDL-10239:
Improper check for correct answer in true/false questions
2007-07-26 15:08:16 +00:00
thepurpleblob
e8825e724b MDL-10531:
GIFT now handles Essay and Description type questions. See help/docs.

Merged from STABLE_18
2007-07-21 07:39:22 +00:00
thepurpleblob
e53ff7f60a MDL-10380:
Check for randeredmatch plugin done using array_key_exists() for PHP4
compatibility
MDL-10317:
Question name is now the question ID, rather than the question text.
2007-07-13 08:36:14 +00:00
thepurpleblob
1d1e8f2bab MDL-10380:
Modified check for existence of renderedmatch plugin so that it sees it properly.
Bodged weird parameter passing issue so that correct answer choices are found.
2007-07-11 13:57:59 +00:00
thepurpleblob
f0c1799e43 MDL-10415:
Aiken format returns/
2007-07-11 09:18:32 +00:00
thepurpleblob
3e60818b91 MDL-10240:
Added Bb Short Response as a Moodle Essay type question.
Found quite a lot of stuff that could do to be checked and improved
in this code, so this should be considered an intermediate step.
2007-06-29 14:32:20 +00:00
tjhunt
eedb2494ed Fix whitespace. 2007-06-15 10:24:29 +00:00
thepurpleblob
d022bf655e MDL-9265:
'correctanswer' field missing for true/false.
2007-06-01 08:25:18 +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
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