MDL-36933 Bump everything to 2012112900
[moodle.git] / question / behaviour / upgrade.txt
CommitLineData
75a31c90
TH
1This files describes API changes for question behaviour plugins.
2
3=== 2.2 ===
4
3d17cd3f 51) The old
75a31c90
TH
6 public static function get_required_behaviours()
7method is no more. Instead use the ->dependencies facility in version.php. E.g.
8$plugin->dependencies = array(
9 'qbehaviour_immediatefeedback' => 2011102700,
10 'qbehaviour_deferredcbm' => 2011102700
11);
3d17cd3f
TH
12
132) The old required_question_definition_type method has been replaced by a new
14is_compatible_question method. You should change your behaviour to override the
15new method, not the old one. This change has been implemented in a
16backwards-compatible way, so behaviours will not break.
c2f5e2ab
TH
17
18
19=== 2.3 ===
20
21* This plugin type now supports cron in the standard way. If required, Create a
22 lib.php file containing
23function qbehaviour_mypluginname_cron() {};