protected function get_child_course($course) {
        context_helper::preload_from_record($course);
        $context = context_course::instance($course->id);
        $child = new file_info_context_course($this->browser, $context, $course);
        return $child->get_file_info(null, null, null, null, null);
    }
protected function get_child_course($course) {
        context_helper::preload_from_record($course);
        $context = context_course::instance($course->id);
        $child = new file_info_context_course($this->browser, $context, $course);
        return $child->get_file_info(null, null, null, null, null);
    }
protected function get_child_course ( $ course ) { context_helper :: preload_from_record ( $ course ) ; $ context = context_course :: instance ( $ course -> id ) ; $ child = new file_info_context_course ( $ this -> browser , $ context , $ course ) ; return $ child -> get_file_info ( null , null , null , null , null ) ; }
Returns the file info element for a given course or null if course is not accessible

@param stdClass $course may contain context fields for preloading
@return file_info_context_course|null
Returns the file info element for a given course or null if course is not accessible