1
|
|
|
<?php |
2
|
|
|
namespace ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionBased\Options; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the TYPO3 CMS project. |
6
|
|
|
* |
7
|
|
|
* It is free software; you can redistribute it and/or modify it under |
8
|
|
|
* the terms of the GNU General Public License, either version 2 |
9
|
|
|
* of the License, or any later version. |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please read the |
12
|
|
|
* LICENSE.txt file that was distributed with this source code. |
13
|
|
|
* |
14
|
|
|
* The TYPO3 project - inspiring people to share! |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionBased\AbstractOptionsFacet; |
18
|
|
|
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* Value object that represent a options facet. |
22
|
|
|
* |
23
|
|
|
* @author Frans Saris <[email protected]> |
24
|
|
|
* @author Timo Hund <[email protected]> |
25
|
|
|
* @package ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionsFacet |
26
|
|
|
*/ |
27
|
|
|
class OptionsFacet extends AbstractOptionsFacet |
28
|
|
|
{ |
29
|
|
|
const TYPE_OPTIONS = 'options'; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* String |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
protected static $type = self::TYPE_OPTIONS; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* OptionsFacet constructor |
39
|
|
|
* |
40
|
|
|
* @param SearchResultSet $resultSet |
41
|
|
|
* @param string $name |
42
|
|
|
* @param string $field |
43
|
|
|
* @param string $label |
44
|
|
|
* @param array $configuration Facet configuration passed from typoscript |
45
|
|
|
*/ |
46
|
50 |
|
public function __construct(SearchResultSet $resultSet, $name, $field, $label = '', array $configuration = []) |
47
|
|
|
{ |
48
|
50 |
|
parent::__construct($resultSet, $name, $field, $label, $configuration); |
49
|
50 |
|
} |
50
|
|
|
} |
51
|
|
|
|