MDL-68612 user: Unified filter deprecations - renderer and renderable

This commit is contained in:
Michael Hawkins 2020-05-06 18:39:22 +08:00
parent 2396e3156f
commit 03cb6064ea
3 changed files with 22 additions and 0 deletions

View file

@ -110,6 +110,7 @@ class core_user_renderer extends plugin_renderer_base {
/**
* Renders the unified filter element for the course participants page.
* @deprecated since Moodle 3.9 MDL-68612 - Please use participants_filter() instead.
*
* @param stdClass $course The course object.
* @param context $context The context object.
@ -120,6 +121,8 @@ class core_user_renderer extends plugin_renderer_base {
public function unified_filter($course, $context, $filtersapplied, $baseurl = null) {
global $CFG, $DB, $USER;
debugging('core_user_renderer->unified_filter() is deprecated. Please use participants_filter() instead.', DEBUG_DEVELOPER);
require_once($CFG->dirroot . '/enrol/locallib.php');
require_once($CFG->dirroot . '/lib/grouplib.php');
$manager = new course_enrolment_manager($this->page, $course);