TYPO3 API  SVNRelease
ext_tables.php
Go to the documentation of this file.
00001 <?php
00002 if (!defined ('TYPO3_MODE')) die ('Access denied.');
00003 
00004 if (TYPO3_MODE == 'BE') {
00005 
00006     // register the cache in BE so it will be cleared with "clear all caches"
00007     try {
00008         t3lib_cache::initializeCachingFramework();
00009             // Reflection cache
00010         $GLOBALS['typo3CacheFactory']->create(
00011             'tx_extbase_cache_reflection',
00012             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['frontend'],
00013             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['backend'],
00014             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['options']
00015         );
00016             // Object container cache
00017         $GLOBALS['typo3CacheFactory']->create(
00018             'tx_extbase_cache_object',
00019             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['frontend'],
00020             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['backend'],
00021             $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['options']
00022         );
00023     } catch(t3lib_cache_exception_NoSuchCache $exception) {
00024 
00025     }
00026 
00027     $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Core_Bootstrap';
00028 
00029 }
00030 
00031 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
00032 
00033 t3lib_div::loadTCA('fe_users');
00034 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
00035     $tempColumns = array(
00036         'tx_extbase_type' => array(
00037             'exclude' => 1,
00038             'label'   => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type',
00039             'config' => array(
00040                 'type' => 'select',
00041                 'items' => array(
00042                     array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'),
00043                     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')
00044                 ),
00045                 'size' => 1,
00046                 'maxitems' => 1,
00047                 'default' => '0'
00048             )
00049         )
00050     );
00051     t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
00052     t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
00053     $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
00054 }
00055 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
00056 
00057 t3lib_div::loadTCA('fe_groups');
00058 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
00059     $tempColumns = array(
00060         'tx_extbase_type' => array(
00061             'exclude' => 1,
00062             'label'   => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type',
00063             'config' => array(
00064                 'type' => 'select',
00065                 'items' => array(
00066                     array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'),
00067                     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')
00068                 ),
00069                 'size' => 1,
00070                 'maxitems' => 1,
00071                 'default' => '0'
00072             )
00073         )
00074     );
00075     t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
00076     t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
00077     $TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
00078 }
00079 $TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
00080 
00081 ?>