public static function get_new_step_link($tourid, $targettype = null) {
        $link = new \moodle_url('/admin/tool/usertours/configure.php');
        $link->param('action', manager::ACTION_NEWSTEP);
        $link->param('tourid', $tourid);
        $link->param('targettype', $targettype);

        return $link;
    }
public static function get_new_step_link($tourid, $targettype = null) {
        $link = new \moodle_url('/admin/tool/usertours/configure.php');
        $link->param('action', manager::ACTION_NEWSTEP);
        $link->param('tourid', $tourid);
        $link->param('targettype', $targettype);

        return $link;
    }
public static function get_new_step_link ( $ tourid , $ targettype = null ) { $ link = new \ moodle_url ( '/admin/tool/usertours/configure.php' ) ; $ link -> param ( 'action' , manager :: ACTION_NEWSTEP ) ; $ link -> param ( 'tourid' , $ tourid ) ; $ link -> param ( 'targettype' , $ targettype ) ; return $ link ; }
Get the link ot create a new step.

@param   int         $tourid     The ID of the tour to attach this step to.
@param   int         $targettype The type of target.

@return  moodle_url              The required URL.
Get the link ot create a new step .