Mark Nelson
b4cfcf5e53
MDL-45803 mod_quiz: removed the quiz_fire_attempt_started function
...
Also commented in mod/quiz/upgrade.txt to inform developers.
2014-06-11 13:53:59 -07:00
Mark Nelson
546a2c95f4
MDL-45803 mod_quiz: added attempt snapshot for the attempt and preview started events
2014-06-09 15:59:26 -07:00
Tim Hunt
3180508949
MDL-45273 quiz: Fix codechecker issues.
2014-04-29 11:57:01 +01:00
Tim Hunt
9ec7a71661
MDL-45273 remove the need for quiz settings.php to include locallib.php.
2014-04-29 11:16:44 +01:00
Mark Nelson
a97a7585ff
MDL-45145 mod_quiz: ensure quiz cmid is set before triggering the 'attempt_deleted' event
2014-04-17 18:44:58 -07:00
Mark Nelson
a2caf56dff
MDL-40063 mod_quiz: replaced 'attempt' add_to_log call with an event
2014-04-10 20:41:56 -07:00
Mark Nelson
45e1e3bd76
MDL-40063 mod_quiz: replaced 'preview' add_to_log call with an event
2014-04-10 20:41:54 -07:00
Mark Nelson
7dad3d95fd
MDL-40063 mod_quiz: replaced 'delete attempt' add_to_log call with an event
2014-04-10 20:39:15 -07:00
Dan Poltawski
a59b2e18d8
Merge branch '44180-27' of git://github.com/samhemelryk/moodle
2014-03-05 12:47:17 +08:00
Dan Poltawski
f504e63daa
Merge branch 'wip-MDL-44321-master' of git://github.com/marinaglancy/moodle
2014-03-03 13:50:18 +08:00
Sam Hemelryk
01773a6d00
MDL-44180 mod_quiz: unified @package use
2014-03-03 08:37:06 +13:00
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
Marina Glancy
cd5be9a504
MDL-44321 events: make sure the full object is passed to add_record_snapshot()
2014-02-28 16:37:36 +08:00
Matt Petro
74b3c4e58c
MDL-44029 mod_quiz: Fixing group deleted handler so it does not remove user overrides.
2014-02-06 13:32:04 -05:00
Tim Hunt
e101ec9fd7
MDL-43874 quiz, teacher comments should respect display options.
...
Whether the comments on manually graded questions were visible to
students should have been controlled by the 'Specific feedback' Review
option in the quiz settings. However, the quiz was not setting
$displayoptions->manualcomment, so it did not work.
2014-01-27 12:01:32 +00:00
Tim Hunt
dc4a3ea1ee
MDL-43670 quiz_question_instances to match coding guidelines.
...
Some columns needed to be renamed:
* quiz -> quizid
* question -> questionid
* grade -> maxmark
Then all the places that refer to those needed to be fixed.
2014-01-17 10:56:07 +00:00
Damyon Wiese
34b67813ec
Merge branch 'MDL-42598' of git://github.com/timhunt/moodle
2013-11-13 13:43:52 +08:00
Rajesh Taneja
5540b2caf3
MDL-41849 Quiz: Quiz send mail from noreply user
...
Mails should be send by noreply user and not admin user
2013-11-04 16:29:55 +08:00
Tim Hunt
d7db097db1
MDL-42598 quiz variant randomisation not random enough.
...
A student would get the same question variants (for example for a
calculated question) on their first attempt at both copies of a
duplicated quiz.
2013-10-29 16:19:24 +00:00
Ankit Agarwal
b2b50d92f6
MDL-42219 quiz: Fix alternate name warnings in quiz
...
Fix the alternate name warning which is generated when submitting an attempt for a quiz
2013-10-23 14:36:00 +08:00
Frederic Massart
d900f1dc05
MDL-41039 mod_quiz: Replace events_trigger to new events
2013-09-26 16:43:03 +08:00
Eloy Lafuente (stronk7)
18ccaca2e2
Merge branch 'MDL-41726-master-2nd' of git://github.com/FMCorz/moodle
...
Conflicts:
lang/en/moodle.php
2013-09-24 23:13:50 +02:00
Frederic Massart
11b0c8e0e6
MDL-41726 mod_quiz: Replace handlers with observers for group events
...
This also implements a filtering of the events to be handled when
a course reset has been started.
2013-09-20 12:25:38 +08:00
Jamie Pratt
707825265d
MDL-41540 remove use of $USER
...
by quiz_create_attempt internally.
2013-09-10 14:36:30 +07:00
Jamie Pratt
c2b051c7aa
MDL-40542 need to be able to select variant
...
in unit tests
2013-07-23 15:11:56 +08:00
Jamie Pratt
c2f2e7f008
MDL-40541 need to be able to select random q
...
in unit tests
2013-07-23 15:08:32 +08:00
Jamie Pratt
1cd7c92ece
MDL-40074 refactoring of quiz code
...
to reuse code fro quiz attempt walk through
2013-07-14 16:28:39 +07:00
Jayesh Anandani
1ecd3c304d
MDL-39155 Quiz: Provide 3 image-size options on the settings page
2013-05-10 08:38:13 +05:30
Tim Hunt
805e32f74e
MDL-37577 quiz overdue handling: optimise database query
...
This is the standard trick of adding a redundant WHERE clause to a
subquery to help the database realise that it does not have to inspect
so many rows.
2013-01-21 13:21:38 +00:00
Tim Hunt
1744033ccb
MDL-37098 quiz: event handler fails deleting group with no overrides
...
This was a regression from MDL-35717.
2012-12-11 09:06:19 +00:00
Matt Petro
8e771aed93
MDL-35717 quiz: fix overdue attempt processing
2012-11-16 21:32:09 -05:00
Tim Hunt
b3c18b8621
MDL-35744 quiz: fix review options for Never submitted attempts
2012-10-02 15:51:45 +01:00
Tim Hunt
aebbfb7bf9
MDL-30885 quiz: use formchangechecker during quiz attempts.
...
To avoid the possiblity of dataloss if a student tries to navigate away
having changed some answers.
2012-09-27 14:13:24 +01:00
Ankit Agarwal
c492a78ee2
MDL-34468 quiz: Replace all instances of get_context_instance() with respective context_XXXX class in mod/quiz
2012-07-24 17:08:05 +08:00
Tim Hunt
62a3bfb37e
MDL-32633 quiz editing: recreate grade item when max changed from 0
2012-05-11 20:23:37 +01:00
Tim Hunt
9e83f3d11d
MDL-32788 quiz: clean up codechecker issues before the 2.3 release.
2012-05-04 15:12:23 +01:00
Tim Hunt
070511062a
MDL-32757 / MDL-3030 quiz: SQL typo breaks quiz editing.
2012-05-03 19:45:18 +01: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
59d14f31bd
Improve the wording of overdue messages. Thanks Phil.
2012-04-30 13:46:02 +01:00
Tim Hunt
b640e6815a
MDL-3030 quiz overdue handling: allow access to summary during grace period
2012-04-27 15:07:43 +01:00
Tim Hunt
be18f589e2
MDL-3030 quiz overdue handling: test state, not timefinish where applicable.
2012-04-27 15:07:40 +01:00
Tim Hunt
fd0537ce36
MDL-3030 quiz overdue handling: catch the overdue event and send message.
2012-04-27 15:07:37 +01:00
Tim Hunt
34b7d8383d
MDL-3030 quiz overdue handling: trigger automatic state transitions.
...
Here, we catch all the places where a student might be accessing their
own attempts, and make sure any automatic state transitions that
should happen, do happen, before the student sees the attempt.
The places where we need to check this are view.php, startattempt.php
and processattempt.php.
We do not really need to check attempt.php or summary.php, because if
the student is on one of those pages, the JavaScript timer will
auto-submit when time expires, taking them to processattempt.php,
which will do the acutal work.
We intentionally do not trigger state transition when a teacher is
looking at a student's quiz attemp. We will trigger state transitions
on cron, but that is still to do.
Also, the body of the process_... methods still needs to be written.
2012-04-27 15:07:35 +01:00
Tim Hunt
87427d9c7c
MDL-3030 quiz overdue handling: new settings on quiz form and admin.
2012-04-27 15:07:23 +01:00
Tim Hunt
ba3fedfb49
MDL-31702 quiz: clarify error message that has been confusing people.
2012-03-09 11:28:20 +00:00
Tim Hunt
cef18275b3
MDL-31407 quiz: review all uses of global $USER
2012-02-02 18:37:08 +00:00
Tim Hunt
b7ab57f3af
MDL-30033 quiz overall feedback not show for attempts with a -ve grade
...
This can happen, for example, if a student does really badly on a CBM quiz.
2012-01-20 17:12:43 +00:00
Eloy Lafuente (stronk7)
2176ed55e9
Merge branch 'MDL-31080' of git://github.com/timhunt/moodle
2012-01-17 01:58:51 +01:00
Sam Hemelryk
d36b5d1177
Merge branch 'MDL-31095' of git://github.com/timhunt/moodle
2012-01-16 16:58:32 +08:00
Dan Poltawski
a530d4a93b
MDL-29091 quiz - switch to use moodle_url::out_as_local_url
2012-01-13 10:16:52 +00:00