2016-07-12 14:07:31 +01:00
|
|
|
This files describes API changes in /mod/data - plugins,
|
|
|
|
information provided here is intended especially for developers.
|
|
|
|
|
2022-07-07 16:12:46 +02:00
|
|
|
=== 4.1 ===
|
|
|
|
* The method data_view is now deprecated. Use $maganer->set_module_viewed instead.
|
2022-07-08 18:07:38 +02:00
|
|
|
* The data_print_template function is now deprecated and replaced by mod_data\template class.
|
|
|
|
* The data_print_ratings function now has an extra $print to get the ratings output instead of printing it directly.
|
2022-07-07 17:03:07 +02:00
|
|
|
* The following functions have been deprecated because they have been moved to the manager class:
|
|
|
|
- data_get_available_presets
|
|
|
|
- data_get_available_site_presets
|
|
|
|
- data_preset_name
|
|
|
|
- is_directory_a_preset
|
2022-07-07 16:12:46 +02:00
|
|
|
|
2019-02-20 15:24:38 +01:00
|
|
|
=== 3.7 ===
|
|
|
|
* External functions get_entries, get_entry and search_entries now return an additional field "tags" containing the entry tags.
|
|
|
|
|
2017-07-25 15:55:22 +02:00
|
|
|
=== 3.4 ===
|
|
|
|
* External function mod_data_external::search_entries() now returns the maxcount field: Total count of records that the user could
|
|
|
|
see in the database (if all the search criterias were removed).
|
2017-07-14 16:48:18 +01:00
|
|
|
* External function get_entry now returns an additional field "ratinginfo" containing the entry rating information.
|
2017-07-25 15:55:22 +02:00
|
|
|
|
2017-07-11 11:29:08 +01:00
|
|
|
=== 3.3.2 ===
|
|
|
|
* data_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
|
|
|
|
now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
|
|
|
|
objects instead of the ids to save DB calls.
|
|
|
|
|
2017-02-09 13:32:26 +01:00
|
|
|
=== 3.3 ===
|
|
|
|
|
|
|
|
* External function get_databases_by_courses now return more fields for users with mod/data:viewentry capability enabled:
|
|
|
|
maxentries, rssarticles, singletemplate, listtemplate, listtemplateheader, listtemplatefooter, addtemplate,
|
|
|
|
rsstemplate, rsstitletemplate, csstemplate, jstemplate, asearchtemplate, approval, defaultsort, defaultsortdir, manageapproved.
|
2017-02-13 12:38:56 +01:00
|
|
|
* Data field classes extending data_field_base should implement the get_config_for_external method.
|
|
|
|
This method is used for returning the field settings for external functions.
|
|
|
|
You should check the user capabilities of the current user before returning any field setting value.
|
|
|
|
This is intended to protect field settings like private keys for external systems.
|
2017-04-03 10:44:32 +08:00
|
|
|
* Required entries has been added to the Activity completion setting of mod_form. Entries required for completion
|
|
|
|
(in the entries section) is no longer displayed for new instances and will be deprecated in a future release
|
|
|
|
in favour of the new completion setting.
|
2017-02-09 13:32:26 +01:00
|
|
|
|
2016-07-12 14:07:31 +01:00
|
|
|
=== 3.2 ===
|
|
|
|
|
|
|
|
* New hook - update_content_import - Can be implemented by field subplugins data_field_* class
|
|
|
|
This can be used to pre-process data from a csv file before it is inserted into the database.
|