CleanUpLocalProcessedFilesService

Internal

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

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
int

getFilesToClean()

Find processed files without a reference

public getFilesToClean([int $limit = 0 ][, bool $fullReset = false ]) : array<string|int, mixed>
Parameters
$limit : int = 0

Limit (deprecated)

$fullReset : bool = false

When true also removes entries that have an empty identifier or storage

Return values
array<string|int, mixed>

getRecordsToClean()

Find records which reference non-existing files

public getRecordsToClean([bool $fullReset = false ]) : array<string|int, mixed>
Parameters
$fullReset : bool = false

When true also removes entries that have an empty identifier or storage

Return values
array<string|int, mixed>

getAbsoluteBasePath()

protected getAbsoluteBasePath(array<string|int, mixed> $configuration) : string
Parameters
$configuration : array<string|int, mixed>
Return values
string

getFilesOfFolderRecursive()

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>

        
On this page

Search results