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

Public Member Functions

 __construct (private FailsafePackageManager $packageManager)
 
 getTableStatistics ()
 
 clearSelectedTable (string $tableName)
 

Private Member Functions

 getTableList ()
 

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 29 of file ClearTableService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Service\ClearTableService::__construct ( private FailsafePackageManager  $packageManager)

Definition at line 31 of file ClearTableService.php.

Member Function Documentation

◆ clearSelectedTable()

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

Truncate a table from $this->tableList

Definition at line 56 of file ClearTableService.php.

References TYPO3\CMS\Install\Service\ClearTableService\getTableList().

◆ getTableList()

TYPO3\CMS\Install\Service\ClearTableService::getTableList ( )
private

◆ getTableStatistics()

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

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

Definition at line 36 of file ClearTableService.php.

References TYPO3\CMS\Install\Service\ClearTableService\getTableList().