‪TYPO3CMS  11.5
DatabaseSchemaService.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
16 namespace ‪TYPO3\CMS\Core\Cache;
17 
19 
24 {
31  {
33  }
34 
43  {
44  // Use new to circumvent the singleton pattern of CacheManager
45  $cacheManager = new ‪CacheManager();
46  $cacheManager->setCacheConfigurations(‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']);
47 
48  $tableDefinitions = '';
49  foreach (‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] as $cacheName => $_) {
50  $backend = $cacheManager->getCache($cacheName)->getBackend();
51  if (method_exists($backend, 'getTableDefinitions')) {
52  $tableDefinitions .= LF . $backend->getTableDefinitions();
53  }
54  }
55 
56  return $tableDefinitions;
57  }
58 }
‪TYPO3\CMS\Core\Cache
‪TYPO3\CMS\Core\Cache\DatabaseSchemaService
Definition: DatabaseSchemaService.php:24
‪TYPO3\CMS\Core\Database\Event\AlterTableDefinitionStatementsEvent\addSqlData
‪addSqlData($data)
Definition: AlterTableDefinitionStatementsEvent.php:35
‪TYPO3\CMS\Core\Cache\DatabaseSchemaService\getCachingFrameworkRequiredDatabaseSchema
‪string getCachingFrameworkRequiredDatabaseSchema()
Definition: DatabaseSchemaService.php:42
‪TYPO3\CMS\Core\Cache\CacheManager
Definition: CacheManager.php:36
‪TYPO3\CMS\Core\Cache\DatabaseSchemaService\addCachingFrameworkDatabaseSchema
‪addCachingFrameworkDatabaseSchema(AlterTableDefinitionStatementsEvent $event)
Definition: DatabaseSchemaService.php:30
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Core\Database\Event\AlterTableDefinitionStatementsEvent
Definition: AlterTableDefinitionStatementsEvent.php:24