CleanUpLocalProcessedFilesService

class \TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService

Table of Contents

Constants

DRIVER  : mixed = 'Local'
TABLE_NAME  : mixed = 'sys_file_processedfile'

Methods

deleteRecord()  : int
getFilesToClean()  : array
Find processed files without a reference
getRecordsToClean()  : array
Find records which reference non-existing files
getAbsoluteBasePath()  : string
getFilesOfFolderRecursive()  : 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 $recordUids) : int

Parameters

$recordUids : array

Return values

int

getFilesToClean()

Find processed files without a reference

public getFilesToClean([int $limit = 0 ][, bool $fullReset = false ]) : array

Parameters

$limit : int = 0

Limit (deprecated)

$fullReset : bool = false

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

Return values

array

getRecordsToClean()

Find records which reference non-existing files

public getRecordsToClean([bool $fullReset = false ]) : array

Parameters

$fullReset : bool = false

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

Return values

array

getAbsoluteBasePath()

protected getAbsoluteBasePath(array $configuration) : string

Parameters

$configuration : array

Return values

string

getFilesOfFolderRecursive()

Recursive generation of file information for files of the given folder.

protected getFilesOfFolderRecursive(Folder $folder) : SplFileInfo[]

As this could be a lot of files the generator method is used to reduce memory usage.

Parameters

$folder : Folder

Return values

SplFileInfo[]
On this page