2011-11-02 17:13:11 +00:00
|
|
|
This files describes API changes for question behaviour plugins.
|
|
|
|
|
2012-11-30 11:41:01 +08:00
|
|
|
=== 2.3 ===
|
|
|
|
|
|
|
|
* This plugin type now supports cron in the standard way. If required, Create a
|
|
|
|
lib.php file containing
|
|
|
|
function qbehaviour_mypluginname_cron() {};
|
|
|
|
|
2011-11-02 17:13:11 +00:00
|
|
|
=== 2.2 ===
|
|
|
|
|
2011-11-16 11:07:35 +00:00
|
|
|
1) The old
|
2011-11-02 17:13:11 +00:00
|
|
|
public static function get_required_behaviours()
|
|
|
|
method is no more. Instead use the ->dependencies facility in version.php. E.g.
|
|
|
|
$plugin->dependencies = array(
|
|
|
|
'qbehaviour_immediatefeedback' => 2011102700,
|
|
|
|
'qbehaviour_deferredcbm' => 2011102700
|
|
|
|
);
|
2011-11-16 11:07:35 +00:00
|
|
|
|
|
|
|
2) The old required_question_definition_type method has been replaced by a new
|
|
|
|
is_compatible_question method. You should change your behaviour to override the
|
|
|
|
new method, not the old one. This change has been implemented in a
|
|
|
|
backwards-compatible way, so behaviours will not break.
|