weekly release 2.6dev
[moodle.git] / question / behaviour / upgrade.txt
CommitLineData
75a31c90
TH
1This files describes API changes for question behaviour plugins.
2
06616f4b
TH
3=== 2.6 ===
4
51) Legacy required_question_definition_type no longer supported. (See 2.2 point 2) below.)
6
054124a3
DP
7=== 2.3 ===
8
06616f4b
TH
91) This plugin type now supports cron in the standard way. If required, Create a
10 lib.php file containing
054124a3
DP
11function qbehaviour_mypluginname_cron() {};
12
75a31c90
TH
13=== 2.2 ===
14
3d17cd3f 151) The old
75a31c90
TH
16 public static function get_required_behaviours()
17method is no more. Instead use the ->dependencies facility in version.php. E.g.
18$plugin->dependencies = array(
19 'qbehaviour_immediatefeedback' => 2011102700,
20 'qbehaviour_deferredcbm' => 2011102700
21);
3d17cd3f
TH
22
232) The old required_question_definition_type method has been replaced by a new
24is_compatible_question method. You should change your behaviour to override the
25new method, not the old one. This change has been implemented in a
26backwards-compatible way, so behaviours will not break.