‪TYPO3CMS  10.4
TYPO3\CMS\Install\Service\ClearTableService Class Reference

Public Member Functions

array getTableStatistics ()
 
 clearSelectedTable (string $tableName)
 

Protected Attributes

array $tableList
 

Detailed Description

Service handling clearing and statistics of semi-persistent core tables.

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 28 of file ClearTableService.php.

Member Function Documentation

◆ clearSelectedTable()

TYPO3\CMS\Install\Service\ClearTableService::clearSelectedTable ( string  $tableName)

Truncate a table from $this->tableList

Parameters
string$tableName
Exceptions

Definition at line 91 of file ClearTableService.php.

◆ getTableStatistics()

array TYPO3\CMS\Install\Service\ClearTableService::getTableStatistics ( )

Get an array of all affected tables, a short description and their row counts

Returns
‪array Details per table

Definition at line 68 of file ClearTableService.php.

Member Data Documentation

◆ $tableList

array TYPO3\CMS\Install\Service\ClearTableService::$tableList
protected
Initial value:
= array(
[
'name' => 'be_sessions',
'description' => 'Backend user sessions'
],
[
'name' => 'fe_sessions',
'description' => 'Frontend user sessions',
],
[
'name' => 'sys_history',
'description' => 'Tracking of database record changes through TYPO3 backend forms',
],
[
'name' => 'sys_lockedrecords',
'description' => 'Record locking of backend user editing',
],
[
'name' => 'sys_log',
'description' => 'General log table',
],
[
'name' => 'sys_preview',
'description' => 'Workspace preview links',
],
[
'name' => 'tx_extensionmanager_domain_model_extension',
'description' => 'List of TER extensions',
],
)

List of table and their description

Definition at line 32 of file ClearTableService.php.