1 |
efrain |
1 |
This files describes API changes for quiz access rule plugins.
|
|
|
2 |
|
|
|
3 |
Overview of this plugin type at http://docs.moodle.org/dev/Quiz_access_rules
|
|
|
4 |
|
|
|
5 |
=== 4.2 ===
|
|
|
6 |
|
|
|
7 |
* Note that class mod_quiz_preflight_check_form has been renamed to
|
|
|
8 |
mod_quiz\form\preflight_check_form.
|
|
|
9 |
* The base class quiz_access_rule_base has been moved to mod_quiz\local\access_rule_base.
|
|
|
10 |
Please:
|
|
|
11 |
1. update your class declaration to ... extends access_rule_base {
|
|
|
12 |
2. Add use mod_quiz\local\access_rule_base;
|
|
|
13 |
3. Remove require_once($CFG->dirroot . '/mod/quiz/accessrule/accessrulebase.php');
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
=== 2.8, 2.7.1, 2.6.4 and 2.5.7 ===
|
|
|
17 |
|
|
|
18 |
* New static method delete_settings for access rules, which is called when a
|
|
|
19 |
quiz is deleted.
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
=== 2.4 and 2.3.4 ===
|
|
|
23 |
|
|
|
24 |
* Replaced time_left() with new time_left_display() and end_time() functions.
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
=== 2.3 ===
|
|
|
28 |
|
|
|
29 |
* This plugin type now supports cron in the standard way. If required, Create a
|
|
|
30 |
lib.php file containing
|
|
|
31 |
function quizaccess_mypluginname_cron() {};
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
=== 2.2 ===
|
|
|
35 |
|
|
|
36 |
* This plugin type was new in Moodle 2.2!
|