original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get all of the tours.
  
  @return  stdClass[]
docstring_tokens: Get all of the tours .