[TASK] Rename ExtensionManager class
[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\\BootstrapInterface';
8 }
9 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'TYPO3\\CMS\\Extbase\\Utility\\ExtbaseRequirementsCheckUtility';
10 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_users');
11 if (!isset($TCA['fe_users']['ctrl']['type'])) {
12 $tempColumns = array(
13 'tx_extbase_type' => array(
14 'exclude' => 1,
15 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type',
16 'config' => array(
17 'type' => 'select',
18 'items' => array(
19 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
20 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser', 'Tx_Extbase_Domain_Model_FrontendUser')
21 ),
22 'size' => 1,
23 'maxitems' => 1,
24 'default' => '0'
25 )
26 )
27 );
28 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns, 1);
29 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_extbase_type');
30 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
31 }
32 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
33 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_groups');
34 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
35 $tempColumns = array(
36 'tx_extbase_type' => array(
37 'exclude' => 1,
38 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
39 'config' => array(
40 'type' => 'select',
41 'items' => array(
42 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
43 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup', 'Tx_Extbase_Domain_Model_FrontendUserGroup')
44 ),
45 'size' => 1,
46 'maxitems' => 1,
47 'default' => '0'
48 )
49 )
50 );
51 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns, 1);
52 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
53 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
54 }
55 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
56 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Extbase\\Scheduler\\Task'] = array(
57 'extension' => $_EXTKEY,
58 'title' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:task.name',
59 'description' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:task.description',
60 'additionalFields' => 'TYPO3\\CMS\\Extbase\\Scheduler\\FieldProvider'
61 );
62 ?>