From 063b7ee647a52578a14277d291f9ad942785b683 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 11 Apr 2017 18:12:08 +0800 Subject: [PATCH] MDL-58507 core: link functions with final deprecation issue --- course/externallib.php | 6 +++--- lib/deprecatedlib.php | 4 ++++ mod/assign/lib.php | 6 +++--- mod/chat/lib.php | 2 +- mod/choice/lib.php | 2 +- mod/forum/lib.php | 4 ++-- mod/lesson/lib.php | 2 +- mod/quiz/lib.php | 4 ++-- mod/scorm/lib.php | 2 +- 9 files changed, 18 insertions(+), 14 deletions(-) diff --git a/course/externallib.php b/course/externallib.php index 5d9a7d12f66..ebd4a364bf8 100644 --- a/course/externallib.php +++ b/course/externallib.php @@ -2662,7 +2662,7 @@ class core_course_external extends external_api { * Returns description of method parameters * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @return external_function_parameters * @since Moodle 3.2 */ @@ -2678,7 +2678,7 @@ class core_course_external extends external_api { * Return activities overview for the given courses. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @param array $courseids a list of course ids * @return array of warnings and the activities overview * @since Moodle 3.2 @@ -2737,7 +2737,7 @@ class core_course_external extends external_api { * Returns description of method result value * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @return external_description * @since Moodle 3.2 */ diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 09b22a642ae..6be8c82667f 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -6551,6 +6551,7 @@ function calendar_preferences_button(stdClass $course) { * Return the name of the weekday * * @deprecated since 3.3 + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57617. * @param string $englishname * @return string of the weekeday */ @@ -6563,6 +6564,7 @@ function calendar_wday_name($englishname) { * Get the upcoming event block. * * @deprecated since 3.3 + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57617. * @param array $events list of events * @param moodle_url|string $linkhref link to event referer * @param boolean $showcourselink whether links to courses should be shown @@ -6583,6 +6585,7 @@ function calendar_get_block_upcoming($events, $linkhref = null, $showcourselink * Display month selector options. * * @deprecated since 3.3 + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57617. * @param string $name for the select element * @param string|array $selected options for select elements */ @@ -6600,6 +6603,7 @@ function calendar_print_month_selector($name, $selected) { * Update calendar subscriptions. * * @deprecated since 3.3 + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57617. * @return bool */ function calendar_cron() { diff --git a/mod/assign/lib.php b/mod/assign/lib.php index 29370af3442..4c92de21a66 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -491,7 +491,7 @@ function assign_page_type_list($pagetype, $parentcontext, $currentcontext) { * for the courses. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @param mixed $courses The list of courses to print the overview for * @param array $htmlarray The array of html to return * @return true @@ -634,7 +634,7 @@ function assign_print_overview($courses, &$htmlarray) { * assignment. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @param array $mysubmissions list of submissions of current user indexed by assignment id. * @param string $sqlassignmentids sql clause used to filter open assignments. * @param array $assignmentidparams sql params used to filter open assignments. @@ -724,7 +724,7 @@ function assign_get_mysubmission_details_for_print_overview(&$mysubmissions, $sq * assignment's submissions. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @param array $unmarkedsubmissions list of submissions of that are currently unmarked indexed by assignment id. * @param string $sqlassignmentids sql clause used to filter open assignments. * @param array $assignmentidparams sql params used to filter open assignments. diff --git a/mod/chat/lib.php b/mod/chat/lib.php index bc4d8639335..8f9b442090b 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -1130,7 +1130,7 @@ function chat_get_post_actions() { /** * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @global object * @global object * @param array $courses diff --git a/mod/choice/lib.php b/mod/choice/lib.php index abb250441a5..56116cb7c39 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -923,7 +923,7 @@ function choice_page_type_list($pagetype, $parentcontext, $currentcontext) { * and it is available for completing. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @uses CONTEXT_MODULE * @param array $courses An array of course objects to get choice instances from. * @param array $htmlarray Store overview output array( course ID => 'choice' => HTML output ) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index b66923e37ca..9276b2ad303 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1333,7 +1333,7 @@ function forum_user_complete($course, $user, $mod, $forum) { * Filters the forum discussions according to groups membership and config. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @since Moodle 2.8, 2.7.1, 2.6.4 * @param array $discussions Discussions with new posts array * @return array Forums with the number of new posts @@ -1398,7 +1398,7 @@ function forum_is_user_group_discussion(cm_info $cm, $discussiongroupid) { /** * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @global object * @global object * @global object diff --git a/mod/lesson/lib.php b/mod/lesson/lib.php index 12c3b6beb3b..bb8ff900fc0 100644 --- a/mod/lesson/lib.php +++ b/mod/lesson/lib.php @@ -532,7 +532,7 @@ function lesson_user_complete($course, $user, $mod, $lesson) { * and it is available for taking. * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @global object * @global stdClass * @global object diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 1c523429a6b..c7195fa135d 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -1555,8 +1555,8 @@ function quiz_reset_userdata($data) { * Prints quiz summaries on MyMoodle Page * * @deprecated since 3.3 - * - * @param arry $courses + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. + * @param array $courses * @param array $htmlarray */ function quiz_print_overview($courses, &$htmlarray) { diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 7a27ca632f7..0aee522e31a 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -1091,7 +1091,7 @@ function scorm_debug_log_remove($type, $scoid) { * writes overview info for course_overview block - displays upcoming scorm objects that have a due date * * @deprecated since 3.3 - * + * @todo The final deprecation of this function will take place in Moodle 3.7 - see MDL-57487. * @param object $type - type of log(aicc,scorm12,scorm13) used as prefix for filename * @param array $htmlarray * @return mixed