CleanUpLocalProcessedFilesService
Read onlyYes
FinalYes
not part of TYPO3's Core API
Table of Contents
Methods
- __construct() : mixed
- deleteRecord() : int
- getFilesToClean() : array<string|int, SplFileInfo>
- Find processed files without a reference
- getRecordsToClean() : array<int, array<string, mixed>>
- Find records which reference non-existing files
Methods
__construct()
public
__construct(ProcessedFileRepository $processedFileRepository, StorageRepository $storageRepository, ConnectionPool $connectionPool) : mixed
Parameters
- $processedFileRepository : ProcessedFileRepository
- $storageRepository : StorageRepository
- $connectionPool : ConnectionPool
deleteRecord()
public
deleteRecord(array<string|int, mixed> $recordUids) : int
Parameters
- $recordUids : array<string|int, mixed>
Return values
intgetFilesToClean()
Find processed files without a reference
public
getFilesToClean([bool $fullReset = false ]) : array<string|int, SplFileInfo>
Parameters
- $fullReset : bool = false
-
When true also removes entries that have an empty identifier or storage
Return values
array<string|int, SplFileInfo>getRecordsToClean()
Find records which reference non-existing files
public
getRecordsToClean([bool $fullReset = false ]) : array<int, array<string, mixed>>
Parameters
- $fullReset : bool = false
-
When true also removes entries that have an empty identifier or storage