Raised DBAL version from 1.1.5 to 1.1.6
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4
5 if (TYPO3_MODE == 'BE') {
6
7 // register the cache in BE so it will be cleared with "clear all caches"
8 try {
9 t3lib_cache::initializeCachingFramework();
10 $GLOBALS['typo3CacheFactory']->create(
11 'tx_extbase_cache_reflection',
12 't3lib_cache_frontend_VariableFrontend',
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 } catch(t3lib_cache_exception_NoSuchCache $exception) {
17
18 }
19
20 $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Dispatcher';
21
22 }
23
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
25
26 t3lib_div::loadTCA('fe_users');
27 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
28 $tempColumns = array(
29 'tx_extbase_type' => array(
30 'exclude' => 1,
31 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type',
32 'config' => array(
33 'type' => 'select',
34 'items' => array(
35 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
36 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')
37 ),
38 'size' => 1,
39 'maxitems' => 1,
40 'default' => '0'
41 )
42 )
43 );
44 t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
45 t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
46 $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
47 }
48 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
49
50 t3lib_div::loadTCA('fe_groups');
51 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
52 $tempColumns = array(
53 'tx_extbase_type' => array(
54 'exclude' => 1,
55 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
56 'config' => array(
57 'type' => 'select',
58 'items' => array(
59 array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
60 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')
61 ),
62 'size' => 1,
63 'maxitems' => 1,
64 'default' => '0'
65 )
66 )
67 );
68 t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
69 t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
70 $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
71 }
72 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
73
74 ?>