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