1 This files describes API changes for question import/export format plugins.
5 * The new validate_file() method in question/format.php can be overwritten
6 to implement more expensive or detailed file integrity checks. It is called on imported files.
10 * Saving question category descriptions (info) is now supported in Moodle XML import/export format.
11 New xml-structure snippet for a question category:
12 <question type="category">
14 <text>${$contexttypename}$/{$category_path}</text>
16 <info format="{$format}">
17 <text>{$info_categorydescription}</text>
20 * The method importprocess() in question/format.php no longer accepts $category as a parameter.
21 If required in a plugin then please override this method.
25 * This plugin type now supports cron in the standard way. If required, Create a
26 lib.php file containing
27 function qformat_mypluginname_cron() {};
29 === 2.1.5 / 2.2.3 / 2.3 ===
31 * The readquestions method used to take a second argument $context. However, at
32 the point where this method was called, it was impossible to know what
33 context the quetsions were going to be saved into, so the value could be
34 wrong. Also, none of the standard question formats were using this argument,
35 so it was removed. See MDL-32220.
39 * The plugin name used to be defined in a string called the same thing as the
40 format, with assoicated help strings, for example:
42 $string['aiken'] = 'Aiken format';
43 $string['aiken_help'] = 'This is a simple format ...';
44 $string['aiken_link'] = 'qformat/aiken';
46 This needs to be changed to use the standard string name pluginname, as for
49 $string['pluginname'] = 'Aiken format';
50 $string['pluginname_help'] = 'This is a simple format ...';
51 $string['pluginname_link'] = 'qformat/aiken';