You are here

test_query_type.inc in Facet API 6.3

File

tests/facetapi_test/plugins/facetapi/test_query_type.inc
View 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

Namesort descending Description
FacetapiTestTerm Plugin for "term" query types.