Eloy Lafuente (stronk7)
bde5c82a20
Merge branch 'MDL-28686' of git://github.com/bostelm/moodle
2011-09-27 00:45:45 +02:00
Tim Hunt
d47d12d0d4
MDL-28679 question response history displays states incorrectly.
2011-09-16 16:05:12 +01:00
Sam Hemelryk
d609d96261
MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects
2011-09-06 15:39:00 +12:00
Henning Bostelmann
987e0e915c
MDL-28686 QE2 upgrade: recognize manually graded, deleted questions
2011-08-26 14:38:50 +01:00
Eloy Lafuente (stronk7)
d12d4d59a6
MDL-28684 QE2 upgrade: whitespace fix
2011-08-23 22:52:16 +02:00
Henning Bostelmann
fbf51a480a
MDL-28684 QE2 upgrade: recognize empty answer in multichoice questions
2011-08-19 10:33:35 +01:00
Tim Hunt
25d9a6a664
MDL-28653 question output. Add a class to the main div based on question state.
...
This makes it possible themes do cool things. For example change more of the display depending on whether the answer was correct or not.
2011-08-09 11:31:37 +01:00
Tim Hunt
22c97c6446
MDL-28471 Further tweaks to the question flag code.
2011-07-26 17:43:55 +01:00
Wale Olujide
474ee9389a
MDL-28471 make the question flag smaller, and give it a label.
2011-07-26 16:38:07 +01:00
Tim Hunt
aa5257ce7e
MDL-28103 one more problem.
2011-07-01 21:17:06 +01:00
Tim Hunt
1645ad22d8
MDL-28103 code to deal with missing question_attempts was buggy.
2011-07-01 21:07:49 +01:00
Tim Hunt
dfcbecd487
MDL-28103 when handling questions that have been deleted from the question bank, find the right updater class.
2011-07-01 17:13:47 +01: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
69384c1939
MDL-28127 incorrect lang string placeholder in question engine upgrade.
2011-06-30 15:20:42 +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)
4c15bde8f1
Merge branch 'MDL-27948' of git://github.com/timhunt/moodle
2011-06-23 01:14:19 +02:00
Tim Hunt
da72991636
MDL-27979 Should be an edit link for each question when previewing or reviewing a quiz.
2011-06-22 21:07:40 +01:00
Tim Hunt
35d5f1c28d
MDL-27948 The question engine should use recordsets to load attempt data
...
This should be good for performance (memory usage). It also avoids having to construct a meaningless, unique, first column, which is a pain on MyQSL.
2011-06-22 18:53:15 +01:00
Eloy Lafuente (stronk7)
faf1f957ac
Merge branch 'MDL-27490' of git://github.com/timhunt/moodle
2011-06-17 17:24:51 +02:00
Tim Hunt
fde4560dae
MDL-27490 Implement a manage question behaviours admin page
...
While doing this, I found various bugs in the manages question types admin page, and so fixed them, and updated the code
there to use $OUTPUT and html_writer.
AMOS BEGIN
MOV [cannotdeletemissingqtype,admin],[cannotdeletemissingqtype,question]
MOV [cannotdeleteqtypeinuse,admin],[cannotdeleteqtypeinuse,question]
MOV [cannotdeleteqtypeneeded,admin],[cannotdeleteqtypeneeded,question]
MOV [deleteqtypeareyousure,admin],[deleteqtypeareyousure,question]
MOV [deleteqtypeareyousuremessage,admin],[deleteqtypeareyousuremessage,question]
MOV [deletingqtype,admin],[deletingqtype,question]
MOV [numquestions,admin],[numquestions,question]
MOV [numquestionsandhidden,admin],[numquestionsandhidden,question]
MOV [qtypedeletefiles,admin],[qtypedeletefiles,question]
MOV [uninstallqtype,admin],[uninstallqtype,question]
AMOS END
2011-06-17 16:21:32 +01:00
Eloy Lafuente (stronk7)
5df6b3c87e
Merge branch 'MDL-27877' of git://github.com/timhunt/moodle
2011-06-17 15:32:10 +02:00
Tim Hunt
5f79a9bcb6
MDL-27898 fix question/engine/simpletest/testdatalib.php unit tests.
...
Now that MDL-27897 is fixed.
2011-06-17 11:28:05 +01:00
Tim Hunt
08c458d10f
MDL-27877 question engine progress bars not working.
2011-06-16 18:55:10 +01: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
Tim Hunt
3b049b7626
MDL-27747 question engine stupid typo in DB query broke regrading. #472
2011-06-07 16:22:10 +01:00
Tim Hunt
97cdc1de72
MDL-27747 quiz summary, add a CSS class to the table rows based on question state.
...
The standard themes do not use this for anything, but it makes it easier for themers to do cool stuff.
Also improve the API for getting the question state class.
2011-06-07 15:11:04 +01:00
Tim Hunt
af2f98ee39
MDL-27747 Imporove API for getting the standard fraction choices.
...
This includes moving the None option to the top, which is slightly better for usability.
2011-06-07 13:53:29 +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
Tim Hunt
1027301215
MDL-20636 Implement the ability to only upgrade some of the quiz attempts during the main upgrade.
2011-05-27 19:44:53 +01: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
c014b989ba
MDL-27649 Convert the calculated question types to use the new variants mechanism.
2011-05-26 21:53:47 +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
61e2c3fb3f
MDL-20636 fix question flag icons on the review page.
2011-05-26 19:27:38 +01:00
Tim Hunt
ab50232b7e
MDL-27413 start conversion of the multianswer qtype to the new question engine.
2011-05-23 16:45:12 +01:00
Tim Hunt
667cdde361
MDL-20636 Implement upgrade of calculated* question type attempts.
2011-05-20 18:22:35 +01:00
Tim Hunt
ffe4d23abd
MDL-20636 make question upgrade more robust for incompatible question types.
2011-05-19 20:27:09 +01:00
Tim Hunt
e35ba43c91
MDL-20636 make syncronised datasets work for calculated* questions.
2011-05-19 19:06:07 +01:00
Tim Hunt
efe3e87b61
MDL-27411 upgrade the calculatedsimple qtype to the new question engine.
2011-05-19 12:20:49 +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
bee82469d4
MDL-27408 Database upgrade for adaptive mode.
...
Could really do with more unit tests.
2011-05-13 16:55:14 +01:00
Tim Hunt
c468ce5922
MDL-20636 Fix upgrade of numerical questions.
2011-05-13 11:04:23 +01:00
Tim Hunt
39759ac468
MDL-27408 fix a few minor bugs with the upgrade from 2.0.
...
More testing, and adaptive mode, still to come.
2011-05-12 21:03:24 +01:00
Tim Hunt
bb28e3bc5e
MDL-27408 Moved the question engine install/upgrade code into the proper place.
...
I have tested upgrade from the previous development version, and a clean install. Upgrade from 2.0 still needs more work.
2011-05-12 18:58:50 +01:00
Tim Hunt
dcd03928ab
MDL-20636 split question/engine/lib.php into several smaller files.
2011-05-12 10:28:09 +01:00
Tim Hunt
a2ac234956
MDL-20636 Merge remote-tracking branch 'moodle/master' into upgrade
...
Conflicts:
lib/filestorage/file_storage.php
mod/quiz/attemptlib.php
mod/quiz/lib.php
mod/quiz/mod_form.php
mod/quiz/report/overview/overview_table.php
mod/quiz/report/overview/report.php
mod/quiz/report/responses/report.php
mod/quiz/report/responses/responses_table.php
mod/quiz/report/statistics/db/install.xml
mod/quiz/report/statistics/qstats.php
mod/quiz/report/statistics/report.php
mod/quiz/report/statistics/statistics_question_table.php
mod/quiz/report/statistics/statistics_table.php
mod/quiz/report/statistics/version.php
mod/quiz/review.php
mod/quiz/reviewquestion.php
mod/quiz/startattempt.php
mod/quiz/styles.css
mod/quiz/view.php
question/type/essay/questiontype.php
question/type/match/backup/moodle2/backup_qtype_match_plugin.class.php
question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php
question/type/numerical/display.html
question/type/numerical/questiontype.php
question/type/questiontype.php
question/type/random/questiontype.php
question/type/shortanswer/questiontype.php
theme/base/style/question.css
2011-05-11 20:29:49 +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
cd300cf34c
MDL-20636 Initial pass at converting this code to Moodle 2.0 style.
2011-05-11 15:32:26 +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