CleanUpLocalProcessedFilesService
final readonly class \
Internal
not part of TYPO3's Core API
Table of Contents
Methods
- __construct() : mixed
- deleteRecord() : int
- getFilesToClean() : SplFileInfo[]
- Find processed files without a reference
- getOfflineLocalStorages() : ResourceStorage[]
- 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 $recordUids) : int
Parameters
- $recordUids : array
Return values
intgetFilesToClean()
Find processed files without a reference
public
getFilesToClean([bool $fullReset = false ]) : SplFileInfo[]
Parameters
- $fullReset : bool = false
-
When true also removes entries that have an empty identifier or storage
Return values
SplFileInfo[]getOfflineLocalStorages()
public
getOfflineLocalStorages() : ResourceStorage[]
Return values
ResourceStorage[]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