class FacetapiTestAdapter in Facet API 6.3
Same name and namespace in other branches
- 7.2 tests/facetapi_test.plugins.inc \FacetapiTestAdapter
- 7 tests/facetapi_test.plugins.inc \FacetapiTestAdapter
Facet API adapter for the test module.
Hierarchy
- class \FacetapiAdapter
- class \FacetapiTestAdapter
Expanded class hierarchy of FacetapiTestAdapter
1 string reference to 'FacetapiTestAdapter'
- facetapi_test_facetapi_adapters in tests/
facetapi_test/ facetapi_test.module - Implements hook_facetapi_widgets().
File
- tests/
facetapi_test/ plugins/ facetapi/ test_adapter.inc, line 6
View source
class FacetapiTestAdapter extends FacetapiAdapter {
/**
* The total number of results in the query.
*/
protected $resultCount;
/**
* Returns a boolean flagging whether $this->searcher executed a search.
*/
public function searchExecuted() {
return !empty($this->keys);
}
/**
* Returns a boolean flagging whether facets in a realm shoud be displayed.
*/
public function suppressOutput($realm_name) {
}
/**
* Sets the result count.
*/
public function setResultCount($count) {
$this->resultCount = $count;
return $this;
}
/**
* Returns the nmber of total results found for the current search.
*/
public function getResultCount() {
return $this->resultCount;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiAdapter:: |
protected | property | An array of active filters. | |
FacetapiAdapter:: |
protected | property | Stores whether each facet passed dependencies. | |
FacetapiAdapter:: |
protected | property | An array of FacetapiFacet objects. | |
FacetapiAdapter:: |
protected | property | Searcher information retrieved by the hook. | |
FacetapiAdapter:: |
protected | property | The search keys passed by the user. | |
FacetapiAdapter:: |
protected | property | A boolean flagging whether the facets have been processed. | |
FacetapiAdapter:: |
protected | property | An array of FacetapiFacetProcessor objects. | |
FacetapiAdapter:: |
protected | property | An array of executed query type plugins keyed by field name. | |
FacetapiAdapter:: |
protected | property | Stores the search path so we only need to calculate it once. | |
FacetapiAdapter:: |
protected | property | Stores settings with defaults. | |
FacetapiAdapter:: |
protected | property | The URL processor associated with this adapter. | |
FacetapiAdapter:: |
function | Adds facet query type plugins to the queue and invokes the execute() hook to allow for the backend to add filters to its native query object. | ||
FacetapiAdapter:: |
public | function | Builds the render array for facets in a realm. | |
FacetapiAdapter:: |
public | function | Returns a facet's active items. | |
FacetapiAdapter:: |
public | function | Returns all active filters. | |
FacetapiAdapter:: |
public | function | Provides default values for the backend specific settings. | |
FacetapiAdapter:: |
public | function | Returns the enabled facets associated with the instance of the adapter. | |
FacetapiAdapter:: |
public | function | Returns a FacetapiFacet instance for the facet being rendered. | |
FacetapiAdapter:: |
public | function | Helper function that returns the facet path for a facet item. | |
FacetapiAdapter:: |
public | function | Returns a registered facet query | |
FacetapiAdapter:: |
public | function | Returns realm specific settings for a facet. | |
FacetapiAdapter:: |
public | function | Returns realm specific settings for a facet. | |
FacetapiAdapter:: |
public | function | Returns the id of the adapter plugin. | |
FacetapiAdapter:: |
public | function | Returns the human readable value associated with a facet's raw value. | |
FacetapiAdapter:: |
public | function | Returns the number of results per page. | |
FacetapiAdapter:: |
public | function | Returns the page number of the search result set. | |
FacetapiAdapter:: |
public | function | Returns the total number of pages in the result set. | |
FacetapiAdapter:: |
public | function | Returns the path to the admin settings for a given realm. | |
FacetapiAdapter:: |
public | function | Returns the processor associates with the facet. | |
FacetapiAdapter:: |
public | function | Helper function that returns the query string variables for a facet item. | |
FacetapiAdapter:: |
public | function | Returns the machine readable name of the searcher. | |
FacetapiAdapter:: |
public | function | Gets the search keys. | |
FacetapiAdapter:: |
public | function | Returns the search path. | |
FacetapiAdapter:: |
public | function | Returns the type of content indexed by $this->info['searcher']. | |
FacetapiAdapter:: |
public | function | Returns the URL Processor. | |
FacetapiAdapter:: |
public | function | Allows the backend to initialize its query object before adding the facet filters. | |
FacetapiAdapter:: |
public | function | Initializes a new settings object. | |
FacetapiAdapter:: |
public | function | Tests whether a facet item is active by passing it's value. | |
FacetapiAdapter:: |
public | function | Processes active items. | |
FacetapiAdapter:: |
public | function | Initializes facet builds, adds breadcrumb trail. | |
FacetapiAdapter:: |
public | function | Processes a raw array of active filters. | |
FacetapiAdapter:: |
public | function | Sets the search keys. | |
FacetapiAdapter:: |
public | function | Allows for backend specific overrides to the settings form. | |
FacetapiAdapter:: |
public | function | Returns TRUE if the back-end supports "minimum facet counts". | |
FacetapiAdapter:: |
public | function | Returns TRUE if the back-end supports "missing" facets. | |
FacetapiAdapter:: |
public | function | Constructor, sets searcher and type of content being indexed. | |
FacetapiTestAdapter:: |
protected | property | The total number of results in the query. | |
FacetapiTestAdapter:: |
public | function |
Returns the nmber of total results found for the current search. Overrides FacetapiAdapter:: |
|
FacetapiTestAdapter:: |
public | function |
Returns a boolean flagging whether $this->searcher executed a search. Overrides FacetapiAdapter:: |
|
FacetapiTestAdapter:: |
public | function | Sets the result count. | |
FacetapiTestAdapter:: |
public | function |
Returns a boolean flagging whether facets in a realm shoud be displayed. Overrides FacetapiAdapter:: |