MDL-57407 mod_data: Return ratings in mod_data_get_entry
[moodle.git] / mod / data / upgrade.txt
CommitLineData
be8c6766
AH
1This files describes API changes in /mod/data - plugins,
2information provided here is intended especially for developers.
3
be4bdab7
JL
4=== 3.4 ===
5* External function mod_data_external::search_entries() now returns the maxcount field: Total count of records that the user could
6 see in the database (if all the search criterias were removed).
26d8bcea 7* External function get_entry now returns an additional field "ratinginfo" containing the entry rating information.
be4bdab7 8
e5ca70ba
DP
9=== 3.3.2 ===
10* data_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
11 now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
12 objects instead of the ids to save DB calls.
13
f97305b0
JL
14=== 3.3 ===
15
16* External function get_databases_by_courses now return more fields for users with mod/data:viewentry capability enabled:
17 maxentries, rssarticles, singletemplate, listtemplate, listtemplateheader, listtemplatefooter, addtemplate,
18 rsstemplate, rsstitletemplate, csstemplate, jstemplate, asearchtemplate, approval, defaultsort, defaultsortdir, manageapproved.
aefe9c5f
JL
19* Data field classes extending data_field_base should implement the get_config_for_external method.
20 This method is used for returning the field settings for external functions.
21 You should check the user capabilities of the current user before returning any field setting value.
22 This is intended to protect field settings like private keys for external systems.
cf873ada
MG
23* Required entries has been added to the Activity completion setting of mod_form. Entries required for completion
24 (in the entries section) is no longer displayed for new instances and will be deprecated in a future release
25 in favour of the new completion setting.
f97305b0 26
be8c6766
AH
27=== 3.2 ===
28
29* New hook - update_content_import - Can be implemented by field subplugins data_field_* class
30 This can be used to pre-process data from a csv file before it is inserted into the database.