Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
# qbank_managecategories Upgrade notes
2
 
3
## 4.5
4
 
5
### Changed
6
 
7
- The `\qbank_managecategories\question_category_object` class has been deprecated.
8
  Methods previously part of this class have been moved to either
9
 
10
   - `\qbank_managecategories\question_categories`,
11
    for the parts used within this plugin for display a list of categories; or
12
 
13
  `\core_question\category_manager`,
14
    for the parts used for generate CRUD operations on question categories, including outside of this plugin.
15
 
16
  This change will allow `\qbank_managecategories\question_category_object` to be deprecated, and avoids other parts of the system wishing to manipulate question categories from having to violate cross-component communication rules.
17
 
18
  For more information see [MDL-72397](https://tracker.moodle.org/browse/MDL-72397)
19
 
20
### Deprecated
21
 
22
- Category lists are now generated by templates. The following classes have been deprecated:
23
  - `\qbank_managecategories\question_category_list`
24
  - `\qbank_managecategories\question_category_list_item`
25
 
26
  For more information see [MDL-72397](https://tracker.moodle.org/browse/MDL-72397)
27
- The following methods of `\qbank_managecategories\helper`have been deprecated and moved to
28
  `\core_question\category_manager`:
29
 
30
  | Method                                               | Replacement                                                                  |
31
  | ---                                                  | ---                                                                          |
32
  | `question_is_only_child_of_top_category_in_context`  | `\core_question\category_manager::is_only_child_of_top_category_in_context`  |
33
  | `question_is_top_category`                           | `\core_question\category_manager::is_top_category`                           |
34
  | `question_can_delete_cat`                            | `\core_question\category_manager::can_delete_cat`                            |
35
 
36
  For more information see [MDL-72397](https://tracker.moodle.org/browse/MDL-72397)
37
- `\qbank_managecategories\question_category_object` is now completely deprecated. Its methods have either been migrated to `\qbank_managecategories\question_categories`, `\core_question\category_manager`, or are no longer used at all.
38
 
39
  For more information see [MDL-72397](https://tracker.moodle.org/browse/MDL-72397)