MDL-38332 Users: Browse list of users should not contain guest user record
[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
6b219310
DW
6* Function get_max_file_sizes now returns an option for (for example) "Course limit (500MB)" or
7 "Site limit (200MB)" when appropriate with the option set to 0. This function no longer returns
8 an option for 0 bytes. Existing code that was replacing the 0 option in the return
9 from this function with a more sensible message, can now use the return from this function directly.
9a36be73
MG
10* Functions responsible for output in course/lib.php are deprecated, the code is moved to
11 appropriate renderers: print_section_add_menus()
12 See functions' phpdocs in lib/deprecatedlib.php
13* Function get_print_section_cm_text() is deprecated, replaced with methods in cm_info
3cb856c7
PS
14* zip_packer may create empty zip archives, there is a new option to ignore
15 problematic files when creating archive
93cc145f
MN
16* The function delete_course_module was deprecated and has been replaced with
17 course_delete_module. The reason for this was because the function delete_course_module
18 only partially deletes data, so wherever it was called extra code was needed to
19 perform the whole deletion process. The function course_delete_module now takes care
20 of the whole process.
91c8cf99
F
21* curl::setopt() does not accept constant values any more. As it never worked properly,
22 we decided to make the type check stricter. Now, the keys of the array pass must be a string
23 corresponding to the curl constant name.
24
9a36be73 25
238b8bc9
ARN
26YUI changes:
27* M.util.help_icon has been deprecated. Code should be updated to use moodle-core-popuphelp
28 instead. To do so, remove any existing JS calls to M.util.help_icon from your PHP and ensure
29 that your help link is placed in a span which has the class 'helplink'.
30
6c2be903
DP
31=== 2.4 ===
32
33* Pagelib: Numerous deprecated functions were removed as classes page_base, page_course
34 and page_generic_activity.
704533fc 35* use $CFG->googlemapkey3 instead of removed $CFG->googlemapkey and migrate to Google Maps API V3
b874d5c6 36* Function settings_navigation::add_course_editing_links() is completely removed
ee7084e9
MG
37* function global_navigation::format_display_course_content() is removed completely (the
38 functionality is moved to course format class)
39* in the function global_navigation::load_generic_course_sections() the argument $courseformat is
40 removed
7881024e
PS
41* New component and itemid columns in groups_members table - this allows plugin to create protected
42 group memberships using 'xx_yy_allow_group_member_remove' callback and there is also a new restore
43 callback 'xx_yy_restore_group_member()'.
44* New general role assignment restore plugin callback 'xx_yy_restore_role_assignment()'.
97960146
MG
45* functions get_generic_section_name(), get_all_sections(), add_mod_to_section(), get_all_mods()
46 are deprecated. See their phpdocs in lib/deprecatedlib.php on how to replace them
ee362526 47
d2a27ab0
ARN
48YUI changes:
49* moodle-enrol-notification has been renamed to moodle-core-notification
3542e01a 50* YUI2 code must now use 2in3, see http://yuilibrary.com/yui/docs/yui/yui-yui2.html
7266bd3e
ARN
51* M.util.init_select_autosubmit() and M.util.init_url_select() have been deprecated. Code using this should be updated
52 to use moodle-core-formautosubmit
d2a27ab0 53
94c9db54
PS
54Unit testing changes:
55* output debugging() is not sent to standard output any more,
56 use $this->assertDebuggingCalled(), $this->assertDebuggingNotCalled(),
57 $this->getDebuggingMessages() or $this->assertResetDebugging() instead.
58
e618cdf3
PS
59=== 2.3 ===
60
61Database layer changes:
62* objects are not allowed in paramters of DML functions, use explicit casting to strings if necessary
63
19526d91
DP
64Note:
65* DDL and DML methods which were deprecated in 2.0 have now been removed, they will no longer produce
66debug messages and will produce fatal errors
e618cdf3 67
796495fe 68API changes:
daefd6eb 69
796495fe 70* send_stored_file() has changed its interface
daefd6eb 71* deleted several resourcelib_embed_* functions from resourcelib.php
796495fe 72
ee362526
PS
73=== 2.2 ===
74
75removed unused libraries:
76* odbc, base32, CodeSniffer, overlib, apd profiling, kses, Smarty, PEAR Console, swfobject, cssshover.htc, md5.js
77
78API changes:
79* new admin/tool plugin type
80* new context API - old API is still available
8e470797 81* deleted users do not have context any more
ee362526
PS
82* removed global search
83
84
85=== 2.1 ===
86
87API changes:
88* basic suport for restore from 1.9
89* new mobile devices API
90* new questions API
91
92
93=== 2.0 ===
94
95API changes:
96* new DML API - http://docs.moodle.org/dev/DML_functions
97* new DDL API - http://docs.moodle.org/dev/DDL_functions
98* new file API - http://docs.moodle.org/dev/File_API
99* new $PAGE and $OUTPUT API
100* new navigation API
101* new theme API - http://docs.moodle.org/dev/Theme_changes_in_2.0
102* new javascript API - http://docs.moodle.org/dev/JavaScript_usage_guide
103* new portfolio API
104* new local plugin type
105* new translation support - http://lang.moodle.org
106* new web service API
107* new cohorts API
108* new messaging API
109* new rating API
110* new comment API
111* new sessions API
112* new enrolment API
113* new backup/restore API
114* new blocks API
115* new filters API
116* improved plugin support (aka Frankenstyle)
117* new registration and hub API
118* new course completion API
119* new plagiarism API
120* changed blog API
121* new text editor API
19526d91 122* new my moodle and profiles API