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']);
    }
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']);
    }
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' ] ) ; }
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
Change the order of template competencies .