class FacetapiQueryTypeRange in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/query_type.inc \FacetapiQueryTypeRange
- 7 plugins/facetapi/query_type.inc \FacetapiQueryTypeRange
Base class for range query type plugins.
Hierarchy
- class \FacetapiQueryType
- class \FacetapiQueryTypeRange
Expanded class hierarchy of FacetapiQueryTypeRange
1 string reference to 'FacetapiQueryTypeRange'
File
- plugins/
facetapi/ query_type.inc, line 136 - Interfaces and base classes for query type plugins.
View source
class FacetapiQueryTypeRange extends FacetapiQueryType {
/**
* Parses the start and end values for the date.
*/
public function extract(array $item) {
$return = array();
if (preg_match(FACETAPI_REGEX_RANGE, $item['value'], $matches)) {
$return['start'] = $matches[1];
$return['end'] = $matches[2];
}
return $return;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiQueryType:: |
protected | property | The adapter object. | |
FacetapiQueryType:: |
protected | property | The facet definition. | |
FacetapiQueryType:: |
public | function | Returns the facet's active items. | |
FacetapiQueryType:: |
public | function | Returns settings. | |
FacetapiQueryType:: |
public | function | 1 | |
FacetapiQueryTypeRange:: |
public | function |
Parses the start and end values for the date. Overrides FacetapiQueryType:: |