50 Commits

Author SHA1 Message Date
tjhunt
0cd465770f MDL-7010 - followup - quiz config settings were referred to in two places in the question bank. Since these settings are now in config_plugins, the references need to be update. (Of course, perhaps these should not be referred to at all ...) 2008-09-10 02:44:21 +00:00
thepurpleblob
73b7b195ed MDL-16198
Blackboard V6+ can now handle the .dat file directly as an option to the .zip file
Some changes needed to recover the original filename.

Merged from STABLE_19
2008-08-28 13:49:25 +00:00
tjhunt
1b8b535dda MDL-11905 - Users with the capability to export questions may not have the capability to access backupdata. Therefore we need to change where question export files are stored. Merged from the 1.9 stable branch.
Note that once the file API is finished, this will have to be redone. I have created MDL-15573 for that.
2008-07-08 11:23:31 +00:00
thepurpleblob
5ca9e32d97 MDL-13010
Now correctly checks for category context id and does not fail if it isn't there.

Merged from STABLE_19
2008-07-03 14:50:30 +00:00
dongsheng
d9f30321da "MDL-14129, fix print_error" 2008-06-15 11:07:51 +00:00
thepurpleblob
e5d7d1dc02 MDL-15229
Fixed incorrect options array for DB call
2008-06-13 10:52:58 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
nicolasconnault
f34488b2e6 MDL-15102 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing. 2008-06-06 14:43:15 +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
1e7386c9ad MDL-14129, cannot use a full string in the param 2008-04-09 03:10:26 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
thepurpleblob
40e7144323 Reverting Mike C's change in MDL-12016 2008-01-15 14:35:59 +00:00
jamiesensei
2c44a3d393 MDL-12410 - a way to select which questions to export, includes debug messages 2007-12-11 03:24:35 +00:00
mchurch
488eaca44a MDL-12016 Category text not being sent to 'create_category_path'. 2007-11-15 14:05:17 +00:00
mchurch
ce2df2884a MDL-12015 Import question count was wrong. 2007-11-15 13:43:51 +00:00
thepurpleblob
8cc7d98a31 Forgot to take out duplicate question count check.
Merged from STABLE_18
2007-09-17 11:01:53 +00:00
thepurpleblob
2c6d2c888c MDL-11279:
Code was not properly checking for empty category.
Check moved to right place and proper print_error() function called as appropriate

Merged from STABLE_18
2007-09-17 10:57:49 +00:00
jamiesensei
0647e82b57 check for viewall / viewmine permission for each question in a category selected for export. 2007-08-29 03:04:01 +00:00
thepurpleblob
c1828e0b19 MDL-10689:
No questions imported if "stop on error" selected and there are invalid grades.

Merged from STABLE_18
2007-08-20 10:06:57 +00:00
jamiesensei
271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
thepurpleblob
a41e328736 MDL-6367:
First shot at import/export support in plugins.
2007-08-08 10:45:09 +00:00
thepurpleblob
717357948e MDL-10234
Encoded images in subdirectories failed to load.
Thanks to Enrique Castro for fix.
2007-06-28 15:15:06 +00:00
tjhunt
eedb2494ed Fix whitespace. 2007-06-15 10:24:29 +00:00
thepurpleblob
67c1252753 Added some set_time_limit()s in case of slow servers timing out. 2007-05-23 14:07:12 +00:00
pichetp
093414d200 Setting import_process =true in defaultquestion() function used on imports 2007-05-11 13:00:34 +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
thepurpleblob
5931ea94a1 MDL-9675:
Default value added for 'answernumbering'. Default is 'abc'
2007-05-05 14:44:12 +00:00
thepurpleblob
cdeabc0638 Fixed hard coded string 2007-05-04 14:31:56 +00:00
thepurpleblob
fccf96bdeb Mmm... bit of comment oddness crept in. Don't know if it was a slip of an
editor key by yours truly!
2007-03-28 12:04:08 +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
tjhunt
4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
thepurpleblob
f37015613c MDL-8898
Improvements to error handling in question bank import/export.
2007-03-14 13:03:57 +00:00
tjhunt
5b0dc681ad Use the right string processing when outputting question text on import/export. 2007-03-13 16:24:13 +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
b0679efa8f MDL-6769 and http://moodle.org/mod/forum/discuss.php?d=60209 the default for shuffleanswers is now set to the configured value. 2007-01-05 11:56:57 +00:00
thepurpleblob
08892d5be5 Fixed a notice. Tidied up format class call a bit. Added provision
for categories to be specified within import files - MDL-4163.
2006-11-29 13:32:00 +00:00
tjhunt
172f6d95e1 Fix bugs with GIFT import. Merged from MOODLE_17_STABLE. 2006-10-17 10:56:35 +00:00
tjhunt
2d30f53dcc Fixed syntax error in a PHPdoc comment. 2006-08-24 10:12:15 +00:00
tjhunt
1367cb8d6b SC#277. Merged from MOODLE_16_STABLE. 2006-07-18 13:33:45 +00:00
tjhunt
656ee8c6a1 Fix an undefined variable notice. Merged from 1.6stable. 2006-05-22 11:20:51 +00:00
thepurpleblob
36e2232e27 Merged from STABLE. 2006-05-13 08:49:46 +00:00
thepurpleblob
a9b16aff8d Now ignore hidden questions. Bug #4988 2006-04-28 09:36:17 +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
gustav_delius
cbe20043b5 Whenever a question is edited the version field is set to question_hash(), see bug 2958. 2006-04-10 22:10:32 +00:00
thepurpleblob
2d52056f79 Not all questions have grades/fractions. Added check. 2006-03-23 11:12:54 +00:00
thepurpleblob
76f0a33403 Grades in imported questions must match grades option list.
Added option to either generate error or match to nearest valid value if they don't
2006-03-22 16:30:14 +00:00
thepurpleblob
1e3d6fd804 Fixed up some more links.
Fixed up a bunch of hardcoded text.
Added test for exporting category with no questions.
2006-03-09 16:17:45 +00:00
gustav_delius
f5565b6969 Removing some more references to quiz from import/export code 2006-03-01 07:36:09 +00:00
gustav_delius
062f1125cc *** empty log message *** 2006-02-28 09:36:31 +00:00
thepurpleblob
aca318e17e Moving import/export to new question area.
This will need some more work/testing though!
2006-02-24 15:17:40 +00:00