public function is_tracked_user($userid) {
        return is_enrolled(context_course::instance($this->course->id), $userid, 'moodle/course:isincompletionreports', true);
    }
public function is_tracked_user($userid) {
        return is_enrolled(context_course::instance($this->course->id), $userid, 'moodle/course:isincompletionreports', true);
    }
public function is_tracked_user ( $ userid ) { return is_enrolled ( context_course :: instance ( $ this -> course -> id ) , $ userid , 'moodle/course:isincompletionreports' , true ) ; }
Checks to see if the userid supplied has a tracked role in
this course

@param int $userid User id
@return bool
Checks to see if the userid supplied has a tracked role in this course