moodle/mod/upgrade.txt

55 lines
2.6 KiB
Plaintext
Raw Normal View History

This files describes API changes in /mod/* - activity modules,
information provided here is intended especially for developers.
=== 2.0 ===
2010-03-24 09:20:20 +00:00
WORK IN PROGRESS...
required changes in code:
* use new DML syntax everywhere
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:DML_functions)
* use new DDL syntax in db/upgrade.php
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:DDL_functions)
* replace defaults.php by settings.php and db/install.php
2010-08-03 10:08:25 +00:00
* replace STATEMENTS section in db/install.xml with PHP code db/install.php or db/log.php
2009-11-11 10:35:45 +00:00
* move post installation code from lib.php into db/install.php
2009-11-11 10:38:29 +00:00
* move uninstallation code from lib.php to db/uninstall.php
2010-03-24 09:10:14 +00:00
* new mandatory naming of intro and introformat table fields in module tables,
the presence of these fields is indicated in xxx_plugin_supports()
* completely rewrite file handling
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:File_API)
* rewrite backup/restore
2010-03-24 09:20:20 +00:00
(not finished yet)
2009-11-11 10:35:45 +00:00
* rewrite trusttext support - new db table columns needed
* migrate all module features from mod_edit.php form to lib.php/modulename_supports() function
* implement new gradebook support (legacy 1.8.x grading not supported anymore)
2010-03-24 09:20:20 +00:00
* migrate custom resource module subtypes into separate modules,
necessary only for custom plugins in mod/resource/
* use new $PAGE and $OUTPUT instead of old weblib functions
* 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
old global $THEME is fully replaced by $OUTPUT
2010-03-24 09:10:14 +00:00
create plugin renderers
2010-03-24 09:25:21 +00:00
(http://docs.moodle.org/en/Development:Theme_changes_in_2.0)
2010-03-24 09:24:19 +00:00
* migrate all javascript new coding style using YUI3+YUI2
(http://docs.moodle.org/en/Development:JavaScript_usage_guide)
2010-04-13 21:42:19 +00:00
* remove '_utf8' from lang pack names, use new {a} syntax
* replace helps with new 'xxx_hlp' strings
2010-09-05 21:01:17 +00:00
* please note the $plugin->requires in version.php has to be bigger than 2010000000,
2010-09-05 21:05:20 +00:00
otherwise the plugin is marked as outdated and upgrade is interrupted
optional - no changes needed in older code:
* settingstree.php replaced by settings.php - just unset the $settings if you want to make custom part of settings admin tree
2010-03-24 10:07:44 +00:00
* support for new mforms editor element and embedded files
(not finished yet)
* portfolio support
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:Portfolio_API)
* course completion tracking support
2010-03-24 09:10:14 +00:00
* new navigation features
* new comments API
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:Comments_2.0)
2010-03-24 09:10:14 +00:00
* new ratings API
2010-03-24 09:20:20 +00:00
(http://docs.moodle.org/en/Development:Ratings_2.0)