[+FEATURE] Backport CommandController Implementation
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 if (TYPO3_MODE == 'BE') {
5 // register Extbase dispatcher for modules
6 $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Core_Bootstrap';
7 }
8
9 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
10
11 t3lib_div::loadTCA('fe_users');
12 if (!isset($TCA['fe_users']['ctrl']['type'])) {
13 $tempColumns = array(
14 'tx_extbase_type' => array(
15 'exclude' => 1,
16 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type',
17 'config' => array(
18 'type' => 'select',
19 'items' => array(
20 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
21 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')
22 ),
23 'size' => 1,
24 'maxitems' => 1,
25 'default' => '0'
26 )
27 )
28 );
29 t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
30 t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
31 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
32 }
33 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
34
35 t3lib_div::loadTCA('fe_groups');
36 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
37 $tempColumns = array(
38 'tx_extbase_type' => array(
39 'exclude' => 1,
40 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
41 'config' => array(
42 'type' => 'select',
43 'items' => array(
44 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
45 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')
46 ),
47 'size' => 1,
48 'maxitems' => 1,
49 'default' => '0'
50 )
51 )
52 );
53 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
54 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
55 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
56 }
57 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
58
59 ?>