original_string: 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']);
      }
code: 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']);
      }
code_tokens: 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' ] ) ; }
docstring: Change the ruleoutcome of a course competency.
  
  @param int $coursecompetencyid The course competency id
  @param int $ruleoutcome The ruleoutcome value
  @return bool
docstring_tokens: Change the ruleoutcome of a course competency .