ClearTableService

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

Internal

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

Table of Contents

Properties

$tableList  : array<string|int, mixed>

Methods

clearSelectedTable()  : mixed
Truncate a table from $this->tableList
getTableStatistics()  : array<string|int, mixed>
Get an array of all affected tables, a short description and their row counts

Properties

$tableList

protected array<string|int, mixed> $tableList = [['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

Methods

clearSelectedTable()

Truncate a table from $this->tableList

public clearSelectedTable(string $tableName) : mixed
Parameters
$tableName : string
Tags
throws
RuntimeException

getTableStatistics()

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

public getTableStatistics() : array<string|int, mixed>
Return values
array<string|int, mixed>

Details per table


        
On this page

Search results