CleanUpLocalProcessedFilesService
not part of TYPO3's Core API
Table of Contents
Constants
- DRIVER = 'Local'
- TABLE_NAME = 'sys_file_processedfile'
Methods
- deleteRecord() : int
- getFilesToClean() : array<string|int, mixed>
- Find processed files without a reference
- getRecordsToClean() : array<string|int, mixed>
- Find records which reference non-existing files
- getAbsoluteBasePath() : string
- getFilesOfFolderRecursive() : array<string|int, SplFileInfo>
- Recursive generation of file information for files of the given folder.
- getQueryBuilderWithoutRestrictions() : QueryBuilder
Constants
DRIVER
protected
mixed
DRIVER
= 'Local'
TABLE_NAME
protected
mixed
TABLE_NAME
= 'sys_file_processedfile'
Methods
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([int $limit = 0 ]) : array<string|int, mixed>
Parameters
- $limit : int = 0
Return values
array<string|int, mixed>getRecordsToClean()
Find records which reference non-existing files
public
getRecordsToClean() : array<string|int, mixed>
Return values
array<string|int, mixed>getAbsoluteBasePath()
protected
getAbsoluteBasePath(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringgetFilesOfFolderRecursive()
Recursive generation of file information for files of the given folder.
protected
getFilesOfFolderRecursive(Folder $folder) : array<string|int, SplFileInfo>
As this could be a lot of files the generator method is used to reduce memory usage.
Parameters
- $folder : Folder
Return values
array<string|int, SplFileInfo>getQueryBuilderWithoutRestrictions()
protected
getQueryBuilderWithoutRestrictions() : QueryBuilder