class FacetapiApachesolrAdapter in Facet API 6
Facet API adapter for the Apache Solr Search Integration module.
Hierarchy
- class \FacetapiAdapter
- class \FacetapiApachesolrAdapter
Expanded class hierarchy of FacetapiApachesolrAdapter
1 string reference to 'FacetapiApachesolrAdapter'
- facetapi_apachesolr_facetapi_adapter_info in contrib/
facetapi_apachesolr/ facetapi_apachesolr.module - Implementation of hook_facetapi_adapter_info().
File
- contrib/
facetapi_apachesolr/ facetapi_apachesolr.adapter.inc, line 11 - Classes used by the Facet API module.
View source
class FacetapiApachesolrAdapter extends FacetapiAdapter {
/**
* Returns a boolean flagging whether $this->_searcher executed a search.
*/
public function searchExecuted() {
return apachesolr_has_searched();
}
/**
* Returns the search keys.
*/
public function getSearchKeys() {
if (NULL === $this->_keys) {
if ($query = apachesolr_current_query()) {
return $query
->get_query_basic();
}
}
else {
return $this->_keys;
}
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiAdapter:: |
protected | property | An array of FacetapiFacet objects. | |
FacetapiAdapter:: |
protected | property | The search keys. | |
FacetapiAdapter:: |
protected | property | The module that defines the adapter. | |
FacetapiAdapter:: |
protected | property | The machine readable name of the searcher module. | |
FacetapiAdapter:: |
protected | property | The type of content indexed by $this->_searcher. | |
FacetapiAdapter:: |
public | function | Returns a facet's active items. | |
FacetapiAdapter:: |
public | function | Returns an array of the facet's active item values. | |
FacetapiAdapter:: |
public | function | Returns an instance of FacetapiFacet for a facet. | |
FacetapiAdapter:: |
public | function | Returns the module that defines the adapter. | |
FacetapiAdapter:: |
public | function | Returns the searcher module. | |
FacetapiAdapter:: |
public | function | Returns the type of content indexed by $this->_searcher. | |
FacetapiAdapter:: |
public | function | Tests whether a facet item is active by passing it's value. | |
FacetapiAdapter:: |
public | function | Sets the module that defines the adapter. | |
FacetapiAdapter:: |
public | function | Sets the searcher module. | |
FacetapiAdapter:: |
public | function | Sets the search keys. | |
FacetapiAdapter:: |
public | function | Sets the type of content indexed by $this->_searcher. | |
FacetapiAdapter:: |
public | function | Constructor, sets searcher and type of content being indexed. | |
FacetapiApachesolrAdapter:: |
public | function |
Returns the search keys. Overrides FacetapiAdapter:: |
|
FacetapiApachesolrAdapter:: |
public | function |
Returns a boolean flagging whether $this->_searcher executed a search. Overrides FacetapiAdapter:: |