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
24 * M.util.init_select_autosubmit() and M.util.init_url_select() have been deprecated. Code using this should be updated
25 to use moodle-core-formautosubmit
28 * output debugging() is not sent to standard output any more,
29 use $this->assertDebuggingCalled(), $this->assertDebuggingNotCalled(),
30 $this->getDebuggingMessages() or $this->assertResetDebugging() instead.
34 Database layer changes:
35 * objects are not allowed in paramters of DML functions, use explicit casting to strings if necessary
38 * DDL and DML methods which were deprecated in 2.0 have now been removed, they will no longer produce
39 debug messages and will produce fatal errors
43 * send_stored_file() has changed its interface
44 * deleted several resourcelib_embed_* functions from resourcelib.php
48 removed unused libraries:
49 * odbc, base32, CodeSniffer, overlib, apd profiling, kses, Smarty, PEAR Console, swfobject, cssshover.htc, md5.js
52 * new admin/tool plugin type
53 * new context API - old API is still available
54 * deleted users do not have context any more
55 * removed global search
61 * basic suport for restore from 1.9
62 * new mobile devices API
69 * new DML API - http://docs.moodle.org/dev/DML_functions
70 * new DDL API - http://docs.moodle.org/dev/DDL_functions
71 * new file API - http://docs.moodle.org/dev/File_API
72 * new $PAGE and $OUTPUT API
74 * new theme API - http://docs.moodle.org/dev/Theme_changes_in_2.0
75 * new javascript API - http://docs.moodle.org/dev/JavaScript_usage_guide
77 * new local plugin type
78 * new translation support - http://lang.moodle.org
86 * new backup/restore API
89 * improved plugin support (aka Frankenstyle)
90 * new registration and hub API
91 * new course completion API
95 * new my moodle and profiles API