public static function get_tours() {
        global $DB;

        $tours = $DB->get_records('tool_usertours_tours', array(), 'sortorder ASC');
        $return = [];
        foreach ($tours as $tour) {
            $return[$tour->id] = tour::load_from_record($tour);
        }
        return $return;
    }
public static function get_tours() {
        global $DB;

        $tours = $DB->get_records('tool_usertours_tours', array(), 'sortorder ASC');
        $return = [];
        foreach ($tours as $tour) {
            $return[$tour->id] = tour::load_from_record($tour);
        }
        return $return;
    }
public static function get_tours ( ) { global $ DB ; $ tours = $ DB -> get_records ( 'tool_usertours_tours' , array ( ) , 'sortorder ASC' ) ; $ return = [ ] ; foreach ( $ tours as $ tour ) { $ return [ $ tour -> id ] = tour :: load_from_record ( $ tour ) ; } return $ return ; }
Get all of the tours.

@return  stdClass[]
Get all of the tours .