Sha256: 908232d1be056c222e30adae90d66284e39d3cbf59a799f2583e63a345994e80

Contents?: true

Size: 996 Bytes

Versions: 28

Compression:

Stored size: 996 Bytes

Contents

# Composite-Klasse von Filter und Filter-Value

class MultiSolr::FilterValueComposite

  attr_accessor :filter
  attr_accessor :value

  # Constructor
  # Params:
  #   filter: konkrete Filter-Instance (i.a. ein MultiSolr::SolrFilterSimple oder eine Subklasse davon)
  #   value:  aktueller Wert für diesen Filter (String oder Hash)
  def initialize filter, value=nil
    @filter = filter
    @value = value
  end

  # delegate der Methode 'render_value' an den Filter unter Nutzung des hinterlegten Wertes
  def render_value
    @filter.render_value @value
  end

  # delegate der Methode 'render_for_semantic_form' an den Filter unter Nutzung des hinterlegten Wertes
  def render_for_semantic_form sform, context=nil, form_input_options={}
    @filter.render_for_semantic_form sform, @value, context, form_input_options
  end


  # delegate der Methode 'build_solr_query' an den Filter unter Nutzung des hinterlegten Wertes
  def build_solr_query
    @filter.build_solr_query @value
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
multi-solr-01.12.00 lib/multi_solr/filter_value_composite.rb
multi-solr-01.11.01 lib/multi_solr/filter_value_composite.rb
multi-solr-01.11.00 lib/multi_solr/filter_value_composite.rb
multi-solr-01.10.00 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.05 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.04 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.03 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.02 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.01 lib/multi_solr/filter_value_composite.rb
multi-solr-01.09.00 lib/multi_solr/filter_value_composite.rb
multi-solr-01.08.01 lib/multi_solr/filter_value_composite.rb
multi-solr-01.08.00 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.07 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.06 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.05 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.04 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.03 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.02 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.01 lib/multi_solr/filter_value_composite.rb
multi-solr-01.07.00 lib/multi_solr/filter_value_composite.rb