Difference between revisions of "Required code upgrades"

Jump to: navigation, search
(Optional: better link format)
(Mandatory)
Line 8: Line 8:
  
 
===New Data Manipulation Layer (DML)===
 
===New Data Manipulation Layer (DML)===
* All database calls must be updated - new bound parameters syntax, magic quotes not used any more [https://docs.moodle.org/en/Development:DB_layer_2.0_migration_docs]
+
* All database calls must be updated - new bound parameters syntax, magic quotes not used any more, see [https://docs.moodle.org/en/Development:DB_layer_2.0_migration_docs DB layer 2.0 migration].
  
 
===File API===
 
===File API===
It consists of three parts [https://docs.moodle.org/en/Development:File_API]:
+
It consists of [https://docs.moodle.org/en/Development:File_API three parts]:
 
# file storage - modules can not access the course files anymore, they must store alll files in own area
 
# file storage - modules can not access the course files anymore, they must store alll files in own area
 
# file browsing - each module/plugin defines what files are browsable and acessible
 
# file browsing - each module/plugin defines what files are browsable and acessible

Revision as of 10:26, 30 August 2011

This page lists all changes that may be needed to be done in 3rd party modules and other integration code.

Moodle 2.0

Note to developrs: please keep adding more info here ;-)

Mandatory

New Data Manipulation Layer (DML)

  • All database calls must be updated - new bound parameters syntax, magic quotes not used any more, see DB layer 2.0 migration.

File API

It consists of three parts:

  1. file storage - modules can not access the course files anymore, they must store alll files in own area
  2. file browsing - each module/plugin defines what files are browsable and acessible
  3. file serving - each plugin/module is responsible for file sending though pluginfile.php
  • Handling of files in backup/restore needs to be fully rewritten too.
  • File uploading in formslib fully rewritten - old API should not be used

Upgrade code

  • Upgrade allowed only from 1.9.x (upgrade of contrib modules does not do version tests yet)
  • Backup/restore must use new DDL API.
  • Concurrent upgrades are now prevented.

Messaging reimplemented

Mailing and notifications from modules needs to be updated (not finished yet)

Optional

Other changes

These changes might affect some unsupported core code customisations. Modules and other plugins should not be affected.

  • rewritten course category sorting