public static function set_course_competency_ruleoutcome($coursecompetencyid, $ruleoutcome) {
        $params = self::validate_parameters(self::set_course_competency_ruleoutcome_parameters(), array(
            'coursecompetencyid' => $coursecompetencyid,
            'ruleoutcome' => $ruleoutcome,
        ));

        $coursecompetency = new course_competency($params['coursecompetencyid']);
        self::validate_context(context_course::instance($coursecompetency->get('courseid')));

        return api::set_course_competency_ruleoutcome($coursecompetency, $params['ruleoutcome']);
    }
public static function set_course_competency_ruleoutcome($coursecompetencyid, $ruleoutcome) {
        $params = self::validate_parameters(self::set_course_competency_ruleoutcome_parameters(), array(
            'coursecompetencyid' => $coursecompetencyid,
            'ruleoutcome' => $ruleoutcome,
        ));

        $coursecompetency = new course_competency($params['coursecompetencyid']);
        self::validate_context(context_course::instance($coursecompetency->get('courseid')));

        return api::set_course_competency_ruleoutcome($coursecompetency, $params['ruleoutcome']);
    }
public static function set_course_competency_ruleoutcome ( $ coursecompetencyid , $ ruleoutcome ) { $ params = self :: validate_parameters ( self :: set_course_competency_ruleoutcome_parameters ( ) , array ( 'coursecompetencyid' => $ coursecompetencyid , 'ruleoutcome' => $ ruleoutcome , ) ) ; $ coursecompetency = new course_competency ( $ params [ 'coursecompetencyid' ] ) ; self :: validate_context ( context_course :: instance ( $ coursecompetency -> get ( 'courseid' ) ) ) ; return api :: set_course_competency_ruleoutcome ( $ coursecompetency , $ params [ 'ruleoutcome' ] ) ; }
Change the ruleoutcome of a course competency.

@param int $coursecompetencyid The course competency id
@param int $ruleoutcome The ruleoutcome value
@return bool
Change the ruleoutcome of a course competency .