public static function prepare_filter_values_for_form(tour $tour, \stdClass $data) {
        $filtername = static::get_filter_name();
        $key = "filter_{$filtername}";
        $values = $tour->get_filter_values($filtername);
        if (empty($values)) {
            $values = 0;
        }
        $data->$key = $values;
        return $data;
    }
public static function prepare_filter_values_for_form(tour $tour, \stdClass $data) {
        $filtername = static::get_filter_name();
        $key = "filter_{$filtername}";
        $values = $tour->get_filter_values($filtername);
        if (empty($values)) {
            $values = 0;
        }
        $data->$key = $values;
        return $data;
    }
public static function prepare_filter_values_for_form ( tour $ tour , \ stdClass $ data ) { $ filtername = static :: get_filter_name ( ) ; $ key = "filter_{$filtername}" ; $ values = $ tour -> get_filter_values ( $ filtername ) ; if ( empty ( $ values ) ) { $ values = 0 ; } $ data -> $ key = $ values ; return $ data ; }
Overrides the base prepare the filter values for the form with an integer value.

@param   tour            $tour       The tour to prepare values from
@param   stdClass        $data       The data value
@return  stdClass
Overrides the base prepare the filter values for the form with an integer value .