class FacetapiTestTerm in Facet API 7.2
Same name and namespace in other branches
- 6.3 tests/facetapi_test/plugins/facetapi/test_query_type.inc \FacetapiTestTerm
- 7 tests/facetapi_test.plugins.inc \FacetapiTestTerm
Plugin for "term" query type.
Hierarchy
- class \FacetapiQueryType
- class \FacetapiTestTerm implements FacetapiQueryTypeInterface
Expanded class hierarchy of FacetapiTestTerm
1 string reference to 'FacetapiTestTerm'
- facetapi_test_facetapi_query_types in tests/
facetapi_test.facetapi.inc - Implements hook_facetapi_query_types().
File
- tests/
facetapi_test.plugins.inc, line 71 - Test adapter and plugins.
View source
class FacetapiTestTerm extends FacetapiQueryType implements FacetapiQueryTypeInterface {
/**
* Implements FacetapiQueryTypeInterface::getType().
*/
public static function getType() {
return 'term';
}
/**
* Implements FacetapiQueryTypeInterface::execute().
*/
public function execute($query) {
// Nothing to do...
}
/**
* Implements FacetapiQueryTypeInterface::build().
*/
public function build() {
$build = array();
$build['testthree'] = array(
'#count' => 3,
);
$build['testone'] = array(
'#count' => 1,
);
$build['testtwo'] = array(
'#count' => 2,
);
// Returns initialized build.
return $build;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiQueryType:: |
protected | property | The adapter associated with facet being queried. | |
FacetapiQueryType:: |
protected | property | The facet definition as returned by facetapi_facet_load(). | |
FacetapiQueryType:: |
public | function | Adds additional information to the array active items. | 2 |
FacetapiQueryType:: |
public | function | Returns the facet's active items. | |
FacetapiQueryType:: |
public | function | Convenience method to get the facet's global and per realm settings. | |
FacetapiQueryType:: |
public | function | Constructs a FacetapiQueryType object. | 1 |
FacetapiTestTerm:: |
public | function |
Implements FacetapiQueryTypeInterface::build(). Overrides FacetapiQueryTypeInterface:: |
|
FacetapiTestTerm:: |
public | function |
Implements FacetapiQueryTypeInterface::execute(). Overrides FacetapiQueryTypeInterface:: |
|
FacetapiTestTerm:: |
public static | function |
Implements FacetapiQueryTypeInterface::getType(). Overrides FacetapiQueryTypeInterface:: |