[BUGIFX] Drop usage of addTofeInterface parameter
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 if (TYPO3_MODE == 'BE') {
6 // register Extbase dispatcher for modules
7 $TBE_MODULES['_dispatcher'][] = 'TYPO3\\CMS\\Extbase\\Core\\ModuleRunnerInterface';
8 }
9 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'TYPO3\\CMS\\Extbase\\Utility\\ExtbaseRequirementsCheckUtility';
10 if (!isset($TCA['fe_users']['ctrl']['type'])) {
11 $tempColumns = array(
12 'tx_extbase_type' => array(
13 'exclude' => 1,
14 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type',
15 'config' => array(
16 'type' => 'select',
17 'items' => array(
18 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.0', '0'),
19 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')
20 ),
21 'size' => 1,
22 'maxitems' => 1,
23 'default' => '0'
24 )
25 )
26 );
27 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
28 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_extbase_type');
29 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
30 }
31 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
32 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
33 $tempColumns = array(
34 'tx_extbase_type' => array(
35 'exclude' => 1,
36 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type',
37 'config' => array(
38 'type' => 'select',
39 'items' => array(
40 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:fe_groups.tx_extbase_type.0', '0'),
41 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')
42 ),
43 'size' => 1,
44 'maxitems' => 1,
45 'default' => '0'
46 )
47 )
48 );
49 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns);
50 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
51 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
52 }
53 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
54 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Extbase\\Scheduler\\Task'] = array(
55 'extension' => $_EXTKEY,
56 'title' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.name',
57 'description' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.description',
58 'additionalFields' => 'TYPO3\\CMS\\Extbase\\Scheduler\\FieldProvider'
59 );
60
61 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkFlexFormValue'][] = 'TYPO3\CMS\Extbase\Hook\DataHandler\CheckFlexFormValue';