Remove method TcaUtility::loadTCA
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Nov 2014 22:16:41 +0000 (22:16 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Nov 2014 22:16:41 +0000 (22:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@86853 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Utility/TcaUtility.php
Resources/Private/LanguagePackTemplate/ext_localconf.php

index 7d025e1..ab0a7b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        * Require TYPO3 CMS 6.2.0
        * Resolves #62770: Replace deprecated calls to ObjectManager ->create() with ->get()
        * Resolves #61296: Move TCA configuration from ext_tables.php to Configuration/TCA
+       * Remove method TcaUtility::loadTCA
 
 2014-10-16  Stanislas Rolland  <typo3@sjbr.ca>
 
index f751313..cab962a 100644 (file)
@@ -3,7 +3,7 @@ namespace SJBR\StaticInfoTables\Utility;
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 2013 StanislasRolland <typo3@sjbr.ca>
+*  (c) 2013-2014 StanislasRolland <typo3@sjbr.ca>
 *  All rights reserved
 *
 *  This script is part of the Typo3 project. The Typo3 project is
@@ -28,24 +28,6 @@ namespace SJBR\StaticInfoTables\Utility;
 class TcaUtility {
 
        /**
-        * Load the configuration of a table and additional configuration by language packs
-        *
-        * @param string $tableName: the name of the table
-        * @return      void
-        */
-       static public function loadTca ($tableName) {
-               \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($tableName);
-               // Get all extending TCA's
-               if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['extendingTCA'])) {
-                       foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['extendingTCA'] as $extensionKey) {
-                               if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded($extensionKey)) {
-                                       include(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extensionKey) . 'ext_tables.php');
-                               }
-                       }
-               }
-       }
-
-       /**
         * Get the enable fields clause based on the table configuration
         *
         * @param string $tableName: the name of the table
@@ -58,5 +40,4 @@ class TcaUtility {
                        $enableFields = \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause($tableName);
                }
        }
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
index 0dcd4b5..b1851a2 100644 (file)
@@ -1,10 +1,4 @@
 <?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['extendingTCA'][] = $_EXTKEY;
-
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Extbase/setup.txt">');
-
-?>
\ No newline at end of file
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Extbase/setup.txt">');
\ No newline at end of file