weekly release 2.8dev
[moodle.git] / mod / quiz / upgrade.txt
CommitLineData
d869de66
TH
1This files describes API changes in the quiz code.
2
b4cfcf5e
MN
3=== 2.7.1 ===
4
5* The function quiz_fire_attempt_started_event has been removed. This function
6 should not have been used outside the quiz, but if you were using it, you should
7 trigger the event outside this function. Note that the appropriate start event is
8 fired automatically by the quiz_attempt_save_started function.
9
dc4a3ea1
TH
10=== 2.7 ===
11
ccba5b88
TH
12* The old quiz.questions database column (comma-separated list of question ids)
13 is gone, and instead the quiz_question_instances table has been renamed to
14 to quiz_slots. Some of the columns of that table have been renamed to match
15 the coding guidelines. Specifically:
dc4a3ea1
TH
16 quiz -> quizid
17 question -> questionid
18 grade -> maxmark
ccba5b88
TH
19 also there are two new columns:
20 slot - numbers the questions in the quiz in order, as on the edit quiz page.
21 page - new way to determine which question is on which page.
22 naturally, other parts of the code and APIs have been updated to reflect that
23 change.
24
25* The following functions, which were part of the internal workings of the quiz,
26 have been removed.
27 quiz_get_slot_for_question
28 quiz_number_of_questions_in_quiz
29 quiz_repaginate (there is now a quiz_repaginate_questions with a different API).
30 quiz_add_page_break_at (see quiz_add_page_break_after_slot)
31 quiz_add_page_break_after (see quiz_add_page_break_after_slot)
32 quiz_number_of_pages
33 quiz_remove_question (see quiz_remove_slot)
34 quiz_update_question_instance (see quiz_update_slot_maxmark)
35
36* The following internal functions have had their API changed.
37 quiz_delete_empty_page: has had its arguments changed to $quiz and $pagenumber.
38 quiz_has_question_use: now takes $quiz and $slot, not $questionid.
d869de66 39
ad8f0117 40=== 2.6 ===
ccba5b88 41
c544ee92 42* As part of improving the page usability and accessibility, we updated the
43 heading levels for quiz module so it has a proper nesting. (MDL-41615)
ad8f0117
TH
44
45* mod_quiz_renderer::view_best_score has been removed. (It did not do what the
46 name suggested anyway.)
47
48
d869de66
TH
49=== 2.4 ===
50
51* mod_quiz_renderer::finish_review_link now requires $attemptobj to be passed in
52 instead of a moodle_url.
53
54
55=== Earlier changes ===
56
57* Were not documented in this way. Sorry.