1 | <?php |
||
27 | class AbstractOptionsFacet extends AbstractFacet |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @var OptionCollection |
||
32 | */ |
||
33 | protected $options; |
||
34 | |||
35 | /** |
||
36 | * OptionsFacet constructor |
||
37 | * |
||
38 | * @param SearchResultSet $resultSet |
||
39 | * @param string $name |
||
40 | * @param string $field |
||
41 | * @param string $label |
||
42 | * @param array $configuration Facet configuration passed from typoscript |
||
43 | */ |
||
44 | public function __construct(SearchResultSet $resultSet, $name, $field, $label = '', array $configuration = []) |
||
49 | |||
50 | /** |
||
51 | * @return OptionCollection |
||
52 | */ |
||
53 | public function getOptions() |
||
57 | |||
58 | /** |
||
59 | * @param OptionCollection $options |
||
60 | */ |
||
61 | public function setOptions($options) |
||
65 | |||
66 | /** |
||
67 | * @param AbstractOptionFacetItem $option |
||
68 | */ |
||
69 | public function addOption(AbstractOptionFacetItem $option) |
||
73 | |||
74 | /** |
||
75 | * The implementation of this method should return a "flatten" collection of all items. |
||
76 | * |
||
77 | * @return OptionCollection |
||
78 | */ |
||
79 | public function getAllFacetItems() |
||
83 | |||
84 | /** |
||
85 | * Get facet partial name used for rendering the facet |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getPartialName() |
||
93 | } |
||
94 |