1 This files describes API changes in tagging, information provided
2 here is intended especially for developers.
6 * The following functions have been finally deprecated and can not be used anymore:
8 * tag_description_set()
10 * tag_get_tags_array()
15 * tag_delete_instance()
19 * tag_record_tagged_with()
23 * tag_print_description_box()
24 * tag_print_management_box()
25 * tag_print_search_box()
26 * tag_print_search_results()
27 * tag_print_tagged_users_table()
28 * tag_print_user_box()
29 * tag_print_user_list()
32 * tag_get_related_tags_csv()
37 * tag_get_related_tags()
39 * tag_delete_instances()
41 * tag_bulk_delete_instances()
42 * tag_compute_correlations()
43 * tag_process_computed_correlation()
47 * tag_get_correlated()
52 * Each plugin must define the tag areas it uses in plugindir/db/tag.php
53 See https://docs.moodle.org/dev/Tag_API for more details.
54 * When adding a 'tags' form element the component and itemtype must be specified
55 in the element attributes.
56 * Tag name is no longer a unique field in 'tag' table, tags may be separated in
58 * Specifying component is also required when retrieving item tags. This will allow
59 different components to add tags to the same table (for example blog and forum
60 posts) and even suggest alternative tagging for the same items.
61 * All tag_* functions were deprecated because they now require either tag
62 collection id or component, some were moved to the new class core_tag_tag and
63 some - to the renderers or templates. As usual, the deprecated function code
64 and debugging message will provide you with the suggestions of the alternative.
65 Please note that all deprecated functions will be removed after several major releases.
79 - tag_record_tagged_with
83 - tag_print_description_box
84 - tag_print_management_box
85 - tag_print_search_box
86 - tag_print_search_results
87 - tag_print_tagged_users_table
92 - tag_get_related_tags_csv
97 - tag_get_related_tags
99 - tag_delete_instances
101 - tag_bulk_delete_instances
102 - tag_compute_correlations
103 - tag_process_computed_correlation
109 * Char field 'tagtype' in database table 'tag' is replaced with int (0 or 1) field 'isstandard'.
113 * Tagging courses is now implemented without user id - through course edit form or
114 special "Course tags" form. All coursetag_* functions in /tag/coursetagslib.php
115 were deprecated without replacement and related JS code was removed. Config variable
116 $CFG->block_tags_showcoursetags was removed.
120 * The functions tag_set, tag_set_add, tag_set_delete and tag_assign now expect the component
121 and contextid of the item being tagged.
125 More cleanup was done to tag cloud sorting which involved some API changes, see MDL_39800
126 * tag_print_cloud() arguments were changed.
127 * coursetag_get_tags() arguments were changed.
128 * coursetag_get_all_tags() arguments were changed.
129 * coursetag_sort() was removed.
133 Significant cleanup was done to course tags which involved some API
134 changes, see MDL-15471
135 * tag_print_cloud() arguments were changed
136 * coursetag_print_cloud() was removed.
137 * coursetag_get_official_keywords() was removed
138 * coursetag_rss_feeds() was removed