Merge branch 'MDL-37082-master' of git://github.com/damyon/moodle
[moodle.git] / lib / upgrade.txt
CommitLineData
ee362526
PS
1This files describes API changes in core lbraries and APIs,
2information provided here is intended especially for developers.
3
9a36be73
MG
4=== 2.5 ===
5
6* Functions responsible for output in course/lib.php are deprecated, the code is moved to
7 appropriate renderers: print_section_add_menus()
8 See functions' phpdocs in lib/deprecatedlib.php
9* Function get_print_section_cm_text() is deprecated, replaced with methods in cm_info
3cb856c7
PS
10* zip_packer may create empty zip archives, there is a new option to ignore
11 problematic files when creating archive
9a36be73 12
6c2be903
DP
13=== 2.4 ===
14
15* Pagelib: Numerous deprecated functions were removed as classes page_base, page_course
16 and page_generic_activity.
704533fc 17* use $CFG->googlemapkey3 instead of removed $CFG->googlemapkey and migrate to Google Maps API V3
b874d5c6 18* Function settings_navigation::add_course_editing_links() is completely removed
ee7084e9
MG
19* function global_navigation::format_display_course_content() is removed completely (the
20 functionality is moved to course format class)
21* in the function global_navigation::load_generic_course_sections() the argument $courseformat is
22 removed
7881024e
PS
23* New component and itemid columns in groups_members table - this allows plugin to create protected
24 group memberships using 'xx_yy_allow_group_member_remove' callback and there is also a new restore
25 callback 'xx_yy_restore_group_member()'.
26* New general role assignment restore plugin callback 'xx_yy_restore_role_assignment()'.
97960146
MG
27* functions get_generic_section_name(), get_all_sections(), add_mod_to_section(), get_all_mods()
28 are deprecated. See their phpdocs in lib/deprecatedlib.php on how to replace them
ee362526 29
d2a27ab0
ARN
30YUI changes:
31* moodle-enrol-notification has been renamed to moodle-core-notification
3542e01a 32* YUI2 code must now use 2in3, see http://yuilibrary.com/yui/docs/yui/yui-yui2.html
7266bd3e
ARN
33* M.util.init_select_autosubmit() and M.util.init_url_select() have been deprecated. Code using this should be updated
34 to use moodle-core-formautosubmit
d2a27ab0 35
94c9db54
PS
36Unit testing changes:
37* output debugging() is not sent to standard output any more,
38 use $this->assertDebuggingCalled(), $this->assertDebuggingNotCalled(),
39 $this->getDebuggingMessages() or $this->assertResetDebugging() instead.
40
e618cdf3
PS
41=== 2.3 ===
42
43Database layer changes:
44* objects are not allowed in paramters of DML functions, use explicit casting to strings if necessary
45
19526d91
DP
46Note:
47* DDL and DML methods which were deprecated in 2.0 have now been removed, they will no longer produce
48debug messages and will produce fatal errors
e618cdf3 49
796495fe 50API changes:
daefd6eb 51
796495fe 52* send_stored_file() has changed its interface
daefd6eb 53* deleted several resourcelib_embed_* functions from resourcelib.php
796495fe 54
ee362526
PS
55=== 2.2 ===
56
57removed unused libraries:
58* odbc, base32, CodeSniffer, overlib, apd profiling, kses, Smarty, PEAR Console, swfobject, cssshover.htc, md5.js
59
60API changes:
61* new admin/tool plugin type
62* new context API - old API is still available
8e470797 63* deleted users do not have context any more
ee362526
PS
64* removed global search
65
66
67=== 2.1 ===
68
69API changes:
70* basic suport for restore from 1.9
71* new mobile devices API
72* new questions API
73
74
75=== 2.0 ===
76
77API changes:
78* new DML API - http://docs.moodle.org/dev/DML_functions
79* new DDL API - http://docs.moodle.org/dev/DDL_functions
80* new file API - http://docs.moodle.org/dev/File_API
81* new $PAGE and $OUTPUT API
82* new navigation API
83* new theme API - http://docs.moodle.org/dev/Theme_changes_in_2.0
84* new javascript API - http://docs.moodle.org/dev/JavaScript_usage_guide
85* new portfolio API
86* new local plugin type
87* new translation support - http://lang.moodle.org
88* new web service API
89* new cohorts API
90* new messaging API
91* new rating API
92* new comment API
93* new sessions API
94* new enrolment API
95* new backup/restore API
96* new blocks API
97* new filters API
98* improved plugin support (aka Frankenstyle)
99* new registration and hub API
100* new course completion API
101* new plagiarism API
102* changed blog API
103* new text editor API
19526d91 104* new my moodle and profiles API