test_query_type.inc in Facet API 6.3
File
tests/facetapi_test/plugins/facetapi/test_query_type.incView source
<?php
/**
* Plugin for "term" query types.
*/
class FacetapiTestTerm extends FacetapiQueryType implements FacetapiQueryTypeInterface {
public static function getType() {
return 'term';
}
public function execute($query) {
// Nothing to do...
}
public function build() {
$build = array();
$build['testone'] = array(
'#count' => 1,
);
$build['testtwo'] = array(
'#count' => 2,
);
$build['testthree'] = array(
'#count' => 3,
);
// Returns initialized build.
return $build;
}
}
Classes
Name | Description |
---|---|
FacetapiTestTerm | Plugin for "term" query types. |