0999c51650dab46e97f592e8ac724a1210d1739b
[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
6 // register the cache in BE so it will be cleared with "clear all caches"
7 try {
8 t3lib_cache::initializeCachingFramework();
9 $GLOBALS['typo3CacheFactory']->create(
10 'tx_extbase_cache_reflection',
11 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['frontend'],
12 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['backend'],
13 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['options']
14 );
15 } catch(t3lib_cache_exception_NoSuchCache $exception) {
16
17 }
18
19 $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Core_Bootstrap->callModule';
20
21 }
22
23 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
24
25 t3lib_div::loadTCA('fe_users');
26 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
27 $tempColumns = array(
28 'tx_extbase_type' => array(
29 'exclude' => 1,
30 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type',
31 'config' => array(
32 'type' => 'select',
33 'items' => array(
34 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
35 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')
36 ),
37 'size' => 1,
38 'maxitems' => 1,
39 'default' => '0'
40 )
41 )
42 );
43 t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
44 t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
45 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
46 }
47 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
48
49 t3lib_div::loadTCA('fe_groups');
50 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
51 $tempColumns = array(
52 'tx_extbase_type' => array(
53 'exclude' => 1,
54 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
55 'config' => array(
56 'type' => 'select',
57 'items' => array(
58 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
59 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')
60 ),
61 'size' => 1,
62 'maxitems' => 1,
63 'default' => '0'
64 )
65 )
66 );
67 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
68 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
69 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
70 }
71 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
72
73 ?>