protected function move_tour($id) {
        require_sesskey();

        $direction = required_param('direction', PARAM_INT);

        $tour = tour::instance($id);
        self::_move_tour($tour, $direction);

        redirect(helper::get_list_tour_link());
    }
protected function move_tour($id) {
        require_sesskey();

        $direction = required_param('direction', PARAM_INT);

        $tour = tour::instance($id);
        self::_move_tour($tour, $direction);

        redirect(helper::get_list_tour_link());
    }
protected function move_tour ( $ id ) { require_sesskey ( ) ; $ direction = required_param ( 'direction' , PARAM_INT ) ; $ tour = tour :: instance ( $ id ) ; self :: _move_tour ( $ tour , $ direction ) ; redirect ( helper :: get_list_tour_link ( ) ) ; }
Move a tour up or down and redirect once complete.

@param   int     $id     The tour to move.
Move a tour up or down and redirect once complete .