MDL-73863 course: Deprecate unused methods

This commit is contained in:
Mihail Geshoski
2022-03-10 12:28:39 +08:00
parent 36fe5695fe
commit 135e1a2dce
4 changed files with 15 additions and 0 deletions
+4
View File
@@ -262,10 +262,14 @@ class manager {
/**
* Gets the available completion tabs for the current course and user.
*
* @deprecated since Moodle 4.0
* @param stdClass|int $courseorid the course object or id.
* @return tabobject[]
*/
public static function get_available_completion_tabs($courseorid) {
debugging('get_available_completion_tabs() has been deprecated. Please use ' .
'core_completion\manager::get_available_completion_options() instead.', DEBUG_DEVELOPER);
$tabs = [];
$courseid = is_object($courseorid) ? $courseorid->id : $courseorid;