mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-69521 core: Move all comments in code from 4.3 to 4.1
This commit is contained in:
parent
2b766e57b6
commit
432b9a9075
@ -18,7 +18,7 @@
|
||||
* Form for scheduled tasks admin pages.
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-63580. Please use the \core\task\manager.
|
||||
* @todo final deprecation. To be removed in Moodle 4.3 MDL-63594.
|
||||
* @todo final deprecation. To be removed in Moodle 4.1 MDL-63594.
|
||||
*
|
||||
* @package tool_task
|
||||
* @copyright 2018 Toni Barbera <toni@moodle.com>
|
||||
|
@ -18,7 +18,7 @@
|
||||
* Task executor for adhoc tasks.
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-63580. Please use the admin/cli/adhoc_task.php.
|
||||
* @todo final deprecation. To be removed in Moodle 4.3 MDL-63594.
|
||||
* @todo final deprecation. To be removed in Moodle 4.1 MDL-63594.
|
||||
*
|
||||
* @package tool_task
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
|
@ -18,7 +18,7 @@
|
||||
* CLI task execution.
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-63580. Please use the admin/cli/schedule_task.php.
|
||||
* @todo final deprecation. To be removed in Moodle 4.3 MDL-63594.
|
||||
* @todo final deprecation. To be removed in Moodle 4.1 MDL-63594.
|
||||
*
|
||||
* @package tool_task
|
||||
* @copyright 2014 Petr Skoda
|
||||
|
@ -298,7 +298,7 @@ class content_item_readonly_repository implements content_item_readonly_reposito
|
||||
}
|
||||
|
||||
} else if (component_callback_exists('mod_' . $mod->name, 'get_shortcuts')) {
|
||||
// TODO: MDL-68011 this block needs to be removed in 4.3.
|
||||
// TODO: MDL-68011 this block needs to be removed in 4.1.
|
||||
debugging('The callback get_shortcuts has been deprecated. Please use get_course_content_items and
|
||||
get_all_content_items instead. Some features of the activity chooser, such as favourites and recommendations
|
||||
are not supported when providing content items via the deprecated callback.');
|
||||
|
@ -7348,12 +7348,12 @@ class admin_setting_manageantiviruses extends admin_setting {
|
||||
*
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.9 MDL-45184. Please use \tool_licensemanager\manager instead.
|
||||
* @todo MDL-45184 This class will be deleted in Moodle 4.3.
|
||||
* @todo MDL-45184 This class will be deleted in Moodle 4.1.
|
||||
*/
|
||||
class admin_setting_managelicenses extends admin_setting {
|
||||
/**
|
||||
* @deprecated since Moodle 3.9 MDL-45184. Please use \tool_licensemanager\manager instead.
|
||||
* @todo MDL-45184 This class will be deleted in Moodle 4.3
|
||||
* @todo MDL-45184 This class will be deleted in Moodle 4.1
|
||||
*/
|
||||
public function __construct() {
|
||||
global $ADMIN;
|
||||
@ -7375,7 +7375,7 @@ class admin_setting_managelicenses extends admin_setting {
|
||||
* Always returns true, does nothing
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-45184.
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.3
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.1
|
||||
*
|
||||
* @return true
|
||||
*/
|
||||
@ -7390,7 +7390,7 @@ class admin_setting_managelicenses extends admin_setting {
|
||||
* Always returns true, does nothing
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-45184.
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.3
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.1
|
||||
*
|
||||
* @return true
|
||||
*/
|
||||
@ -7405,7 +7405,7 @@ class admin_setting_managelicenses extends admin_setting {
|
||||
* Always returns '', does not write anything
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-45184.
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.3
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.1
|
||||
*
|
||||
* @return string Always returns ''
|
||||
*/
|
||||
@ -7421,7 +7421,7 @@ class admin_setting_managelicenses extends admin_setting {
|
||||
* Builds the XHTML to display the control
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-45184. Please use \tool_licensemanager\manager instead.
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.3
|
||||
* @todo MDL-45184 This method will be deleted in Moodle 4.1
|
||||
*
|
||||
* @param string $data Unused
|
||||
* @param string $query
|
||||
|
@ -28,7 +28,7 @@ namespace core\task;
|
||||
* Note - this is only for plugins using the legacy cron method,
|
||||
* plugins can also now just add their own scheduled tasks which is the preferred method.
|
||||
* @deprecated since Moodle 3.9 MDL-52846. Please use new task API.
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.3
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.1
|
||||
*/
|
||||
class legacy_plugin_cron_task extends scheduled_task {
|
||||
|
||||
|
@ -2944,7 +2944,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = null) {
|
||||
* with other processing (other than displaying the rest of the page) after using this function!
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-63580. Please use the \core\task\manager::run_from_cli($task).
|
||||
* @todo final deprecation. To be removed in Moodle 4.3 MDL-63594.
|
||||
* @todo final deprecation. To be removed in Moodle 4.1 MDL-63594.
|
||||
* @param \core\task\scheduled_task $task Task to run
|
||||
* @return bool True if cron run successful
|
||||
*/
|
||||
@ -2962,7 +2962,7 @@ function cron_run_single_task(\core\task\scheduled_task $task) {
|
||||
* and 'Finished (whatever)' lines, otherwise does not display
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-52846. Please use new task API.
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.3.
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.1.
|
||||
*/
|
||||
function cron_execute_plugin_type($plugintype, $description = null) {
|
||||
global $DB;
|
||||
@ -3036,7 +3036,7 @@ function cron_execute_plugin_type($plugintype, $description = null) {
|
||||
* looking in the older location
|
||||
*
|
||||
* @deprecated since Moodle 3.9 MDL-52846. Please use new task API.
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.3.
|
||||
* @todo MDL-61165 This will be deleted in Moodle 4.1.
|
||||
*/
|
||||
function cron_bc_hack_plugin_functions($plugintype, $plugins) {
|
||||
global $CFG; // Mandatory in case it is referenced by include()d PHP script.
|
||||
|
@ -96,7 +96,7 @@ class license_manager {
|
||||
* Adding a new license type
|
||||
*
|
||||
* @deprecated Since Moodle 3.9, MDL-45184.
|
||||
* @todo MDL-67344 This will be deleted in Moodle 4.3.
|
||||
* @todo MDL-67344 This will be deleted in Moodle 4.1.
|
||||
* @see license_manager::save()
|
||||
*
|
||||
* @param object $license the license record to add.
|
||||
|
@ -79,7 +79,7 @@ function plagiarism_get_file_results($cmid, $userid, $file) {
|
||||
* saves/updates plagiarism settings from a modules config page - called by course/modedit.php
|
||||
*
|
||||
* @deprecated Since Moodle 3.9. MDL-65835 Please use {plugin name}_coursemodule_edit_post_actions() instead.
|
||||
* @todo MDL-67526 This is to be moved from here to deprecatedlib.php in Moodle 4.3
|
||||
* @todo MDL-67526 This is to be moved from here to deprecatedlib.php in Moodle 4.1
|
||||
* @param object $data - form data
|
||||
*/
|
||||
function plagiarism_save_form_elements($data) {
|
||||
@ -108,7 +108,7 @@ function plagiarism_save_form_elements($data) {
|
||||
* adds the list of plagiarism settings to a form - called inside modules that have enabled plagiarism
|
||||
*
|
||||
* @deprecated Since Moodle 3.9. MDL-65835 Please use {plugin name}_coursemodule_standard_elements() instead.
|
||||
* @todo MDL-67526 This is to be moved from here to deprecatedlib.php in Moodle 4.3
|
||||
* @todo MDL-67526 This is to be moved from here to deprecatedlib.php in Moodle 4.1
|
||||
* @param object $mform - Moodle form object
|
||||
* @param object $context - context object
|
||||
* @param string $modulename - Name of the module
|
||||
@ -181,7 +181,7 @@ function plagiarism_print_disclosure($cmid) {
|
||||
/**
|
||||
* Helper function - also loads lib file of plagiarism plugin
|
||||
*
|
||||
* @todo MDL-67872 the deprecated code in this function to be removed in Moodle 4.3
|
||||
* @todo MDL-67872 the deprecated code in this function to be removed in Moodle 4.1
|
||||
* @return array of available plugins
|
||||
*/
|
||||
function plagiarism_load_available_plugins() {
|
||||
|
@ -109,7 +109,7 @@ information provided here is intended especially for developers.
|
||||
- type: specifies the calendar type. Optional, defaults to Gregorian.
|
||||
- fixday: Whether to remove leading zero for day. Optional, defaults to 1.
|
||||
- fixhour: Whether to remove leading zero for hour. Optional, defaults to 1.
|
||||
* Legacy cron has been deprecated and will be removed in Moodle 4.3. This includes the functions:
|
||||
* Legacy cron has been deprecated and will be removed in Moodle 4.1. This includes the functions:
|
||||
- cron_execute_plugin_type()
|
||||
- cron_bc_hack_plugin_functions()
|
||||
Please, use the Task API instead: https://docs.moodle.org/dev/Task_API
|
||||
|
@ -228,7 +228,7 @@ function lti_delete_instance($id) {
|
||||
* This is so you can add an external tool types directly to the activity chooser
|
||||
*
|
||||
* @deprecated since 3.9
|
||||
* @todo MDL-68011 This is to be moved from here to deprecatedlib.php in Moodle 4.3
|
||||
* @todo MDL-68011 This is to be moved from here to deprecatedlib.php in Moodle 4.1
|
||||
* @param stdClass $defaultitem default item that would be added to the activity chooser if this callback was not present.
|
||||
* It has properties: archetype, name, title, help, icon, link
|
||||
* @return array An array of aliases for this activity. Each element is an object with same list of properties as $defaultitem,
|
||||
|
Loading…
x
Reference in New Issue
Block a user