original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Get the competency settings for a course .