Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
=== 4.5 Onwards ===
2
 
3
This file has been replaced by UPGRADING.md. See MDL-81125 for further information.
4
 
5
===
1 efrain 6
This files describes API changes in /mod/forum/*,
7
information provided here is intended especially for developers.
8
 
1441 ariadna 9
=== 4.5 ===
10
 
11
* Final deprecation of forum_update_subscriptions_button().
12
 
1 efrain 13
=== 4.4 ===
14
 
15
* The mod_forum_get_forum_discussions_paginated web service has been removed from core.
16
 
17
=== 4.3 ===
18
 
19
* The forum_print_discussion_header function has been deprecated and will not be replaced.
20
 
21
=== 4.1 ===
22
 
23
* The following code, previously used (exclusively) by upgrade steps is not available anymore
24
  because of the upgrade cleanup performed for this version. See MDL-71747 for more info:
25
    - \mod_forum\task\refresh_forum_post_counts adhoc task.
26
 
27
=== 4.0 ===
28
 
29
* The forum_count_replies() function has been removed from core.
30
* The mod_forum_get_forum_discussion_posts web service has been removed from core.
31
* Final deprecations of the following functions:
32
    * forum_make_mail_text
33
    * forum_make_mail_html
34
    * forum_make_mail_post
35
    * forum_cron_minimise_user_record
36
    * forum_cron
37
    * forum_print_discussion
38
    * forum_post_nesting_cache
39
    * forum_should_start_post_nesting
40
    * forum_should_end_post_nesting
41
    * forum_print_post_start
42
    * forum_print_post_end
43
    * forum_print_post
44
    * forum_print_posts_flat
45
    * forum_print_posts_threaded
46
    * forum_print_posts_nested
47
    * forum_print_latest_discussions
48
    * forum_get_user_grades
49
* The method forum_update_subscriptions_button() has been deprecated as it is no longer used.
50
  The 'Manage subscribers' button has been replaced with tertiary navigation.
51
 
52
=== 3.11 ===
53
 
54
* The get_forum_discussions_paginated web service has been deprecated in favour of get_forum_discussions.
55
* The forum post exporter now includes a "timemodified" field for each post, which is included in several WS methods:
56
    * mod_forum_get_discussion_posts
57
    * get_discussion_posts_by_userid
58
    * get_discussion_post
59
    * add_discussion_post
60
 
61
=== 3.10 ===
62
 
63
* Changes in external function mod_forum_external::get_discussion_posts_by_userid
64
  Now returns the posts of a given user checking the current user capabilities ($USER, the user who is requesting the posts).
65
  Previously, it returned the posts checking the capabilities of the user that created the posts.
66
 
67
=== 3.8 ===
68
 
69
* The following functions have been finally deprecated and can not be used anymore:
70
    * forum_scale_used()
71
* In order for the forum summary report to calculate word count and character count data, those details are now stored
72
    for each post in the database when posts are created or updated. For posts that existed prior to a Moodle 3.8 upgrade, these
73
    are calculated by the refresh_forum_post_counts ad-hoc task in chunks of 5000 posts by default. Site admins are able to modify this
74
    default, by setting $CFG->forumpostcountchunksize to the required integer value.
75
 
76
=== 3.7 ===
77
  * Changed the forum discussion rendering to use templates rather than print functions.
78
  * Added new forum entities, factories, exporters, renderers, and vaults in the local namespace to better encapsulate the forum data.
79
  * Deprecated all of the forum_print_* functions in lib.php.
80
  * The forum_print_latest_discussions function has been deprecated and will not be replaced.
81
  * The get_forum_discussion_posts web service has been deprecated in favour of get_discussion_posts.
82
  * The forum_count_replies function has been deprecated in favour of get_reply_count_for_post_id_in_discussion_id in
83
    the Post vault.
84
  * External function get_forums_by_courses now returns two additional fields "duedate" and "cutoffdate" containing the due date and the cutoff date for posting to the forums respectively.
85
  * External function get_forum_discussion_posts now returns an additional field "tags" returning the post tags.
86
  * New external function mod_forum_external::get_forum_discussions returns a list of forum discussions optionally sorted and paginated.
87
    Use mod_forum_external::get_forum_discussions instead.
88
  * External function mod_forum_external::add_discussion_post() has a new 'messageformat' param to be able to handle other formats different from FORMAT_HTML (that continues being the default one). Also a new 'topreferredformat' option enables the automatic conversion between any format and the preferred format (given the editor preference) before contents are saved.
89
 
90
=== 3.6 ===
91
 
92
  * forum_print_post should be surrounded with calls to forum_print_post_start and forum_print_post_end to create the proper HTML structure for the post.
93
 
94
=== 3.4 ===
95
  * External function get_forum_discussion_posts now returns an additional field "ratinginfo" containing rating information.
96
 
97
=== 3.3 ===
98
  * External function get_forums_by_courses now returns and additional field "istracked" that indicates if the user
99
   is tracking the related forum.
100
  * The legacy forum.js file has been removed, this includes the js functions:
101
    forum_produce_subscribe_link, forum_produce_tracking_link, lockoptions_timetoitems,
102
    lockoptions_timefromitems, lockoptions, lockoption, unlockoption
103
  * External function can_add_discussion now returns two additional fields:
104
   "canpindiscussions" that indicates if the user can add pinned discussions.
105
   "cancreateattachment" that indicates if the user can add attachments to the discussion.
106
 
107
=== 3.2 ===
108
 * The setting $CFG->forum_replytouser has been removed in favour of a centralized noreplyaddress setting.
109
   Please use $CFG->noreplyaddress setting instead.
110
 * The following functions have been finally deprecated and should no longer be used.
111
  - forum_count_unrated_posts
112
  - forum_tp_count_discussion_read_records
113
  - forum_get_user_discussions
114
  - forum_tp_count_forum_posts
115
  - forum_tp_count_forum_read_records
116
  - forum_get_open_modes
117
  - forum_get_child_posts
118
  - forum_get_discussion_posts
119
  - forum_get_ratings
120
  - forum_get_tracking_link
121
  - forum_tp_count_discussion_unread_posts
122
  - forum_convert_to_roles
123
  - forum_tp_get_read_records
124
  - forum_tp_get_discussion_read_records
125
  - forum_user_enrolled
126
  - forum_user_can_view_post
127
  - forum_shorten_post
128
  - forum_is_subscribed
129
  - forum_subscribe
130
  - forum_unsubscribe
131
  - forum_subscribed_users
132
  - forum_is_forcesubscribed
133
  - forum_forcesubscribe
134
  - forum_get_forcesubscribed
135
  - forum_get_subscribed_forums
136
  - forum_get_optional_subscribed_forums
137
  - forum_get_potential_subscribers
138
 * External functions that were returning file information now return the following file fields:
139
   filename, filepath, mimetype, filesize, timemodified and fileurl.
140
   Those fields are now marked as VALUE_OPTIONAL for backwards compatibility.
141
 
142
=== 3.1 ===
143
 * The inteface to forum_get_email_message_id() has changed and no longer needs the $host argument.
144
 
145
=== 3.0 ===
146
 * External function get_forums_by_courses now returns and additional field "cancreatediscussions" that indicates if the user
147
   can create discussions in the forum.
148
 * A new optional parameter (groupid) has been added to get_forum_discussions.
149
   This parameter can override the automatically calculated current group.
150
 * New constant FORUM_POSTS_ALL_USER_GROUPS, to be used as parameter in functions where we'd need to retrieve all the user posts.
151
 
152
=== 2.8 ===
153
 * The following functions have all been marked as deprecated. Many of
154
   these have not been supported in many releases and should not be relied
155
   upon:
156
     forum_count_unrated_posts
157
     forum_tp_count_discussion_read_records
158
     forum_get_user_discussions
159
     forum_tp_count_forum_posts
160
     forum_tp_count_forum_read_records
161
     forum_get_open_modes
162
     forum_get_child_posts
163
     forum_get_discussion_posts
164
     forum_get_ratings
165
     forum_get_tracking_link
166
     forum_tp_count_discussion_unread_posts
167
     forum_convert_to_roles
168
     forum_tp_get_read_records
169
     forum_tp_get_discussion_read_records
170
     forum_user_enrolled
171
     forum_user_can_view_post
172
 * The following functions have been deprecated and replaced. Please see the phpdoc for each on the new function to use instead:
173
   * forum_is_subscribed
174
   * forum_subscribe
175
   * forum_unsubscribe
176
   * forum_subscribed_users
177
   * forum_is_forcesubscribed
178
   * forum_forcesubscribe
179
   * forum_get_forcesubscribed
180
   * forum_get_subscribed_forums
181
   * forum_get_optional_subscribed_forums
182
   * forum_get_potential_subscribers
183
 * External function mod_forum_external::get_forum_discussions has been deprecated.
184
   Use mod_forum_external::get_forum_discussions_paginated instead.
185
 
186
=== 2.6 ===
187
 
188
* The file post_form.php should not be included, the class it contained has
189
  been moved so that it can benefit from autoloading.
190
* The function forum_shorten_post() has been deprecated. It was doing a poor
191
  job of shortening forum post text and the shorten_text() function does a
192
  much better job.
193
* The constant FORUM_TRACKING_ON has been deprecated and replaced by
194
  FORUM_TRACKING_FORCED. The value between them is maintained, so they are
195
  interchangeable, but code should migrate to the new name.
196
 
197
=== 2.5 ===
198
 
199
The function forum_check_throttling has been changed so that a warning object is returned when a user has reached the 'Post threshold for warning' or
200
'Post threshold for blocking' setting, rather than echoing this on screen. This allows the warning to be moved inside the post form as it can be added
201
as a HTML element, where it is more noticeable. False is returned if there is no need to warn, or restrict the user from posting - see MDL-39182.
202
 
203
=== 2.3.5, 2.4.2 ===
204
 
205
* mod/forum:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
206
when the capability was initially created. If you don't want users with frontpage role to get forum (with forcesubscribe) emails,
207
then please remove this capability for frontpage role.