1 This files describes API changes in tagging, information provided
2 here is intended especially for developers.
6 * New additional property 'viewurl' has been added to the pre-defined structure in tag_item_exporter. This property
7 represents the URL to view a given tag.
8 * The `core_tag_manage_table` class has been deprecated, in favour of new report builder implementation
12 * The following functions have been finally deprecated and can not be used anymore:
14 * tag_description_set()
16 * tag_get_tags_array()
21 * tag_delete_instance()
25 * tag_record_tagged_with()
29 * tag_print_description_box()
30 * tag_print_management_box()
31 * tag_print_search_box()
32 * tag_print_search_results()
33 * tag_print_tagged_users_table()
34 * tag_print_user_box()
35 * tag_print_user_list()
38 * tag_get_related_tags_csv()
43 * tag_get_related_tags()
45 * tag_delete_instances()
47 * tag_bulk_delete_instances()
48 * tag_compute_correlations()
49 * tag_process_computed_correlation()
53 * tag_get_correlated()
58 * Each plugin must define the tag areas it uses in plugindir/db/tag.php
59 See https://moodledev.io/docs/apis/subsystems/tag/ for more details.
60 * When adding a 'tags' form element the component and itemtype must be specified
61 in the element attributes.
62 * Tag name is no longer a unique field in 'tag' table, tags may be separated in
64 * Specifying component is also required when retrieving item tags. This will allow
65 different components to add tags to the same table (for example blog and forum
66 posts) and even suggest alternative tagging for the same items.
67 * All tag_* functions were deprecated because they now require either tag
68 collection id or component, some were moved to the new class core_tag_tag and
69 some - to the renderers or templates. As usual, the deprecated function code
70 and debugging message will provide you with the suggestions of the alternative.
71 Please note that all deprecated functions will be removed after several major releases.
85 - tag_record_tagged_with
89 - tag_print_description_box
90 - tag_print_management_box
91 - tag_print_search_box
92 - tag_print_search_results
93 - tag_print_tagged_users_table
98 - tag_get_related_tags_csv
103 - tag_get_related_tags
105 - tag_delete_instances
107 - tag_bulk_delete_instances
108 - tag_compute_correlations
109 - tag_process_computed_correlation
115 * Char field 'tagtype' in database table 'tag' is replaced with int (0 or 1) field 'isstandard'.
119 * Tagging courses is now implemented without user id - through course edit form or
120 special "Course tags" form. All coursetag_* functions in /tag/coursetagslib.php
121 were deprecated without replacement and related JS code was removed. Config variable
122 $CFG->block_tags_showcoursetags was removed.
126 * The functions tag_set, tag_set_add, tag_set_delete and tag_assign now expect the component
127 and contextid of the item being tagged.
131 More cleanup was done to tag cloud sorting which involved some API changes, see MDL_39800
132 * tag_print_cloud() arguments were changed.
133 * coursetag_get_tags() arguments were changed.
134 * coursetag_get_all_tags() arguments were changed.
135 * coursetag_sort() was removed.
139 Significant cleanup was done to course tags which involved some API
140 changes, see MDL-15471
141 * tag_print_cloud() arguments were changed
142 * coursetag_print_cloud() was removed.
143 * coursetag_get_official_keywords() was removed
144 * coursetag_rss_feeds() was removed