public static function update_course_competency_settings($courseid, $settings) {
        $params = self::validate_parameters(self::update_course_competency_settings_parameters(), array(
            'courseid' => $courseid,
            'settings' => $settings
        ));

        $context = context_course::instance($params['courseid']);
        self::validate_context($context);
        $result = api::update_course_competency_settings($params['courseid'], $params['settings']);

        return $result;
    }
public static function update_course_competency_settings($courseid, $settings) {
        $params = self::validate_parameters(self::update_course_competency_settings_parameters(), array(
            'courseid' => $courseid,
            'settings' => $settings
        ));

        $context = context_course::instance($params['courseid']);
        self::validate_context($context);
        $result = api::update_course_competency_settings($params['courseid'], $params['settings']);

        return $result;
    }
public static function update_course_competency_settings ( $ courseid , $ settings ) { $ params = self :: validate_parameters ( self :: update_course_competency_settings_parameters ( ) , array ( 'courseid' => $ courseid , 'settings' => $ settings ) ) ; $ context = context_course :: instance ( $ params [ 'courseid' ] ) ; self :: validate_context ( $ context ) ; $ result = api :: update_course_competency_settings ( $ params [ 'courseid' ] , $ params [ 'settings' ] ) ; return $ result ; }
Update the course competency settings

@param int $courseid the course id
@param stdClass $settings The list of settings (currently only pushratingstouserplans).
@throws moodle_exception
Update the course competency settings