Jean-Michel Vedrine
c8fbd8b0c3
MDL-39283 GIFT and XML question export broken for unsupported qtypes
...
Do no write any data to the export for unsupported qtypes
2013-04-23 09:52:47 +02:00
Eloy Lafuente (stronk7)
663dbbc2e6
MDL-36933 Bump everything to 2012112900
...
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Tim Hunt
cacb8fa08a
MDL-34841 error importing questions with long names.
...
The problem was with the non-UTF-8-safe way that a question name
was being constructed from the question text.
I have done a proper fix with methods in the base class to
carefully construct a question name that is reasonable, and
which will fit in the database column. Then I have changed all
importers to use the new methods.
I also remembered not to break the lesson in the process.
2012-09-11 15:04:00 +01:00
Tim Hunt
e231a3ffa2
MDL-27799 question bank: remove last traces of qtype constants.
...
Using consants to refer to plugin names is crazy. The whole point of
plugins is that you can install more, hence the list of constants will
never be complete.
2012-08-30 13:15:52 +01:00
Eloy Lafuente (stronk7)
14941785d7
Merge branch 'MDL-25492' of git://github.com/jmvedrine/moodle
2012-08-28 20:02:02 +02:00
Tim Hunt
19de315e83
MDL-34306 gift question format: allow import of general feedback
...
This change introduces #### as a separator for general feedback. You need
to add ####General feedback goes here as the last thing inside the {...}.
For example
// question: 123 name: Shortanswer
::Shortanswer::Which is the best animal?{
=Frog#Good!
=%50%Cat#What is it with Moodlers and cats?
=%0%*#Completely wrong
####Here is some general feedback!
}
Note that this change is not entirely backwards compatible. It will break
any existing GIFT file where the character sequence #### us used between the
{} as part of the question. This seems highly unlikely.
2012-08-25 14:27:40 +01:00
Jean-Michel Vedrine
7ace84e069
MDL-25492 Blackboard V6+ question import is broken.
2012-08-24 13:27:45 +02:00
Tim Hunt
d9299c349e
MDL-34171 qformat_gift: Fix edge case with special character escaping.
...
We need to escape \ on export, because it is un-escaped on import.
2012-07-04 10:55:52 +01:00
Eloy Lafuente (stronk7)
c5e783e512
MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700
2012-06-18 02:37:00 +02:00
Petr Skoda
2338458ac5
MDL-32569 drop all migrated question simpletests
2012-04-21 16:43:34 +02:00
Petr Skoda
603bd00112
MDL-32323 convert question tests
...
1/ type/match/tests/walkthrough_test.php - tests are failing randomly, looks like some weird randomisation is going on there - see TODOs
2/ type/multianswer/tests/upgradelibnewqe_test.php contains invalid expected value - see TODO
2012-04-10 15:27:11 +02:00
Tim Hunt
646791794d
MDL-29808 qformats: use standard pluginname string and add version.php
...
AMOS BEGIN
MOV [aiken,qformat_aiken],[pluginname,qformat_aiken]
MOV [aiken_help,qformat_aiken],[pluginname_help,qformat_aiken]
MOV [aiken_link,qformat_aiken],[pluginname_link,qformat_aiken]
MOV [blackboard,qformat_blackboard],[pluginname,qformat_blackboard]
MOV [blackboard_help,qformat_blackboard],[pluginname_help,qformat_blackboard]
MOV [blackboard_six,qformat_blackboard_six],[pluginname,qformat_blackboard_six]
MOV [blackboard_six_help,qformat_blackboard_six],[pluginname_help,qformat_blackboard_six]
MOV [examview,qformat_examview],[pluginname,qformat_examview]
MOV [examview_help,qformat_examview],[pluginname_help,qformat_examview]
MOV [gift_help,qformat_gift],[pluginname_help,qformat_gift]
MOV [gift_link,qformat_gift],[pluginname_link,qformat_gift]
MOV [learnwise,qformat_learnwise],[pluginname,qformat_learnwise]
MOV [learnwise_help,qformat_learnwise],[pluginname_help,qformat_learnwise]
MOV [missingword,qformat_missingword],[pluginname,qformat_missingword]
MOV [missingword_help,qformat_missingword],[pluginname_help,qformat_missingword]
MOV [missingword_link,qformat_missingword],[pluginname_link,qformat_missingword]
MOV [multianswer,qformat_multianswer],[pluginname,qformat_multianswer]
MOV [multianswer_help,qformat_multianswer],[pluginname_help,qformat_multianswer]
MOV [multianswer_link,qformat_multianswer],[pluginname_link,qformat_multianswer]
MOV [webct_help,qformat_webct],[pluginname_help,qformat_webct]
MOV [webct_link,qformat_webct],[pluginname_link,qformat_webct]
MOV [xhtml,qformat_xhtml],[pluginname,qformat_xhtml]
MOV [xhtml_help,qformat_xhtml],[pluginname_help,qformat_xhtml]
MOV [xhtml_link,qformat_xhtml],[pluginname_link,qformat_xhtml]
MOV [xml_help,qformat_xml],[pluginname_help,qformat_xml]
MOV [xml_link,qformat_xml],[pluginname_link,qformat_xml]
AMOS END
2011-11-10 19:12:28 +00:00
Tim Hunt
0519420f59
MDL-28349 error when GIFT-importing essay questions.
2011-08-15 16:17:16 +01:00
Tim Hunt
3c78184552
MDL-27974 problems with gift question import/export.
...
Double-escapeing in match export and not initialising combined feedback on import.
Also remove a lot of redundant breaks.
2011-06-22 15:26:34 +01:00
Tim Hunt
9c197f4445
MDL-20636 Fix some more codechecker issues.
2011-05-14 22:53:25 +01:00
Tim Hunt
5d2465c3f4
MDL-20636 numerical qtype: assorted changes
...
1. database upgrade to merge instructions into the questiontext field,
and remove the UNITDISPLAY option.
2. Changes to the validation in deferred feedback mode, so students
are warned about incomplete answers.
3. Using this to wark students if they enter an answer that is not
recognised as a number.
2011-04-28 20:06:47 +01:00
Tim Hunt
c7df5006b9
MDL-20636 Add lots of missing public/protected/private.
2011-03-23 16:22:25 +00:00
Tim Hunt
e2661fa8bc
MDL-20636 Fix GIFT unit test
2011-03-02 17:47:12 +00:00
Tim Hunt
e2cba246b7
MDL-20636 Merge vle/master into ouqe2
...
Conflicts:
mod/quiz/locallib.php
mod/quiz/report/overview/overview_table.php
mod/quiz/report/overview/report.php
mod/quiz/report/responses/report.php
question/type/random/questiontype.php
2011-03-02 17:34:18 +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
d3603157bf
MDL-20636 Add @package and GPL boiler-plate to files in /question.
2011-02-22 19:59:12 +00:00
Tim Hunt
5ec3e4a8eb
MDL-26365 New GIFT unit test.
2011-02-11 10:15:26 +00:00
Tim Hunt
74c479f212
MDL-20636 Merge branch 'master' into qe2_wip
...
Conflicts:
lib/questionlib.php
question/type/calculated/lang/en/qtype_calculated.php
question/type/questiontype.php
2011-02-03 11:18:40 +00:00
Tim Hunt
2c00fa161e
qformat_gift MDL-26059 fails to import truefalse questions with answer true.
2011-01-18 21:38:34 +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
b80d424c50
question export MDL-25324 Better file names for question exports.
2010-11-19 11:02:28 +00:00
Tim Hunt
5b744492a6
gift import/export MDL-25088 another attempt at fixing it, this time with unit tests.
2010-11-19 10:27:29 +00:00
Tim Hunt
13bb604ed5
question export MDL-25088 this is the first part. I think question export is now working for all types.
...
Import to follow soon.
2010-11-12 12:06:48 +00:00
Helen Foster
ca387bc1c4
MDL-21695 adding help and link strings
2010-05-15 17:08:07 +00:00
David Mudrak
30c8dd34f7
MDL-15252 Re-committing all English strings exported from AMOS
...
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.
The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.
Live long and prosper.
2010-04-10 14:01:45 +00:00
Petr Skoda
3a915b0667
MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs
2010-04-10 07:24:56 +00:00
David Mudrak
9d68aee786
MDL-21694 Moving question formats strings
2010-03-29 22:20:53 +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
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
tjhunt
c32f2e5c64
gift import: MDL-18390 better way to get the question type name.
2009-03-12 06:00:55 +00:00
thepurpleblob
f040135da5
MDL-18390 - now correctly looks up name of questiontype from language pack
...
Merged from STABLE19
2009-03-11 13:16:54 +00:00
thepurpleblob
c05878500b
MDL-18390:
...
Correctly report unhandled question types and get string from language pack.
2009-03-03 15:36:17 +00:00
skodak
294ce9870f
MDL-15189 magic quotes finally removed
2008-06-09 16:53:30 +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
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
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