1 | <?php |
||
31 | class ConfigurationService |
||
32 | { |
||
33 | /** |
||
34 | * @var \TYPO3\CMS\Extbase\Service\FlexFormService |
||
35 | * @inject |
||
36 | */ |
||
37 | protected $flexFormService; |
||
38 | |||
39 | /** |
||
40 | * @var \TYPO3\CMS\Extbase\Service\TypoScriptService |
||
41 | * @inject |
||
42 | */ |
||
43 | protected $typoScriptService; |
||
44 | |||
45 | /** |
||
46 | * @param \TYPO3\CMS\Extbase\Service\FlexFormService $flexFormService |
||
47 | */ |
||
48 | 1 | public function setFlexFormService($flexFormService) |
|
52 | |||
53 | /** |
||
54 | * @param \TYPO3\CMS\Extbase\Service\TypoScriptService $typoScriptService |
||
55 | */ |
||
56 | 1 | public function setTypoScriptService($typoScriptService) |
|
60 | |||
61 | /** |
||
62 | * Override the given solrConfiguration with flex form configuration. |
||
63 | * |
||
64 | * @param string $flexFormData The raw data from database. |
||
65 | * @param TypoScriptConfiguration $solrTypoScriptConfiguration |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | 29 | public function overrideConfigurationWithFlexFormSettings($flexFormData, TypoScriptConfiguration $solrTypoScriptConfiguration) |
|
81 | |||
82 | /** |
||
83 | * Override filter in configuration. |
||
84 | * |
||
85 | * Will parse the filter from flex form structure and rewrite it as typoscript structure. |
||
86 | * |
||
87 | * @param array $flexFormConfiguration |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | 2 | protected function overrideFilter(array $flexFormConfiguration) |
|
110 | |||
111 | /** |
||
112 | * Returns filter in typoscript form from flex form. |
||
113 | * |
||
114 | * @param array $flexFormConfiguration |
||
115 | * |
||
116 | * @return array |
||
117 | */ |
||
118 | 2 | protected function getFilterFromFlexForm(array $flexFormConfiguration) |
|
133 | } |
||
134 |