upgrade.txt 1.6 KB
Newer Older
1
2
3
4
5
6
7
8
9
This files describes API changes in /mod/* - activity modules,
information provided here is intended especially for developers.

=== 2.0 ===

required changes in code:
* use new DML syntax everywhere
* use new DDL syntax in db/upgrade.php
* replace defaults.php by settings.php and db/install.php
Petr Skoda's avatar
Petr Skoda committed
10
* replace STATEMENTS section in db/install.xml with PHP code db/install.php
Petr Skoda's avatar
Petr Skoda committed
11
* move post installation code from lib.php into db/install.php
12
* move uninstallation code from lib.php to db/uninstall.php
Petr Skoda's avatar
Petr Skoda committed
13
14
* new mandatory naming of intro and introformat table fields in module tables,
  the presence of these fields is indicated in xxx_plugin_supports()
15
16
* completely rewrite file handling
* rewrite backup/restore
Petr Skoda's avatar
Petr Skoda committed
17
18
* rewrite trusttext support - new db table columns needed
* migrate all module features from mod_edit.php form to lib.php/modulename_supports() function
19
* implement new gradebook support (legacy 1.8.x grading not supported anymore)
20
* migrate custom resource module subtypes into separate modules
Petr Skoda's avatar
Petr Skoda committed
21
* migrate to new comments subsystem
22
* use new $PAGE and $OUTPUT instead of old weblib functions
23
24
25
* theme changes: move plugin styles into mod/xxx/styles.css and use new css markers for images,
                 move all images into new mod/xxx/pix/ directory and use new outputlib api
                 move module icon to mod/xxx/pix/icon.gif
26
                 old global $THEME is fully replaced by $OUTPUT
Petr Skoda's avatar
Petr Skoda committed
27
                 create plugin renderers
28

29
30
31
32

optional - no changes needed in older code:
* portfolio support
* course completion tracking support
Petr Skoda's avatar
Petr Skoda committed
33
34
35
* new navigation features
* new comments API
* new ratings API
36
37
38
39



TODO: add links to docs