public function SearchApiQuery::getOption in Search API 7
Retrieves an option set on this search query.
Parameters
string $name: The name of an option.
mixed $default: The value to return if the specified option is not set.
Return value
mixed The value of the option with the specified name, if set. NULL otherwise.
Overrides SearchApiQueryInterface::getOption
1 call to SearchApiQuery::getOption()
- SearchApiQuery::setOption in includes/
query.inc - Sets an option for this search query.
File
- includes/
query.inc, line 791 - Contains SearchApiQueryInterface and SearchApiQuery.
Class
- SearchApiQuery
- Provides a standard implementation of the SearchApiQueryInterface.
Code
public function getOption($name, $default = NULL) {
return array_key_exists($name, $this->options) ? $this->options[$name] : $default;
}