[BUGFIX] Improve accessibiity-check of index page in HMENU 'browse'
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_tables.php
index 9e18672..2c9775d 100644 (file)
@@ -1,61 +1,13 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
-if (TYPO3_MODE == 'BE') {
-       // register Extbase dispatcher for modules
-       $TBE_MODULES['_dispatcher'][] = 'TYPO3\\CMS\\Extbase\\Core\\ModuleRunnerInterface';
-}
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'TYPO3\\CMS\\Extbase\\Utility\\ExtbaseRequirementsCheckUtility';
-if (!isset($TCA['fe_users']['ctrl']['type'])) {
-       $tempColumns = array(
-               'tx_extbase_type' => array(
-                       'exclude' => 1,
-                       'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.0', '0'),
-                                       array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser', 'Tx_Extbase_Domain_Model_FrontendUser')
-                               ),
-                               'size' => 1,
-                               'maxitems' => 1,
-                               'default' => '0'
-                       )
-               )
-       );
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns, 1);
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_extbase_type');
-       $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
-}
-$TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
-if (!isset($TCA['fe_groups']['ctrl']['type'])) {
-       $tempColumns = array(
-               'tx_extbase_type' => array(
-                       'exclude' => 1,
-                       'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type.0', '0'),
-                                       array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup', 'Tx_Extbase_Domain_Model_FrontendUserGroup')
-                               ),
-                               'size' => 1,
-                               'maxitems' => 1,
-                               'default' => '0'
-                       )
-               )
-       );
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns, 1);
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
-       $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
-}
-$TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Extbase\\Scheduler\\Task'] = array(
-       'extension' => $_EXTKEY,
-       'title' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.name',
-       'description' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.description',
-       'additionalFields' => 'TYPO3\\CMS\\Extbase\\Scheduler\\FieldProvider'
+defined('TYPO3_MODE') or die();
+
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = \TYPO3\CMS\Extbase\Utility\ExtbaseRequirementsCheckUtility::class;
+
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Extbase\Scheduler\Task::class] = array(
+    'extension' => 'extbase',
+    'title' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.name',
+    'description' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.description',
+    'additionalFields' => \TYPO3\CMS\Extbase\Scheduler\FieldProvider::class
 );
 
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkFlexFormValue'][] = 'TYPO3\CMS\Extbase\Hook\DataHandler\CheckFlexFormValue';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkFlexFormValue'][] = \TYPO3\CMS\Extbase\Hook\DataHandler\CheckFlexFormValue::class;