public static function get_step_from_sortorder($tourid, $sortorder) {
        global $DB;

        $step = $DB->get_record('tool_usertours_steps', array('tourid' => $tourid, 'sortorder' => $sortorder));
        return step::load_from_record($step);
    }
public static function get_step_from_sortorder($tourid, $sortorder) {
        global $DB;

        $step = $DB->get_record('tool_usertours_steps', array('tourid' => $tourid, 'sortorder' => $sortorder));
        return step::load_from_record($step);
    }
public static function get_step_from_sortorder ( $ tourid , $ sortorder ) { global $ DB ; $ step = $ DB -> get_record ( 'tool_usertours_steps' , array ( 'tourid' => $ tourid , 'sortorder' => $ sortorder ) ) ; return step :: load_from_record ( $ step ) ; }
Fetch the step with the specified sortorder.

@param   int         $tourid     The tour that the step belongs to.
@param   int         $sortorder  The sortorder of the step.
@return  step
Fetch the step with the specified sortorder .