[TASK] Cleanup extension configuration 05/51205/2
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 23:15:57 +0000 (18:15 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 23:20:29 +0000 (00:20 +0100)
Cleanup configuration and remove code applicable only to
TYPO3 CMS 6.2 LTS

Change-Id: I3868b8a82690fb31249187e8038536b6b1fe80a2
Resolves: #79207
Reviewed-on: https://review.typo3.org/51205
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
18 files changed:
ChangeLog
Classes/Hook/Backend/Form/ElementRenderingHelper.php [deleted file]
Classes/Hook/Backend/Form/SuggestReceiver.php [deleted file]
Configuration/TCA/Overrides/enable_editing.php [new file with mode: 0644]
Configuration/TCA/Overrides/static_countries.php [deleted file]
Configuration/TCA/Overrides/static_country_zones.php [deleted file]
Configuration/TCA/Overrides/static_currencies.php [deleted file]
Configuration/TCA/Overrides/static_languages.php [deleted file]
Configuration/TCA/Overrides/static_territories.php [deleted file]
Configuration/TCA/Overrides/sys_language.php
Configuration/TCA/Overrides/tx_rtehtmlarea_acronym.php
Configuration/TCA/static_countries.php
Configuration/TCA/static_country_zones.php
Configuration/TCA/static_currencies.php
Configuration/TCA/static_languages.php
Configuration/TCA/static_territories.php
ext_localconf.php
ext_tables.php

index ef2288a..75294a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-08  Stanislas Rolland  <typo3(arobas)sjbr.ca>
+
+       * Resolves #79207: Cleanup extension configuration
+
 2017-01-07  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
        * Cleanup ManagerController.php
diff --git a/Classes/Hook/Backend/Form/ElementRenderingHelper.php b/Classes/Hook/Backend/Form/ElementRenderingHelper.php
deleted file mode 100644 (file)
index 1b217ff..0000000
+++ /dev/null
@@ -1,334 +0,0 @@
-<?php
-namespace SJBR\StaticInfoTables\Hook\Backend\Form;
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2013-2014 Stanislas Rolland <typo3(arobas)sjbr.ca>
-*  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 2 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!
-***************************************************************/
-/**
- * Custom rendering of some backend forms elements
- *
- */
-
-use SJBR\StaticInfoTables\Utility\ModelUtility;
-use SJBR\StaticInfoTables\Utility\TcaUtility;
-use SJBR\StaticInfoTables\Utility\LocalizationUtility;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
-class ElementRenderingHelper {
-       /**
-        * Translate selected items before rendering
-        */
-       public function getSingleField_beforeRender($table, $field, $row, &$PA) {
-               if ($PA['fieldConf']['config']['form_type'] == 'select' && $PA['fieldConf']['config']['maxitems'] > 1) {
-                       switch ($PA['fieldConf']['config']['foreign_table']) {
-                               case 'static_countries':
-                               case 'static_currencies':
-                               case 'static_languages':
-                               case 'static_territories':
-                                       $PA['itemFormElValue'] = $this->translateSelectedItems($PA['itemFormElValue'], $PA['fieldConf']['config']['foreign_table']);
-                                       break;
-                       }
-               }
-       }
-
-       /**
-        * Add ISO codes to the label of entities
-        */
-       public function addIsoCodeToLabel (&$PA, &$fObj) {
-               $PA['title'] = $PA['row'][$GLOBALS['TCA'][$PA['table']]['ctrl']['label']];
-               if (TYPO3_MODE == 'BE') {
-                       /** @var $objectManager \TYPO3\CMS\Extbase\Object\ObjectManager */
-                       $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
-                       switch ($PA['table']) {
-                               case 'static_territories':
-                                       $isoCode = $PA['row']['tr_iso_nr'];
-                                       if (!$isoCode) {
-                                               /** @var $territoryRepository SJBR\StaticInfoTables\Domain\Repository\TerritoryRepository */
-                                               $territoryRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\TerritoryRepository');
-                                               /** @var $territory SJBR\StaticInfoTables\Domain\Model\Territory */
-                                               $territory = $territoryRepository->findByUid($PA['row']['uid']);
-                                               $isoCode = $territory->getUnCodeNumber();
-                                       }
-                                       if ($isoCode) {
-                                               $PA['title'] = $PA['title'] . ' (' . $isoCode . ')';
-                                       }
-                                       break;
-                               case 'static_countries':
-                                       $isoCode = $PA['row']['cn_iso_2'];
-                                       if (!$isoCode) {
-                                               /** @var $countryRepository SJBR\StaticInfoTables\Domain\Repository\CountryRepository */
-                                               $countryRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\CountryRepository');
-                                               /** @var $country SJBR\StaticInfoTables\Domain\Model\Country */
-                                               $country = $countryRepository->findByUid($PA['row']['uid']);
-                                               $isoCode = $country->getIsoCodeA2();
-                                       }
-                                       if ($isoCode) {
-                                               $PA['title'] = $PA['title'] . ' (' . $isoCode . ')';
-                                       }
-                                       break;
-                               case 'static_languages':
-                                       $isoCodes = array($PA['row']['lg_iso_2']);
-                                       if ($PA['row']['lg_country_iso_2']) {
-                                               $isoCodes[] = $PA['row']['lg_country_iso_2'];
-                                       }
-                                       $isoCode = implode('_', $isoCodes);
-                                       if (!$isoCode || !$PA['row']['lg_country_iso_2']) {
-                                               /** @var $languageRepository SJBR\StaticInfoTables\Domain\Repository\LanguageRepository */
-                                               $languageRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\LanguageRepository');
-                                               /** @var $language SJBR\StaticInfoTables\Domain\Model\Language */
-                                               $language = $languageRepository->findByUid($PA['row']['uid']);
-                                               $isoCodes = array($language->getIsoCodeA2());
-                                               if ($language->getCountryIsoCodeA2()) {
-                                                       $isoCodes[] = $language->getCountryIsoCodeA2();
-                                               }
-                                               $isoCode = implode('_', $isoCodes);
-                                       }
-                                       if ($isoCode) {
-                                               $PA['title'] = $PA['title'] . ' (' . $isoCode . ')';
-                                       }
-                                       break;
-                               case 'static_currencies':
-                                       $isoCode = $PA['row']['cu_iso_3'];
-                                       if (!$isoCode) {
-                                               /** @var $currencyRepository SJBR\StaticInfoTables\Domain\Repository\CurrencyRepository */
-                                               $currencyRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\CurrencyRepository');
-                                               /** @var $currency SJBR\StaticInfoTables\Domain\Model\Currency */
-                                               $currency = $currencyRepository->findByUid($PA['row']['uid']);
-                                               $isoCode = $currency->getIsoCodeA3();
-                                       }
-                                       if ($isoCode) {
-                                               $PA['title'] = $PA['title'] . ' (' . $isoCode . ')';
-                                       }
-                                       break;
-                               default:
-                                       break;
-                       }
-               }
-       }
-
-       /**
-        * Translate and sort the territories selector using the current locale
-        */
-       public function translateTerritoriesSelector($PA, $fObj) {
-               switch ($PA['table']) {
-                       case 'static_territories':
-                               // Avoid circular relation
-                               $row = $PA['row'];
-                               foreach ($PA['items'] as $index => $item) {
-                                       if ($item[1] == $row['uid']) {
-                                               unset($PA['items'][$index]);
-                                       }
-                               }
-                               break;
-               }
-               $PA['items'] = $this->translateSelectorItems($PA['items'], 'static_territories');
-               $PA['items'] = $this->replaceSelectorIndexField($PA);
-       }
-
-       /**
-        * Translate and sort the countries selector using the current locale
-        */
-       public function translateCountriesSelector($PA, $fObj) {
-               $PA['items'] = $this->translateSelectorItems($PA['items'], 'static_countries');
-               $PA['items'] = $this->replaceSelectorIndexField($PA);
-       }
-
-       /**
-        * Translate and sort the country zones selector using the current locale
-        */
-       public function translateCountryZonesSelector($PA, $fObj) {
-               $PA['items'] = $this->translateSelectorItems($PA['items'], 'static_country_zones');
-               $PA['items'] = $this->replaceSelectorIndexField($PA);
-       }
-
-       /**
-        * Translate and sort the currencies selector using the current locale
-        */
-       public function translateCurrenciesSelector($PA, $fObj) {
-               $PA['items'] = $this->translateSelectorItems($PA['items'], 'static_currencies');
-               $PA['items'] = $this->replaceSelectorIndexField($PA);
-       }
-
-       /**
-        * Translate and sort the languages selector using the current locale
-        */
-       public function translateLanguagesSelector($PA, $fObj) {
-               $PA['items'] = $this->translateSelectorItems($PA['items'], 'static_languages');
-               $PA['items'] = $this->replaceSelectorIndexField($PA);
-       }
-
-       /**
-        * Translate selector items array
-        *
-        * @param array $items: array of value/label pairs
-        * @param string $tableName: name of static info tables
-        * @return array array of value/translated label pairs
-        */
-       protected function translateSelectorItems($items, $tableName) {
-               $translatedItems = $items;
-               if (isset($translatedItems) && is_array($translatedItems)) {
-                       foreach ($translatedItems as $key => $item) {
-                               if ($translatedItems[$key][1]) {
-                                       //Get isocode if present
-                                       $code = strstr($item[0], '(');
-                                       $code2 = strstr(substr($code, 1), '(');
-                                       $code = $code2 ? $code2 : $code;
-                                       // Translate
-                                       $translatedItems[$key][0] = LocalizationUtility::translate(array('uid' => $item[1]), $tableName);
-                                       // Re-append isocode, if present
-                                       $translatedItems[$key][0] = $translatedItems[$key][0] . ($code ? ' ' . $code : '');
-                               }
-                       }
-                       $currentLocale = setlocale(LC_COLLATE, '0');
-                       $locale = LocalizationUtility::setCollatingLocale();
-                       if ($locale !== FALSE) {
-                               uasort($translatedItems, array($this, 'strcollOnLabels'));
-                       }
-                       setlocale(LC_COLLATE, $currentLocale);
-               }
-               $items = $translatedItems;
-               return $items;
-       }
-
-       /**
-        * Translate selector items array
-        *
-        * @param string $itemFormElValue: value of the form element
-        * @param string $tableName: name of static info tables
-        * @return string value of the form element with translated labels
-        */
-       protected function translateSelectedItems($itemFormElValue, $tableName) {
-               // Get the array with selected items:
-               $itemArray = GeneralUtility::trimExplode(',', $itemFormElValue, 1);
-               // Perform modification of the selected items array:
-               foreach ($itemArray as $tk => $tv) {
-                       $tvP = explode('|', $tv, 2);
-                       if ($tvP[0]) {
-                               //Get isocode if present
-                               $code = strstr($tvP[1], '%28');
-                               $code2 = strstr(substr($code, 1), '%28');
-                               $code = $code2 ? $code2 : $code;
-                               // Translate
-                               $tvP[1] = LocalizationUtility::translate(array('uid' => $tvP[0]), $tableName);
-                               // Re-append isocode, if present
-                               $tvP[1] = $tvP[1] . ($code ? '%20' . $code : '');
-                       }
-                       $itemArray[$tk] = implode('|', $tvP);
-               }
-               return implode(',', $itemArray);
-       }
-
-       /**
-        * Using strcoll comparison on labels
-        *
-        * @return integer see strcoll
-        */
-       protected function strcollOnLabels($itemA, $itemB) {
-               return strcoll($itemA[0], $itemB[0]);
-       }
-
-       /**
-        * Replace the selector's uid index with configured indexField
-        *
-        * @param array  $PA: TCA select field parameters array
-        * @return array The new $items array
-        */
-       protected function replaceSelectorIndexField($PA) {
-               $items = $PA['items'];
-               $indexFields = GeneralUtility::trimExplode(',', $PA['config']['itemsProcFunc_config']['indexField'], TRUE);
-               if (!empty($indexFields)) {
-                       $rows = array();
-                       // Collect items uid's
-                       $uids = array();
-                       foreach ($items as $key => $item) {
-                               if ($items[$key][1]) {
-                                       $uids[] = $item[1];
-                               }
-                       }
-                       $uidList = implode(',', $uids);
-                       if (!empty($uidList)) {
-                               /** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */
-                               $objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
-                               switch ($PA['config']['foreign_table']) {
-                                       case 'static_territories':
-                                               /** @var $territoryRepository SJBR\StaticInfoTables\Domain\Repository\TerritoryRepository */
-                                               $territoryRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\TerritoryRepository');
-                                               $objects = $territoryRepository->findAllByUidInList($uidList)->toArray();
-                                               $columnsMapping = ModelUtility::getModelMapping('SJBR\\StaticInfoTables\\Domain\\Model\\Territory', ModelUtility::MAPPING_COLUMNS);
-                                               break;
-                                       case 'static_countries':
-                                               /** @var $countryRepository SJBR\StaticInfoTables\Domain\Repository\CountryRepository */
-                                               $countryRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\CountryRepository');
-                                               $objects = $countryRepository->findAllByUidInList($uidList)->toArray();
-                                               $columnsMapping = ModelUtility::getModelMapping('SJBR\\StaticInfoTables\\Domain\\Model\\Country', ModelUtility::MAPPING_COLUMNS);
-                                               break;
-                                       case 'static_country_zones':
-                                               /** @var $countryZoneRepository SJBR\StaticInfoTables\Domain\Repository\CountryZoneRepository */
-                                               $countryZoneRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\CountryZoneRepository');
-                                               $objects = $countryZoneRepository->findAllByUidInList($uidList)->toArray();
-                                               $columnsMapping = ModelUtility::getModelMapping('SJBR\\StaticInfoTables\\Domain\\Model\\CountryZone', ModelUtility::MAPPING_COLUMNS);
-                                               break;                                  
-                                       case 'static_languages':
-                                               /** @var $languageRepository SJBR\StaticInfoTables\Domain\Repository\LanguageRepository */
-                                               $languageRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\LanguageRepository');
-                                               $objects = $languageRepository->findAllByUidInList($uidList)->toArray();
-                                               $columnsMapping = ModelUtility::getModelMapping('SJBR\\StaticInfoTables\\Domain\\Model\\Language', ModelUtility::MAPPING_COLUMNS);
-                                               break;
-                                       case 'static_currencies':
-                                               /** @var $currencyRepository SJBR\StaticInfoTables\Domain\Repository\CurrencyRepository */
-                                               $currencyRepository = $objectManager->get('SJBR\\StaticInfoTables\\Domain\\Repository\\CurrencyRepository');
-                                               $objects = $currencyRepository->findAllByUidInList($uidList)->toArray();
-                                               $columnsMapping = ModelUtility::getModelMapping('SJBR\\StaticInfoTables\\Domain\\Model\\Currency', ModelUtility::MAPPING_COLUMNS);
-                                               break;
-                                       default:
-                                               break;
-                               }
-                               if (!empty($objects)) {
-                                       // Map table column to object property
-                                       $indexProperties = array();
-                                       foreach ($indexFields as $indexField) {
-                                               if ($columnsMapping[$indexField]['mapOnProperty']) {
-                                                       $indexProperties[] = $columnsMapping[$indexField]['mapOnProperty'];
-                                               } else {
-                                                       $indexProperties[] = GeneralUtility::underscoredToUpperCamelCase($indexField);
-                                               }
-                                       }
-                                       // Index rows by uid
-                                       $uidIndexedRows = array();
-                                       foreach ($objects as $object) {
-                                               $uidIndexedObjects[$object->getUid()] = $object;
-                                       }
-                                       // Replace the items index field
-                                       foreach ($items as $key => $item) {
-                                               if ($items[$key][1]) {
-                                                       $object = $uidIndexedObjects[$items[$key][1]];
-                                                       $items[$key][1] = $object->_getProperty($indexProperties[0]);
-                                                       if ($indexFields[1] && $object->_getProperty($indexProperties[1])) {
-                                                               $items[$key][1] .=  '_' . $object->_getProperty($indexProperties[1]);
-                                                       }
-                                               }
-                                       }                                               
-                               }
-                       }
-               }
-               return $items;
-       }
-}
diff --git a/Classes/Hook/Backend/Form/SuggestReceiver.php b/Classes/Hook/Backend/Form/SuggestReceiver.php
deleted file mode 100644 (file)
index 11e4981..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-namespace SJBR\StaticInfoTables\Hook\Backend\Form;
-use SJBR\StaticInfoTables\Utility\LocalizationUtility;
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2007-2011 Andreas Wolf <andreas.wolf@ikt-werk.de>
- *  (c) 2013-2014 Stanislas Rolland <typo3(arobas)sjbr.ca>
- *  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 2 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.
- *  A copy is found in the textfile GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-/**
- * Default implementation of a handler class for an ajax record selector.
- *
- * Normally other implementations should be inherited from this one.
- * queryTable() should not be overwritten under normal circumstances.
- *
- * @author Andreas Wolf <andreas.wolf@ikt-werk.de>
- * @author Benjamin Mack <benni@typo3.org>
- * @author Stanislas Rolland <typo3(arobas)sjbr.ca>
- */
-class SuggestReceiver extends \TYPO3\CMS\Backend\Form\Element\SuggestDefaultReceiver {
-
-       /**
-        * Prepare the statement for selecting the records which will be returned to the selector. May also return some
-        * other records (e.g. from a mm-table) which will be used later on to select the real records
-        *
-        * @return void
-        */
-       protected function prepareSelectStatement() {
-               $searchWholePhrase = $this->config['searchWholePhrase'];
-               $searchString = $this->params['value'];
-               $searchUid = intval($searchString);
-               if (strlen($searchString)) {
-                       $searchString = $GLOBALS['TYPO3_DB']->quoteStr($searchString, $this->table);
-                       $likeCondition = ' LIKE \'' . ($searchWholePhrase ? '%' : '') . $GLOBALS['TYPO3_DB']->escapeStrForLike($searchString, $this->table) . '%\'';
-                       // Get the label field for the current language, if any is available
-                       $lang = LocalizationUtility::getCurrentLanguage();
-                       $lang = LocalizationUtility::getIsoLanguageKey($lang);
-                       $labelFields = LocalizationUtility::getLabelFields($this->table, $lang);
-                       $selectFieldsList = $labelFields[0] . ',' . $this->config['additionalSearchFields'];
-                       $selectFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $selectFieldsList, TRUE);
-                       $selectFields = array_unique($selectFields);
-                       $selectParts = array();
-                       foreach ($selectFields as $field) {
-                               $selectParts[] = $field . $likeCondition;
-                       }
-                       $this->selectClause = '(' . implode(' OR ', $selectParts) . ')';
-                       if ($searchUid > 0 && $searchUid == $searchString) {
-                               $this->selectClause = '(' . $this->selectClause . ' OR uid = ' . $searchUid . ')';
-                       }
-               }
-               if (isset($GLOBALS['TCA'][$this->table]['ctrl']['delete'])) {
-                       $this->selectClause .= ' AND ' . $GLOBALS['TCA'][$this->table]['ctrl']['delete'] . ' = 0';
-               }
-               if (count($this->allowedPages)) {
-                       $pidList = $GLOBALS['TYPO3_DB']->cleanIntArray($this->allowedPages);
-                       if (count($pidList)) {
-                               $this->selectClause .= ' AND pid IN (' . implode(', ', $pidList) . ') ';
-                       }
-               }
-               // add an additional search condition comment
-               if (isset($this->config['searchCondition']) && strlen($this->config['searchCondition']) > 0) {
-                       $this->selectClause .= ' AND ' . $this->config['searchCondition'];
-               }
-               // add the global clauses to the where-statement
-               $this->selectClause .= $this->addWhere;
-       }
-
-       /**
-        * Prepares the clause by which the result elements are sorted. See description of ORDER BY in
-        * SQL standard for reference.
-        *
-        * @return void
-        */
-       protected function prepareOrderByStatement() {
-               if ($GLOBALS['TCA'][$this->table]['ctrl']['label']) {
-                       $this->orderByStatement = $GLOBALS['TCA'][$this->table]['ctrl']['label'];
-               }
-               // Get the label field for the current language, if any is available
-               $lang = LocalizationUtility::getCurrentLanguage();
-               $lang = LocalizationUtility::getIsoLanguageKey($lang);
-               $labelFields = LocalizationUtility::getLabelFields($this->table, $lang);
-               $this->orderByStatement = implode(',' , $labelFields);
-       }
-
-       /**
-        * Manipulate a record before using it to render the selector; may be used to replace a MM-relation etc.
-        *
-        * @param array $row
-        */
-       protected function manipulateRecord(&$row) {
-               // Localize the record
-               $row[$GLOBALS['TCA'][$this->table]['ctrl']['label']] = LocalizationUtility::translate(array('uid' => $row['uid']), $this->table);
-       }
-}
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/enable_editing.php b/Configuration/TCA/Overrides/enable_editing.php
new file mode 100644 (file)
index 0000000..8950083
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
+       if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['enableManager']) {
+               // Enable editing Static Info Tables
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables'])) {
+                       $tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables']);
+                       foreach ($tableNames as $tableName) {
+                               $GLOBALS['TCA'][$tableName]['ctrl']['readOnly'] = 0;
+                       }
+               }
+       }
+}
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/static_countries.php b/Configuration/TCA/Overrides/static_countries.php
deleted file mode 100644 (file)
index b6b9f28..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-// Compatibility with 6.2
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
-       $GLOBALS['TCA']['static_countries']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
-       $GLOBALS['TCA']['static_countries']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_countries.svg';
-       $GLOBALS['TCA']['static_countries']['columns']['cn_parent_territory_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateTerritoriesSelector';
-       $GLOBALS['TCA']['static_countries']['columns']['cn_parent_territory_uid']['config']['noIconsBelowSelect'] = 1;
-       $GLOBALS['TCA']['static_countries']['columns']['cn_currency_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateCurrenciesSelector';
-       $GLOBALS['TCA']['static_countries']['columns']['cn_currency_uid']['config']['wizards']['suggest']['default'] = array('receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver');
-       $GLOBALS['TCA']['static_countries']['columns']['cn_currency_uid']['config']['noIconsBelowSelect'] = 1;
-}
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/static_country_zones.php b/Configuration/TCA/Overrides/static_country_zones.php
deleted file mode 100644 (file)
index 583a205..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-// Compatibility with 6.2
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
-       $GLOBALS['TCA']['static_country_zones']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_country_zones.svg';
-}
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/static_currencies.php b/Configuration/TCA/Overrides/static_currencies.php
deleted file mode 100644 (file)
index 08a3796..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-// Compatibility with 6.2
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
-       $GLOBALS['TCA']['static_currencies']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
-       $GLOBALS['TCA']['static_currencies']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_currencies.svg';
-}
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/static_languages.php b/Configuration/TCA/Overrides/static_languages.php
deleted file mode 100644 (file)
index d89975e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-// Compatibility with 6.2
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
-       $GLOBALS['TCA']['static_languages']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
-       $GLOBALS['TCA']['static_languages']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_languages.svg';
-}
\ No newline at end of file
diff --git a/Configuration/TCA/Overrides/static_territories.php b/Configuration/TCA/Overrides/static_territories.php
deleted file mode 100644 (file)
index c2f4126..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-// Compatibility with 6.2
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) < 7000000) {
-       $GLOBALS['TCA']['static_territories']['ctrl']['label_userFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel';
-       $GLOBALS['TCA']['static_territories']['ctrl']['iconfile'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/static_territories.svg';
-       $GLOBALS['TCA']['static_territories']['columns']['tr_parent_territory_uid']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateTerritoriesSelector';
-       $GLOBALS['TCA']['static_territories']['columns']['tr_parent_territory_uid']['config']['noIconsBelowSelect'] = 1;
-}
\ No newline at end of file
index 41fb947..2d7f5c6 100644 (file)
@@ -13,7 +13,7 @@ $GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode'] = array(
                ),
                'foreign_table' => 'static_languages',
                'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
-               'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaSelectItemsProcessor->translateLanguagesSelector',
+               'itemsProcFunc' => \SJBR\StaticInfoTables\Hook\Backend\Form\FormDataProvider\TcaSelectItemsProcessor::class . '->translateLanguagesSelector',
                'size' => 1,
                'minitems' => 0,
                'maxitems' => 1,
@@ -21,18 +21,11 @@ $GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode'] = array(
                        'suggest' => array(
                                'type' => 'suggest',
                                'default' => array(
-                                       'receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\Wizard\\SuggestReceiver'
+                                       'receiverClass' => \SJBR\StaticInfoTables\Hook\Backend\Form\Wizard\SuggestReceiver::class
                                )
                        )
                )
        )
 );
 
-// Restore static_lang_isocode field in TCA
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) >= 7000000) {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_language', 'static_lang_isocode', '', 'after:language_isocode');
-} else {
-       $GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode']['config']['itemsProcFunc'] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateLanguagesSelector';
-       $GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode']['config']['wizards']['suggest']['default'] = array('receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver');
-       $GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode']['config']['noIconsBelowSelect'] = 1;
-}
\ No newline at end of file
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_language', 'static_lang_isocode', '', 'after:language_isocode');
\ No newline at end of file
index 7244618..a6a2e13 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) > 7005000
-       && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('rtehtmlarea')
-) {
+if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('rtehtmlarea')) {
        $additionalColumns = array(
                'static_lang_isocode' => array(
                        'exclude' => 0,
index 97cba85..1907e39 100644 (file)
@@ -6,7 +6,7 @@ return array(
                'label_alt' => 'cn_iso_2',
                'label_alt_force' => 1,
                'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
-               'adminOnly' => 1,
+               'adminOnly' => true,
                'rootLevel' => 1,
                'is_static' => 1,
                'readOnly' => 1,
index 4ea6348..27168d2 100644 (file)
@@ -4,7 +4,7 @@ return array(
        'ctrl' => array(
                'label' => 'zn_name_local',
                'label_alt' => 'zn_name_local,zn_code',
-               'adminOnly' => 1,
+               'adminOnly' => true,
                'rootLevel' => 1,
                'is_static' => 1,
                'readOnly' => 1,
index 27e93e4..f9cbd20 100644 (file)
@@ -6,7 +6,7 @@ return array(
                'label_alt' => 'cu_iso_3',
                'label_alt_force' => 1,
                'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
-               'adminOnly' => 1,
+               'adminOnly' => true,
                'rootLevel' => 1,
                'is_static' => 1,
                'readOnly' => 1,
index ec515bd..112f19b 100644 (file)
@@ -6,7 +6,7 @@ return array(
                'label_alt' => 'lg_iso_2',
                'label_alt_force' => 1,
                'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
-               'adminOnly' => 1,
+               'adminOnly' => true,
                'rootLevel' => 1,
                'is_static' => 1,
                'readOnly' => 1,
index d07389a..c099e1c 100644 (file)
@@ -6,7 +6,7 @@ return array(
                'label_alt' => 'tr_iso_nr',
                'label_alt_force' => 1,
                'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\FormDataProvider\\TcaLabelProcessor->addIsoCodeToLabel',
-               'adminOnly' => 1,
+               'adminOnly' => true,
                'rootLevel' => 1,
                'is_static' => 1,
                'readOnly' => 1,
index b868175..3ae20e3 100644 (file)
 <?php
 defined('TYPO3_MODE') or die();
 
-if (!defined ('STATIC_INFO_TABLES_EXTkey')) {
-       define('STATIC_INFO_TABLES_EXTkey', $_EXTKEY);
-}
-if (!defined ('PATH_BE_staticinfotables')) {
-       define('PATH_BE_staticinfotables', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY));
-}
-
-// Unserializing the configuration so we can use it here
-$_EXTCONF = unserialize($_EXTCONF);
+// Get the extensions's configuration
+$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['static_info_tables']);
 
 // Including Extbase configuration
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Extbase/setup.txt">');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:static_info_tables/Configuration/TypoScript/Extbase/setup.txt">');
 
 // Register cache static_info_tables
-if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY])) {
-       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY] = array();
-       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY]['groups'] = array('all');
+if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables'])) {
+       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables'] = [];
+       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables']['groups'] = ['all'];
 }
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY]['frontend'])) {
-       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY]['frontend'] = 'TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend';
+if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables']['frontend'])) {
+       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables']['frontend'] = \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class;
 }
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY]['backend'])) {
-       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$_EXTKEY]['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\FileBackend';
+if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables']['backend'])) {
+       $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables']['backend'] = \TYPO3\CMS\Core\Cache\Backend\FileBackend::class;
 }
 
 // Configure clear cache post processing for extended domain model
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][$_EXTKEY] = 'SJBR\\StaticInfoTables\\Cache\\ClassCacheManager->reBuild';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['static_info_tables'] = \SJBR\StaticInfoTables\Cache\ClassCacheManager::class . '->reBuild';
 
 // Names of static entities
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['entities'] = array(
-       'Country',
-       'CountryZone',
-       'Currency',
-       'Language',
-       'Territory'
-);
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['entities'] = ['Country', 'CountryZone', 'Currency', 'Language', 'Territory'];
 
 // Register cached domain model classes autoloader
-require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Cache/CachedClassLoader.php');
+require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('static_info_tables') . 'Classes/Cache/CachedClassLoader.php');
 \SJBR\StaticInfoTables\Cache\CachedClassLoader::registerAutoloader();
 
 // Possible label fields for different languages. Default as last.
-$labelTable = array(
-       'static_territories' => array(
-               'label_fields' => array(
+$labelTable = [
+       'static_territories' => [
+               'label_fields' => [
                        'tr_name_##', 'tr_name_en',
-               ),
-               'isocode_field' => array(
+               ],
+               'isocode_field' => [
                        'tr_iso_##',
-               ),
-       ),
-       'static_countries' => array(
-               'label_fields' => array(
+               ]
+       ],
+       'static_countries' => [
+               'label_fields' => [
                        'cn_short_##', 'cn_short_en',
-               ),
-               'isocode_field' => array(
+               ],
+               'isocode_field' => [
                        'cn_iso_##',
-               ),
-       ),
-       'static_country_zones' => array(
-               'label_fields' => array(
+               ]
+       ],
+       'static_country_zones' => [
+               'label_fields' => [
                        'zn_name_##', 'zn_name_local',
-               ),
-               'isocode_field' => array(
+               ],
+               'isocode_field' => [
                        'zn_code', 'zn_country_iso_##',
-               ),
-       ),
-       'static_languages' => array(
-               'label_fields' => array(
+               ]
+       ],
+       'static_languages' => [
+               'label_fields' => [
                        'lg_name_##', 'lg_name_en',
-               ),
-               'isocode_field' => array(
+               ],
+               'isocode_field' => [
                        'lg_iso_##', 'lg_country_iso_##',
-               ),
-       ),
-       'static_currencies' => array(
-               'label_fields' => array(
+               ]
+       ],
+       'static_currencies' => [
+               'label_fields' => [
                        'cu_name_##', 'cu_name_en',
-               ),
-               'isocode_field' => array(
+               ],
+               'isocode_field' => [
                        'cu_iso_##',
-               ),
-       ),
-);
+               ]
+       ]
+];
 
-if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables']) && is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'])) {
-       $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'] = array_merge($labelTable, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables']);
+if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables']) && is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables'])) {
+       $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables'] = array_merge($labelTable, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables']);
 } else {
-       $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'] = $labelTable;
-}
-unset($labelTable);
-
-// Registering backend form select field pre-rendering hook in order to localize selected items
-if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 7000000) {
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass'][] = 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper';
+       $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables'] = $labelTable;
 }
 
 // Add data handling hook to manage ISO codes redundancies on records
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'SJBR\\StaticInfoTables\\Hook\\Core\\DataHandling\\ProcessDataMap';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \SJBR\StaticInfoTables\Hook\Core\DataHandling\ProcessDataMap::class;
 
 // Register slot for AfterExtensionInstall signal
-$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
-$dispatcher->connect('TYPO3\\CMS\\Extensionmanager\\Utility\\InstallUtility', 'afterExtensionInstall', 'SJBR\\StaticInfoTables\\Slot\\Extensionmanager\\AfterExtensionInstall', 'executeUpdateScript');
+$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
+$dispatcher->connect(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class, 'afterExtensionInstall', \SJBR\StaticInfoTables\Slot\Extensionmanager\AfterExtensionInstall::class, 'executeUpdateScript');
 
 // Enabling the Static Info Tables Manager module
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['enableManager'] = isset($_EXTCONF['enableManager']) ? $_EXTCONF['enableManager'] : '0';
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['enableManager'] = isset($extConf['enableManager']) ? $extConf['enableManager'] : '0';
 
 // Make the extension version and constraints available when creating language packs and to other extensions
-require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'ext_emconf.php');
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['version'] = $EM_CONF[$_EXTKEY]['version'];
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['constraints'] = $EM_CONF[$_EXTKEY]['constraints'];
\ No newline at end of file
+require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('static_info_tables') . 'ext_emconf.php');
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['version'] = $EM_CONF['static_info_tables']['version'];
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['constraints'] = $EM_CONF['static_info_tables']['constraints'];
+
+unset($labelTable);
+unset($extConf);
\ No newline at end of file
index 0294335..e9d5225 100644 (file)
@@ -26,13 +26,5 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                );
                // Add module configuration setup
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Manager/setup.txt">');
-               
-               // Enable editing Static Info Tables
-               if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'])) {
-                       $tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables']);
-                       foreach ($tableNames as $tableName) {
-                               $GLOBALS['TCA'][$tableName]['ctrl']['readOnly'] = 0;
-                       }
-               }
        }
 }
\ No newline at end of file