Tim Hunt
74969d8866
MDL-29571 questions: improve class=accesshide screen-reader hints.
...
This changes the hint that comes before the question text. There are
unit tests to verify the new behaviour.
(amended to fix comments)
2011-10-04 11:53:07 +02:00
Tim Hunt
ceb4d2ed0b
MDL-28128 finish the fix for MDL-28035.
...
There was one place where I had only fixed the backup code to work-around bad data from Moodle 2.0. I needed to make the equivalent change in the upgrade code.
The bad data is that the seq_number fields can be wrong (not unique). Se already have data ordered by (seq_number, id) and the array keys of the array we are building are not used for anything, so this fix deals with the problem.
2011-06-30 16:00:15 +01:00
Tim Hunt
0366ef262a
MDL-28035 problems with upgrade/restore of ataptive quizzes from 2.0
...
There were two main problems:
1. The unit tests for upgrading adaptive quiz attempts had slighly the
wrong $expectedqa, and so matching that the upgrade was doing the wrong
thing in certain situations. The main issue was that it was setting
-_try = 1 on the first step, which broke the penalty calculation when
the quiz was regraded. There were also some other subtleties with
incrementing -_try that were not right before.
2. It was possible in 2.0 and earlier for two question_states to get the
same seq_number, and restoring 2.0 backups was rashly assuming that that
was unique.
2011-06-27 17:10:02 +01:00
Eloy Lafuente (stronk7)
a16e137f21
Merge branch 'MDL-27639_wip' of git://github.com/timhunt/moodle
2011-06-15 01:30:59 +02:00
Tim Hunt
18ab06bac5
MDL-27639 restore of attempt data from 2.0 - first attempt.
...
This is now at the stage where it mostly appears to work, at lease on
one backup file.
2011-06-14 12:11:19 +01:00
David Mudrak
b61cf3ff8a
MDL-22414 Merge branch 'master' into backup-convert
...
Conflicts:
theme/base/style/core.css
2011-06-09 13:04:49 +02:00
Tim Hunt
4464734bb6
MDL-27747 qtype_truefalse, false feedback went missing whenre-editing a question. #465
2011-06-07 14:38:05 +01:00
Eloy Lafuente (stronk7)
1db15c2718
MDL-20636 changes to core & questions upgrade code
...
Changes include:
- fixing versions and requires to current weekly (2011060313)
- fix essay wrong upgrade step. Review & test!
- fix numerical missing savepoint.
2011-06-06 17:16:11 +01:00
Tim Hunt
4c5743343f
MDL-20636 make qe upgrade tests independent of html2text details.
...
Based on Eloy's change, but refactored to be slightly nicer.
2011-06-06 17:05:54 +01:00
Eloy Lafuente (stronk7)
36e91f1de1
MDL-20636 Whitespace fixes
2011-06-06 16:38:46 +01:00
David Mudrak
a4158f8d93
MDL-27626 Make sure that the <answers> structure is present before converting it
...
This corresponds the logic of question_backup_answers()
2011-06-03 18:54:57 +02:00
David Mudrak
2b129b4cb6
MDL-27626 truefalse question type conversion handler
2011-06-03 18:06:29 +02:00
Tim Hunt
a4c982917e
MDL-20636 truefalse qtype clean up other unit tests to use the new way of making test tf questions.
2011-05-27 14:43:28 +01:00
Tim Hunt
188e174457
MDL-20636 truefalse qtype was showing the false feedback even when no response was given. #386
2011-05-27 14:41:48 +01:00
Tim Hunt
1da821bbde
MDL-27649 support question variants as a first-class concept in the question engine.
2011-05-26 21:23:56 +01:00
Tim Hunt
e0736817f0
MDL-20636 fix some more coding style issues in the question code.
2011-05-20 18:50:41 +01:00
Tim Hunt
f580e0e4b0
MDL-20636 Fix some minor problems with the question unit tests.
2011-05-18 17:07:16 +01:00
Tim Hunt
afe24f850b
MDL-20636 Rename questiontype.php to questiontypebase.php. Also some conde-checker issues.
2011-05-17 16:46:57 +01:00
Tim Hunt
9c197f4445
MDL-20636 Fix some more codechecker issues.
2011-05-14 22:53:25 +01:00
Tim Hunt
d3bab68c78
MDL-27408 update all question and quiz plugin version.php files.
2011-05-12 23:18:47 +01:00
Tim Hunt
d04626e4cd
MDL-20636 Question engine upgrade unit tests for shortanswer, random and multichoice.
2011-05-11 17:19:12 +01:00
Tim Hunt
38d42fc476
MDL-27408 question engine upgrade, change to update the quiz settings in config_plugins.
...
Also start creating the unit tests for the upgrade.
2011-05-11 15:32:29 +01:00
Tim Hunt
0859ff6503
MDL-20636 Re-organise all the old upgrade code, before I start work on it for real.
2011-05-11 15:32:14 +01:00
Tim Hunt
c749527bec
MDL-20636 Finished backup and restore of attempt data. Yay
2011-05-05 21:26:25 +01:00
Tim Hunt
dcd69f8d97
MDL-20636 Fix codechecker issues in qtype_truefalse.
2011-04-08 05:08:24 +01:00
Tim Hunt
c7df5006b9
MDL-20636 Add lots of missing public/protected/private.
2011-03-23 16:22:25 +00:00
Tim Hunt
ff58648f8a
MDL-20636 Fix problem editing truefalse questions. #298
...
Also, fix a notice on the quiz editing form.
2011-03-21 12:42:54 +00:00
Tim Hunt
42e6506ebe
MDL-20636 Minor fixes to the truefalse and match editing forms.
2011-03-10 19:09:42 +00:00
Tim Hunt
22cebed503
MDL-20636 Review and fix the format parameter to all calls to format_text.
2011-02-24 20:18:16 +00:00
Tim Hunt
a18fda20c4
MDL-20636 Split question-type specific styles into the separate plugins.
2011-02-24 19:34:08 +00:00
Tim Hunt
ef31a28343
MDL-20636 Split question_definition::init_first_step into start_attempt and apply_attempt_state.
2011-02-24 19:12:42 +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
0ff4bd0877
MDL-20636 Fix new stdClass -> stdClass(), and trailing whitespace.
2011-02-21 18:10:19 +00:00
Tim Hunt
b04a4319d6
MDL-20636 Remove © from all PHPdoc comments, and tidy them up a bit.
2011-02-21 14:51:02 +00:00
Tim Hunt
6e34cd2924
MDL-20636 Rename the question type editing forms to start with qtype_...
2011-01-28 18:50:20 +00:00
Tim Hunt
ec3d4ef543
MDL-20636 Actually, passing to get_question summary is silly. Revert.
2011-01-13 18:36:03 +00:00
Tim Hunt
6d03299dec
MDL-20636 Conversion of the essay question type.
2011-01-13 18:36:00 +00:00
Tim Hunt
7a7197482d
MDL-20636 Fix if the use of the File API so images work in questions.
2011-01-13 18:35:57 +00:00
Tim Hunt
068b4594ba
MDL-20636 Conversion of the shortanswer question type to the new question engine.
...
This commit includes minor bug fixes elsewhere in the system.
2011-01-13 18:35:49 +00:00
Tim Hunt
c76145d3e4
MDL-20636 Previewing a truefalse question in deferred feedback mode now works.
2011-01-13 18:35:43 +00:00
Tim Hunt
2b7da64586
MDL-20636 It is now possible to save a truefalse question you have created.
...
This includes all the necessary DB upgrades.
Also all unit tests in question/type/simpletest and question/type/truefalse now pass.
2011-01-13 18:35:41 +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
94dbfb3a82
quiz editing MDL-24750 The Add random button should also let you add questions from an existing category.
...
Also includes a fix for MDL-24749 by Sam Hemelryk. Thanks Sam.
This commit also includes a certain amount of code cleaning up.
2010-11-22 09:52:42 +00:00
Tim Hunt
69988ed452
questions MDL-25104 and MDL-25088 fix question editing and import
...
Editing of some qtypes was broken since a previous commit by me earlier in the week.
Import of XML and GIFT should now work, but could use some more testing.
2010-11-12 17:11:34 +00:00
Tim Hunt
9203b70576
question deletion MDL-25173 when a question is deleted, all the associated files must be deleted.
2010-11-12 11:29:53 +00:00
Tim Hunt
5d548d3e0a
question bank MDL-24995 clean up a lot of deprecated code to do with moving questions around.
...
This should also fix MDL-25172, MDL-23021 and MDL-23073. In other words, moving questions between categories should now work.
2010-11-11 21:54:22 +00:00