public function has_course_overviewfiles() {
        global $CFG;
        if (empty($CFG->courseoverviewfileslimit)) {
            return false;
        }
        $fs = get_file_storage();
        $context = context_course::instance($this->id);
        return !$fs->is_area_empty($context->id, 'course', 'overviewfiles');
    }
public function has_course_overviewfiles() {
        global $CFG;
        if (empty($CFG->courseoverviewfileslimit)) {
            return false;
        }
        $fs = get_file_storage();
        $context = context_course::instance($this->id);
        return !$fs->is_area_empty($context->id, 'course', 'overviewfiles');
    }
public function has_course_overviewfiles ( ) { global $ CFG ; if ( empty ( $ CFG -> courseoverviewfileslimit ) ) { return false ; } $ fs = get_file_storage ( ) ; $ context = context_course :: instance ( $ this -> id ) ; return ! $ fs -> is_area_empty ( $ context -> id , 'course' , 'overviewfiles' ) ; }
Checks if course has any associated overview files

@return bool
Checks if course has any associated overview files