Skip to content
Snippets Groups Projects
Commit 929bec17 authored by Georgi's avatar Georgi
Browse files

[BUGFIX] Code review

parent 3550977b
No related branches found
No related tags found
1 merge request!13Feature frontend filters
......@@ -38,8 +38,6 @@ class QueryStringFilter implements FilterInterface {
public function __construct(array $filterValues, array $filterConfig) {
$this->filterValues = $filterValues;
$this->filterConfig = $filterConfig;
// $this->applyDefaultFilterValues();
}
/**
......@@ -70,14 +68,4 @@ class QueryStringFilter implements FilterInterface {
public function setFilterValues(array $filterValues): void {
$this->filterValues = $filterValues;
}
protected function applyDefaultFilterValues(): void {
if (isset($this->filterConfig['defaultValues']) && !empty($this->filterConfig['defaultValues'])) {
foreach ($this->filterConfig['defaultValues'] as $key => $value) {
if (!isset($this->filterValues[$key])) {
$this->filterValues[$key] = $value;
}
}
}
}
}
......@@ -2,19 +2,25 @@
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
......@@ -29,11 +35,6 @@ use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
class FlexFormUtility
{
/**
* Generate dynamic filter checkboxes in the FlexForm
*
* @return array
*/
/**
* Get the dynamic options for the select field
*
......@@ -42,9 +43,6 @@ class FlexFormUtility
*/
public function getOptions(array &$config)
{
// Get the current page ID from the FlexForm context
$pageId = (int) $config['effectivePid'];
$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
$fullTypoScript = $configurationManager->getConfiguration(
ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT
......
......@@ -251,7 +251,7 @@
</trans-unit>
<trans-unit id="configuration.uncached" resname="configuration.uncached" approved="yes">
<source><![CDATA[Uncached]]></source>
<target><![CDATA[Ungecachet]]></target>
<target><![CDATA[Ungecached]]></target>
</trans-unit>
<trans-unit id="configuration.uncached.description" resname="configuration.uncached.description" approved="yes">
<source><![CDATA[If you use frontend filters or you want the plugin to be uncached - set this value to 1]]></source>
......@@ -282,8 +282,8 @@
<target>Filter</target>
</trans-unit>
<trans-unit id="flexform.backend.filters.description">
<source>Below are the available Frontend filters. Select which of them you would like to activate for this plugin instance.</source>
<target>Nachfolgend finden Sie die verfügbaren Frontend-Filter. Wählen Sie aus, welche davon Sie für diese Plugin-Instanz aktivieren möchten.</target>
<source>Below are the available Frontend filters. Select which of them you would like to activate for this plugin instance. If you select any of the filters, you must set the extension to uncached. Please refer to the official extension documentation.</source>
<target>Nachfolgend finden Sie die verfügbaren Frontend-Filter. Wählen Sie aus, welche davon Sie für diese Plugin-Instanz aktivieren möchten. Wenn Sie einen der Filter auswählen, müssen Sie die Erweiterung auf uncached setzen. Bitte lesen Sie die offizielle Dokumentation der Erweiterung.</target>
</trans-unit>
<trans-unit id="response.noItemsFound">
<source>No videos found</source>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment