project: Moodle
summary: Epic: Collect together deprecated and planned code changes for Moodle 3.11
description: In 3.11 we can remove functionality that was deprecated in 3.7 or earlier (see ) There are a number of parts of the Moodle codebase that have been marked as deprecated as a warning to developers not to use these functions as they will be removed in future. Each of these deprecated functions, especially those in Moodle core code, should have an MDL issue associated with it. In order to time the removal of these deprecated functions issues and not lose sight of them, this issue will be used to collect them together.

1.summary: Final deprecation of booktool_print_get_toc()
description: Remove booktool_print_get_toc() as it has been replaced by the booktool_print renderer function render_print_book_toc().
2.summary: Final deprecation of i_dock_block()
description: Go through lib/tests/behat/behat_deprecated.php and remove function i_dock_block().
3.summary: Phase 2 of deprecation of functions in lib/deprecatedlib.php initially deprecated in 3.7
description: As per all functions in lib/deprecatedlib.php that were deprecated in 3.7 should be replaced with exceptions in 3.11 This includes all functions in lib/deprecatedlib.php that say since 3.7 If any functions from this file do not have this comment but also need to be finally deprecated in 3.11 - please list them in this issue description
4.summary: Final deprecation of enrol/database/cli/sync.php
description: Remove enrol/database/cli/sync.php as it has been replaced by a task in
5.summary: get_enabled_time_splitting_methods final deprecation
description: The function was deprecated in .
6.summary: Final deprecation of behat_base::TIMEOUT and related constants
description: Only if goes in! Remove the 3 constants from behat_base.php: TIMEOUT REDUCED_TIMEOUT EXTENDED_TIMEOUT
7.summary: Deprecate get_forum_discussions_paginated webservice
description: Implement get_forum_discussions_paginated_is_deprecated() method. This was missed during the initial deprecation in , so we cannot perform final deprecation at this time. Instead, lets add the deprecation method and schedule the final deprecation for 4 versions from now.
8.summary: Final deprecation of grade_cron()
description: The grade_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
9.summary: Final deprecation of portfolio_cron()
description: The portfolio_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
10.summary: Final deprecation of plagiarism_cron()
description: The plagiarism_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
11.summary: Final deprecation of question_preview_cron()
description: The question_preview_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
12.summary: Final deprecation of question_usage_statistics_cron()
description: The question_usage_statistics_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
13.summary: Final deprecation for analytics methods deprecated in
description: Several methods were deprecated in . We should delete them in Moodle 3.11
14.summary: Final deprecation of \core_analytics\manager::add_builtin_models()
description: The method \core_analytics\manager::add_builtin_models() has been deprecated in Moodle 3.7 as a part of and should be removed in Moodle 3.11
15.summary: Remove message/defaultoutputs.php and final deprecation of admin_page_manageqbehaviours class
description: All settings in message/defaultoutputs.php have been moved to admin/message.php in and can be removed.
16.summary: Deprecate unused backpack js functions
description: Deprecate backpack.js functions and file that were deprecated in 3.7. Another point to note is that badges_check_backpack_accessibility would need to be deprecated as well considering its only used in badges/ajax.php which in turn is only called from backpack.js

Below is an instruction that describes a task, paired with an input that provides an epic with this format: 
"project": "Name of the project" 
"summary": "Summary of the epic user story" 
"description": "Description of the epic user story". Write a response that appropriately completes the request.### Instruction:
Break this epic user story into smaller tasks to help the developers understand the epic better, you can divide this epic into as much as you want depending on the complexity of the epic.
### Input:
project: Moodle
summary: Epic: Collect together deprecated and planned code changes for Moodle 3.11
description: In 3.11 we can remove functionality that was deprecated in 3.7 or earlier (see ) There are a number of parts of the Moodle codebase that have been marked as deprecated as a warning to developers not to use these functions as they will be removed in future. Each of these deprecated functions, especially those in Moodle core code, should have an MDL issue associated with it. In order to time the removal of these deprecated functions issues and not lose sight of them, this issue will be used to collect them together.

### Response:
1.summary: Final deprecation of booktool_print_get_toc()
description: Remove booktool_print_get_toc() as it has been replaced by the booktool_print renderer function render_print_book_toc().
2.summary: Final deprecation of i_dock_block()
description: Go through lib/tests/behat/behat_deprecated.php and remove function i_dock_block().
3.summary: Phase 2 of deprecation of functions in lib/deprecatedlib.php initially deprecated in 3.7
description: As per all functions in lib/deprecatedlib.php that were deprecated in 3.7 should be replaced with exceptions in 3.11 This includes all functions in lib/deprecatedlib.php that say since 3.7 If any functions from this file do not have this comment but also need to be finally deprecated in 3.11 - please list them in this issue description
4.summary: Final deprecation of enrol/database/cli/sync.php
description: Remove enrol/database/cli/sync.php as it has been replaced by a task in
5.summary: get_enabled_time_splitting_methods final deprecation
description: The function was deprecated in .
6.summary: Final deprecation of behat_base::TIMEOUT and related constants
description: Only if goes in! Remove the 3 constants from behat_base.php: TIMEOUT REDUCED_TIMEOUT EXTENDED_TIMEOUT
7.summary: Deprecate get_forum_discussions_paginated webservice
description: Implement get_forum_discussions_paginated_is_deprecated() method. This was missed during the initial deprecation in , so we cannot perform final deprecation at this time. Instead, lets add the deprecation method and schedule the final deprecation for 4 versions from now.
8.summary: Final deprecation of grade_cron()
description: The grade_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
9.summary: Final deprecation of portfolio_cron()
description: The portfolio_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
10.summary: Final deprecation of plagiarism_cron()
description: The plagiarism_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
11.summary: Final deprecation of question_preview_cron()
description: The question_preview_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
12.summary: Final deprecation of question_usage_statistics_cron()
description: The question_usage_statistics_cron() function has been deprecated in 3.7 and should be finally deprecated for 4.1
13.summary: Final deprecation for analytics methods deprecated in
description: Several methods were deprecated in . We should delete them in Moodle 3.11
14.summary: Final deprecation of \core_analytics\manager::add_builtin_models()
description: The method \core_analytics\manager::add_builtin_models() has been deprecated in Moodle 3.7 as a part of and should be removed in Moodle 3.11
15.summary: Remove message/defaultoutputs.php and final deprecation of admin_page_manageqbehaviours class
description: All settings in message/defaultoutputs.php have been moved to admin/message.php in and can be removed.
16.summary: Deprecate unused backpack js functions
description: Deprecate backpack.js functions and file that were deprecated in 3.7. Another point to note is that badges_check_backpack_accessibility would need to be deprecated as well considering its only used in badges/ajax.php which in turn is only called from backpack.js
