Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 206... Línea 206...
206
     *
206
     *
207
     * @param   int         $tourid     The ID of the tour to duplicate.
207
     * @param   int         $tourid     The ID of the tour to duplicate.
208
     * @return  \moodle_url             The URL.
208
     * @return  \moodle_url             The URL.
209
     */
209
     */
210
    public static function get_duplicate_tour_link($tourid) {
210
    public static function get_duplicate_tour_link($tourid) {
211
        $link = new \moodle_url('/admin/tool/usertours/configure.php', [
211
        return new \moodle_url('/admin/tool/usertours/configure.php', [
212
            'action'    => manager::ACTION_DUPLICATETOUR,
212
            'action'    => manager::ACTION_DUPLICATETOUR,
213
            'id'        => $tourid,
213
            'id'        => $tourid,
-
 
214
            'sesskey'   => sesskey(),
214
        ]);
215
        ]);
215
 
-
 
216
        return $link;
-
 
217
    }
216
    }
Línea 218... Línea 217...
218
 
217
 
219
    /**
218
    /**
220
     * Get the link used to delete the tour.
219
     * Get the link used to delete the tour.