1 This files describes API changes in core lbraries and APIs,
2 information provided here is intended especially for developers.
6 * Pagelib: Numerous deprecated functions were removed as classes page_base, page_course
7 and page_generic_activity.
8 * use $CFG->googlemapkey3 instead of removed $CFG->googlemapkey and migrate to Google Maps API V3
9 * Function settings_navigation::add_course_editing_links() is completely removed
10 * function global_navigation::format_display_course_content() is removed completely (the
11 functionality is moved to course format class)
12 * in the function global_navigation::load_generic_course_sections() the argument $courseformat is
14 * New component and itemid columns in groups_members table - this allows plugin to create protected
15 group memberships using 'xx_yy_allow_group_member_remove' callback and there is also a new restore
16 callback 'xx_yy_restore_group_member()'.
17 * New general role assignment restore plugin callback 'xx_yy_restore_role_assignment()'.
18 * functions get_generic_section_name(), get_all_sections(), add_mod_to_section(), get_all_mods()
19 are deprecated. See their phpdocs in lib/deprecatedlib.php on how to replace them
22 * moodle-enrol-notification has been renamed to moodle-core-notification
23 * YUI2 code must now use 2in3, see http://yuilibrary.com/yui/docs/yui/yui-yui2.html
26 * output debugging() is not sent to standard output any more,
27 use $this->assertDebuggingCalled(), $this->assertDebuggingNotCalled(),
28 $this->getDebuggingMessages() or $this->assertResetDebugging() instead.
32 Database layer changes:
33 * objects are not allowed in paramters of DML functions, use explicit casting to strings if necessary
36 * DDL and DML methods which were deprecated in 2.0 have now been removed, they will no longer produce
37 debug messages and will produce fatal errors
41 * send_stored_file() has changed its interface
42 * deleted several resourcelib_embed_* functions from resourcelib.php
46 removed unused libraries:
47 * odbc, base32, CodeSniffer, overlib, apd profiling, kses, Smarty, PEAR Console, swfobject, cssshover.htc, md5.js
50 * new admin/tool plugin type
51 * new context API - old API is still available
52 * deleted users do not have context any more
53 * removed global search
59 * basic suport for restore from 1.9
60 * new mobile devices API
67 * new DML API - http://docs.moodle.org/dev/DML_functions
68 * new DDL API - http://docs.moodle.org/dev/DDL_functions
69 * new file API - http://docs.moodle.org/dev/File_API
70 * new $PAGE and $OUTPUT API
72 * new theme API - http://docs.moodle.org/dev/Theme_changes_in_2.0
73 * new javascript API - http://docs.moodle.org/dev/JavaScript_usage_guide
75 * new local plugin type
76 * new translation support - http://lang.moodle.org
84 * new backup/restore API
87 * improved plugin support (aka Frankenstyle)
88 * new registration and hub API
89 * new course completion API
93 * new my moodle and profiles API