original_string: public static function reorder_plan_competency($planid, $competencyidfrom, $competencyidto) {
          $params = self::validate_parameters(self::reorder_plan_competency_parameters(), array(
              'planid' => $planid,
              'competencyidfrom' => $competencyidfrom,
              'competencyidto' => $competencyidto,
          ));
  
          $plan = api::read_plan($params['planid']);
          self::validate_context($plan->get_context());
  
          return api::reorder_plan_competency($params['planid'], $params['competencyidfrom'], $params['competencyidto']);
      }
code: public static function reorder_plan_competency($planid, $competencyidfrom, $competencyidto) {
          $params = self::validate_parameters(self::reorder_plan_competency_parameters(), array(
              'planid' => $planid,
              'competencyidfrom' => $competencyidfrom,
              'competencyidto' => $competencyidto,
          ));
  
          $plan = api::read_plan($params['planid']);
          self::validate_context($plan->get_context());
  
          return api::reorder_plan_competency($params['planid'], $params['competencyidfrom'], $params['competencyidto']);
      }
code_tokens: public static function reorder_plan_competency ( $ planid , $ competencyidfrom , $ competencyidto ) { $ params = self :: validate_parameters ( self :: reorder_plan_competency_parameters ( ) , array ( 'planid' => $ planid , 'competencyidfrom' => $ competencyidfrom , 'competencyidto' => $ competencyidto , ) ) ; $ plan = api :: read_plan ( $ params [ 'planid' ] ) ; self :: validate_context ( $ plan -> get_context ( ) ) ; return api :: reorder_plan_competency ( $ params [ 'planid' ] , $ params [ 'competencyidfrom' ] , $ params [ 'competencyidto' ] ) ; }
docstring: Change the order of plan competencies.
  
  @param int $planid The plan id
  @param int $competencyidfrom The competency to move.
  @param int $competencyidto The competency to move to.
  @return bool
docstring_tokens: Change the order of plan competencies .