Tim Hunt
ccba5b8805
MDL-43749 normalise quiz database structure.
...
The sequence of questions that made up a quiz used to be stored as a
comma-separated list in quiz.questions. Now the same information is
stored in the rows in the quiz_slots table. This is not just 'better' in
a database design sense, but it allows for the future changes we will
need as we enhance the quiz in the MDL-40987 epic.
Having changed the database structure, all the rest of the code needs to
be changed to account for it, and that is done here.
Note that there are not many unit tests for the changed bit. That is
because as part of MDL-40987 we will be changing the code further, and
we will add unit tests then.
2014-03-02 10:00:40 +01:00
James Pratt
99caa248a8
MDL-43478 quiz responses report : display last / first / all tries
...
when using multiple try question behaviour
2014-02-23 13:39:08 +07:00
Tim Hunt
a4768fe290
MDL-38412 fix quiz reports group mode weirdness.
...
Moodle currently selected group uses the session. This can cause weird
effects when you have two tabs open. This is particularly weird in the
quiz reports, where some actions like delete attempt are checked against
the currently selected group.
The solution is to put the currently selected group into the URL for all
actions like delete/regrade attempt, regrade all attempts, download and
sort table.
2013-03-15 11:58:06 +00:00
Tim Hunt
a558acf93f
MDL-32739 quiz reports: process_actions broken. Regression from MDL-3030
2012-05-03 12:02:29 +01:00
Tim Hunt
863872e3e7
MDL-3030 quiz overdue handling: show the attempt state in the reports.
2012-04-27 15:07:33 +01:00
Tim Hunt
c547514a9e
MDL-3030 quiz overdue handling: show attempt state in the reports.
2012-04-27 15:07:31 +01:00
Tim Hunt
c0270961a8
MDL-32322 more changes to make the code more similar before refactoring.
2012-04-20 10:07:28 +01:00
Tim Hunt
361cf27d7f
MDL-32322 quiz reports: refactor processing actions.
2012-04-20 10:07:26 +01:00
Tim Hunt
e97d60adce
MDL-32322 quiz reports: pass options object -> table, not separate args.
2012-04-20 10:07:25 +01:00
Tim Hunt
9e67e357eb
MDL-32322 quiz_reports: move some more options into the options class.
2012-04-20 10:07:23 +01:00
Tim Hunt
ac4d91575a
MDL-32322 quiz reports: name improvement attempt_report -> attempts_report.
2012-04-20 10:07:22 +01:00
Tim Hunt
dcd65f1b4f
MDL-32322 quiz reports: extract a mod_quiz_attempt_report_options class.
...
More clean-ups are possible in the reports after this, but I am committing now, having got the code back to a working state.
2012-04-20 10:07:21 +01:00
Tim Hunt
303aa3b8d0
MDL-32322 quiz reports: killing more duplication.
2012-04-20 10:07:19 +01:00
Tim Hunt
5bf8a1695d
MDL-32322 quiz reports: defines -> class constants.
2012-04-20 10:07:17 +01:00
Tim Hunt
4747c788c0
MDL-32322 quiz reports: edit to increase duplication, before refactoring.
2012-04-20 10:07:14 +01:00
Tim Hunt
768a758854
MDL-32322 quiz reports: Appease the great god codechecker.
2012-04-20 10:07:12 +01:00
Tim Hunt
8d76124c5b
MDL-32322 quiz reports: fix up PHP doc comments.
2012-04-20 10:07:09 +01:00
Tim Hunt
6b4e2d76a3
MDL-32322 quiz reports: rename classes, and fix one strict syntax.
2012-04-20 10:07:08 +01:00
Tim Hunt
26aded5581
MDL-32322 quiz reports: get_context_instance -> new classes.
...
Also, eliminate unnecessary use of global $COURSE.
2012-04-20 10:07:05 +01:00
Tim Hunt
59ea81767e
MDL-32300 quiz reports: proper frankenstyle prefixes on class names.
2012-04-10 10:04:55 +08:00
Tim Hunt
7ddfd168ac
MDL-30704 Quiz grades report shows inconsistent averages.
...
Previously, for the overall grade, we averaged the final marks for each
student; while for the individual question grades, we averaged all
grades.
The report now works consistently on the principle that the averages
should include exactly what is currenlty being shown in the report. This
is more logical, and so should be easier for users to understand.
If you want to see the averages that are currently shown (e.g. just the
average of each student's highers grade) then the report options let you
do that.
2011-12-19 14:59:36 +00:00
Tim Hunt
e4977ba5c6
MDL-27183 quiz reports: don't show data to users not in any group
...
if the quiz is set to separate groups, and the user does not have access all groups.
2011-12-09 18:04:22 +00:00
Tim Hunt
554de0d73a
MDL-27314 quiz reports: fix JS confirmation before deleting attempts.
2011-12-09 02:33:47 +01:00
Tim Hunt
0eafc98852
MDL-29627 fix code-checker issues throughout the quiz code.
2011-10-13 11:13:16 +01:00
Sam Hemelryk
8ebbb06adf
MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently
2011-09-08 09:30:27 +12:00
Petr Skoda
18bd7573d6
MDL-26796 convert array parameter cleaning to new functions
2011-08-18 08:40:33 +02:00
Tim Hunt
25a03faaca
MDL-20636 fix many code-checker issues in mod/quiz.
2011-05-12 00:30:25 +01:00
Tim Hunt
55ca80edde
MDL-20636 Fix lots of problems found by the new improved codechecker.
2011-04-04 20:11:29 +01:00
Tim Hunt
c7df5006b9
MDL-20636 Add lots of missing public/protected/private.
2011-03-23 16:22:25 +00:00
Tim Hunt
3c6185e979
MDL-20636 Move restart preview button into the quiz nav block & remove unnecessary titles.
...
Also, remove automatic redirects to the quiz edit page. Show a message and a button instead.
2011-02-25 12:12:09 +00:00
Tim Hunt
2daffca554
MDL-20636 Fix 30 TODOs
2011-02-24 17:47:51 +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
9b40c540ee
MDL-20636 Responses report mostly working.
2011-02-14 17:57:47 +00:00
Tim Hunt
7ee80cab53
MDL-20636 Manual comment popup comment.php now works.
2011-02-09 20:29:59 +00:00
Tim Hunt
6577832390
quiz reports MDL-25206 Make it more obvious how to review the students responses.
2010-11-15 16:41:42 +00:00
Eloy Lafuente
8ad6765887
NOBUG quiz - overview & responses reports fixes
2010-09-17 01:07:17 +00:00
Tim Hunt
414e727676
quiz reports MDL-23161 notify(get_string('nostudentsyet')) breaking downloads.
2010-08-11 18:34:42 +00:00
Tim Hunt
f6c7f15883
quiz reports MDL-17388 tweak layout so more useful stuff fits on the first page.
...
In particular, I think you should be able to see at least the top of the table or results without scrolling, if your monitor is not too small.
2010-08-04 18:45:05 +00:00
Tim Hunt
24f17d7588
quiz responses report MDL-23377 responses report needs to be fixed in HEAD as well as overview.
2010-08-04 15:05:31 +00:00
Tim Hunt
a49cb927fd
NOBUG more consistent use of URLs for the quiz reports.
2010-07-28 15:08:34 +00:00
Tim Hunt
cd0a2ed882
quiz reports MDL-22847 Cannot delete quiz attempts when a group is selected.
2010-06-23 20:09:09 +00:00
Rossiani Wijaya
f484c0ad08
MDL-22257 - Change the fields value (3rd parameter) from 'id' to 'u.id'
2010-05-28 07:24:01 +00:00
Tim Hunt
37b5b69f2e
quiz reports MDL-22257: was loading the complete user record, when it only wanted userid.
...
On a coures with 16000 users, that is a very bad idea ;-)
2010-04-30 13:15:42 +00:00
Tim Hunt
db77f4103c
quiz reports: MDL-21688 Add missing sesskey checks.
2010-04-07 11:26:02 +00:00
Petr Skoda
b9bc201962
MDL-21233 escaped parameter is far more importatnt than the overrideparams in out() method - especially all JS urls should be converted to out(false); also it is possible to create new url with overrided parameters in constructor which might be actually work around the double encoding problems in the url (we should never use the out() in moodle_url constructor itself!)
2010-01-17 09:50:55 +00:00
Petr Skoda
eb7880654f
MDL-21233 finally removed the omitquerystring parameters from the out method because: 1/ the least used parameter should nto be first, 2/ it is colliding with the other two paramters, now we have separate funtion for that instead
2010-01-17 09:37:30 +00:00
Petr Skoda
a685593466
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
2010-01-16 15:39:56 +00:00
Petr Skoda
78946b9bdb
MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks
2009-12-16 18:00:58 +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