-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade.txt
66 lines (58 loc) · 3.17 KB
/
upgrade.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
This files describes API changes in /mod/cybrary/*,
information provided here is intended especially for developers.
=== 3.0 ===
* External function get_cybraries_by_courses now returns and additional field "cancreatediscussions" that indicates if the user
can create discussions in the cybrary.
* A new optional parameter (groupid) has been added to get_cybrary_discussions.
This parameter can override the automatically calculated current group.
* New constant CYBRARY_POSTS_ALL_USER_GROUPS, to be used as parameter in functions where we'd need to retrieve all the user posts.
=== 2.8 ===
* The following functions have all been marked as deprecated. Many of
these have not been supported in many releases and should not be relied
upon:
cybrary_count_unrated_posts
cybrary_tp_count_discussion_read_records
cybrary_get_user_discussions
cybrary_tp_count_cybrary_posts
cybrary_tp_count_cybrary_read_records
cybrary_get_open_modes
cybrary_get_child_posts
cybrary_get_discussion_posts
cybrary_get_ratings
cybrary_get_tracking_link
cybrary_tp_count_discussion_unread_posts
cybrary_convert_to_roles
cybrary_tp_get_read_records
cybrary_tp_get_discussion_read_records
cybrary_user_enrolled
cybrary_user_can_view_post
* The following functions have been deprecated and replaced. Please see the phpdoc for each on the new function to use instead:
* cybrary_is_subscribed
* cybrary_subscribe
* cybrary_unsubscribe
* cybrary_subscribed_users
* cybrary_is_forcesubscribed
* cybrary_forcesubscribe
* cybrary_get_forcesubscribed
* cybrary_get_subscribed_cybraries
* cybrary_get_optional_subscribed_cybraries
* cybrary_get_potential_subscribers
* External function mod_cybrary_external::get_cybrary_discussions has been deprecated.
Use mod_cybrary_external::get_cybrary_discussions_paginated instead.
=== 2.6 ===
* The file post_form.php should not be included, the class it contained has
been moved so that it can benefit from autoloading.
* The function cybrary_shorten_post() has been deprecated. It was doing a poor
job of shortening cybrary post text and the shorten_text() function does a
much better job.
* The constant CYBRARY_TRACKING_ON has been depreciated and replaced by
CYBRARY_TRACKING_FORCED. The value between them is maintained, so they are
interchangeable, but code should migrate to the new name.
=== 2.5 ===
The function cybrary_check_throttling has been changed so that a warning object is returned when a user has reached the 'Post threshold for warning' or
'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
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.
=== 2.3.5, 2.4.2 ===
* mod/cybrary:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
when the capability was initially created. If you don't want users with frontpage role to get cybrary (with forcesubscribe) emails,
then please remove this capability for frontpage role.