[FEATURE] Add option to remove default CSS from extensions
[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 // Reflection cache
10 $GLOBALS['typo3CacheFactory']->create(
11 'tx_extbase_cache_reflection',
12 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['frontend'],
13 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['backend'],
14 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['options']
15 );
16 // Object container cache
17 $GLOBALS['typo3CacheFactory']->create(
18 'tx_extbase_cache_object',
19 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['frontend'],
20 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['backend'],
21 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['options']
22 );
23 } catch(t3lib_cache_exception_NoSuchCache $exception) {
24
25 }
26
27 $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Core_Bootstrap';
28
29 }
30
31 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
32
33 t3lib_div::loadTCA('fe_users');
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_users.tx_extbase_type',
39 'config' => array(
40 'type' => 'select',
41 'items' => array(
42 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
43 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')
44 ),
45 'size' => 1,
46 'maxitems' => 1,
47 'default' => '0'
48 )
49 )
50 );
51 t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
52 t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
53 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
54 }
55 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
56
57 t3lib_div::loadTCA('fe_groups');
58 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
59 $tempColumns = array(
60 'tx_extbase_type' => array(
61 'exclude' => 1,
62 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
63 'config' => array(
64 'type' => 'select',
65 'items' => array(
66 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
67 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')
68 ),
69 'size' => 1,
70 'maxitems' => 1,
71 'default' => '0'
72 )
73 )
74 );
75 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
76 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
77 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
78 }
79 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
80
81 ?>