1 |
efrain |
1 |
This files describes API changes for question import/export format plugins.
|
|
|
2 |
|
|
|
3 |
=== 4.0 ===
|
|
|
4 |
|
|
|
5 |
1) The major question bank changes should not affect import/export plugins.
|
|
|
6 |
The navigation changes may affect Behat tests. If you encounter this,
|
|
|
7 |
the best way to fix it is to use the new navigation steps in MDL-74130.
|
|
|
8 |
|
|
|
9 |
2) The new validate_file() method in question/format.php can be overwritten
|
|
|
10 |
to implement more expensive or detailed file integrity checks for question imports.
|
|
|
11 |
There is a simple way to do this if you just want to check that the file is valid UTF-8,
|
|
|
12 |
which you can see an example of in format_gift.
|
|
|
13 |
|
|
|
14 |
3) The ExamView question format has been completely removed.
|
|
|
15 |
(The last posts in http://forum.examview.com/index.php?
|
|
|
16 |
are from over 10 years ago and there are no moodle.org
|
|
|
17 |
discussions about Examview in the last 10 years.)
|
|
|
18 |
|
|
|
19 |
4) The WebCT question format has been completely removed (WebCT was acquired by Blackboard in 2006).
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
=== 3.6 ===
|
|
|
23 |
|
|
|
24 |
* Saving question category descriptions (info) is now supported in Moodle XML import/export format.
|
|
|
25 |
New xml-structure snippet for a question category:
|
|
|
26 |
<question type="category">
|
|
|
27 |
<category>
|
|
|
28 |
<text>${$contexttypename}$/{$category_path}</text>
|
|
|
29 |
</category>
|
|
|
30 |
<info format="{$format}">
|
|
|
31 |
<text>{$info_categorydescription}</text>
|
|
|
32 |
</info>
|
|
|
33 |
</question>
|
|
|
34 |
* The method importprocess() in question/format.php no longer accepts $category as a parameter.
|
|
|
35 |
If required in a plugin then please override this method.
|
|
|
36 |
|
|
|
37 |
=== 2.3 ===
|
|
|
38 |
|
|
|
39 |
* This plugin type now supports cron in the standard way. If required, Create a
|
|
|
40 |
lib.php file containing
|
|
|
41 |
function qformat_mypluginname_cron() {};
|
|
|
42 |
|
|
|
43 |
=== 2.1.5 / 2.2.3 / 2.3 ===
|
|
|
44 |
|
|
|
45 |
* The readquestions method used to take a second argument $context. However, at
|
|
|
46 |
the point where this method was called, it was impossible to know what
|
|
|
47 |
context the quetsions were going to be saved into, so the value could be
|
|
|
48 |
wrong. Also, none of the standard question formats were using this argument,
|
|
|
49 |
so it was removed. See MDL-32220.
|
|
|
50 |
|
|
|
51 |
=== 2.2 ===
|
|
|
52 |
|
|
|
53 |
* The plugin name used to be defined in a string called the same thing as the
|
|
|
54 |
format, with assoicated help strings, for example:
|
|
|
55 |
|
|
|
56 |
$string['aiken'] = 'Aiken format';
|
|
|
57 |
$string['aiken_help'] = 'This is a simple format ...';
|
|
|
58 |
$string['aiken_link'] = 'qformat/aiken';
|
|
|
59 |
|
|
|
60 |
This needs to be changed to use the standard string name pluginname, as for
|
|
|
61 |
other plugin types.
|
|
|
62 |
|
|
|
63 |
$string['pluginname'] = 'Aiken format';
|
|
|
64 |
$string['pluginname_help'] = 'This is a simple format ...';
|
|
|
65 |
$string['pluginname_link'] = 'qformat/aiken';
|