You are here

protected function SearchApiViewsHandlerFilterOptions::get_value_options in Search API 7

Fills the value_options property with all possible options.

3 calls to SearchApiViewsHandlerFilterOptions::get_value_options()
SearchApiViewsHandlerFilterLanguage::get_value_options in contrib/search_api_views/includes/handler_filter_language.inc
Fills the value_options property with all possible options.
SearchApiViewsHandlerFilterOptions::admin_summary in contrib/search_api_views/includes/handler_filter_options.inc
Provides a summary of this filter's value for the admin UI.
SearchApiViewsHandlerFilterOptions::value_form in contrib/search_api_views/includes/handler_filter_options.inc
Provide a form for setting options.
1 method overrides SearchApiViewsHandlerFilterOptions::get_value_options()
SearchApiViewsHandlerFilterLanguage::get_value_options in contrib/search_api_views/includes/handler_filter_language.inc
Fills the value_options property with all possible options.

File

contrib/search_api_views/includes/handler_filter_options.inc, line 66
Contains the SearchApiViewsHandlerFilterOptions class.

Class

SearchApiViewsHandlerFilterOptions
Views filter handler for fields with a limited set of possible values.

Code

protected function get_value_options() {
  if (isset($this->value_options)) {
    return;
  }
  $wrapper = $this
    ->get_wrapper();
  if ($wrapper) {
    $this->value_options = $wrapper
      ->optionsList('view');
  }
  else {
    $this->value_options = array();
  }
}