MDL-62599 mod_lti: correct deprecations in service_base
[moodle.git] / mod / lti / upgrade.txt
CommitLineData
d5bc7b66
MG
1This files describes API changes in the lti code.
2
27cbb596
SV
3=== 3.7 ===
4
5* Deprecated functions to add support for LTI 1 tools to access services:
6 - mod_lti\local\ltiservice\service_base->check_tool_proxy()
7 - mod_lti\local\ltiservice\service_base->check_type()
8 - mod_lti\local\ltiservice\resource_base->check_tool_proxy()
9 - mod_lti\local\ltiservice\resource_base->check_type()
10 - mod_lti_edit_types_form->get_lti_advantage_services()
11 replaced by:
12 - mod_lti\local\ltiservice\service_base->check_tool()
13 - mod_lti\local\ltiservice\resource_base->check_tool()
14 - mod_lti_edit_types_form->get_lti_services()
5c73f6e2 15* Deprecated unused function:
27cbb596 16 - mod_lti\local\ltiservice\service_base->get_configuration_parameter_names()
27cbb596
SV
17* Deprecated functions to simplify implementation of LTI scopes for accessing services:
18 - mod_lti\local\ltiservice\resource_base->get_permissions()
19 - ltiservice_gradebookservices\local\resources\lineitem\get_permissions()
20 - ltiservice_gradebookservices\local\resources\lineitems\get_permissions()
21 - ltiservice_gradebookservices\local\resources\results\get_permissions()
22 - ltiservice_gradebookservices\local\resources\scores\get_permissions()
23 - ltiservice_memberships\local\resources\contextmemberships\get_permissions()
24 replaced by:
25 - mod_lti\local\ltiservice\service_base->get_permitted_scopes()
26 - ltiservice_gradebookservices\local\service\gradebookservices->get_permitted_scopes()
27 - ltiservice_memberships\local\service\memberships\->get_permitted_scopes()
28* Deprecated function to remove definition as static:
29 - ltiservice_memberships\local\service\memberships\get_users_json()
30 replaced by:
31 - ltiservice_memberships\local\service\memberships\get_members_json()
32
f83d212b
EL
33=== 3.4 ===
34
35* The following functions, previously used (exclusively) by upgrade steps are not available
36 anymore because of the upgrade cleanup performed for this version. See MDL-57432 for more info:
37 - mod_lti_upgrade_custom_separator()
38
1b669ebe
JP
39=== 3.2 ===
40
41* Support for LTI ContentItem message type.
42* New function lti_build_content_item_selection_request() for building an LTI ContentItemSelectionRequest.
43* New Select content button in External tool configuration page that lets the user configure an external tool by fetching tool
44 configuration content from the preconfigured tool's content selection interface.
45
e42b23eb
JO
46=== 3.1 ===
47
48* When requesting a grade from the outcome service, and empty grade will now be returned as
49 an empty grade in accordance with the spec. Previously a grade of 0 would be returned.
50
c4c838ae
JL
51=== 3.0 ===
52
53* Function lti_view (locallib.php) was renamed to lti_launch_tool.
27cbb596
SV
54 A new and different lti_view function was created in the module lib.php containing the code
55 for launching events and update the completion status for the module.
c4c838ae
JL
56
57
991caba4
AG
58=== 2.8 ===
59
0065f024
TH
60* Support for LTI 2 added, including extensible services implemented as ltiservice plugins.
61* Function sendOAuthBodyPOST removed from OAuthBody.php because it was not being used.
991caba4
AG
62* The field 'grade' in the table {lti} is now an integer rather than a numeric to bring it
63 in line with the 'grade' field in other activities.
64
d5bc7b66
MG
65=== 2.7 ===
66
67* mod_lti\event\unknown_service_api_called now has less data stored in 'other'
68 but everything is still available for event observers via method get_message_data()