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