public static function read_course_competency_settings($courseid) {
        static::require_enabled();

        // First we do a permissions check.
        if (!course_competency_settings::can_read($courseid)) {
            $context = context_course::instance($courseid);
            throw new required_capability_exception($context, 'moodle/competency:coursecompetencyview', 'nopermissions', '');
        }

        return course_competency_settings::get_by_courseid($courseid);
    }
public static function read_course_competency_settings($courseid) {
        static::require_enabled();

        // First we do a permissions check.
        if (!course_competency_settings::can_read($courseid)) {
            $context = context_course::instance($courseid);
            throw new required_capability_exception($context, 'moodle/competency:coursecompetencyview', 'nopermissions', '');
        }

        return course_competency_settings::get_by_courseid($courseid);
    }
public static function read_course_competency_settings ( $ courseid ) { static :: require_enabled ( ) ; // First we do a permissions check. if ( ! course_competency_settings :: can_read ( $ courseid ) ) { $ context = context_course :: instance ( $ courseid ) ; throw new required_capability_exception ( $ context , 'moodle/competency:coursecompetencyview' , 'nopermissions' , '' ) ; } return course_competency_settings :: get_by_courseid ( $ courseid ) ; }
Get the competency settings for a course.

Requires moodle/competency:coursecompetencyview capability at the course context.

@param int $courseid The course id
@return course_competency_settings
Get the competency settings for a course .