‪TYPO3CMS  ‪main
TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService Class Reference

Public Member Functions

 getFilesToClean (int $limit=0, bool $fullReset=false)
 
 getRecordsToClean (bool $fullReset=false)
 
 deleteRecord (array $recordUids)
 

Protected Member Functions

SplFileInfo[] getFilesOfFolderRecursive (Folder $folder)
 
 getAbsoluteBasePath (array $configuration)
 
 getQueryBuilderWithoutRestrictions ()
 

Protected Attributes

const TABLE_NAME = 'sys_file_processedfile'
 
const DRIVER = 'Local'
 

Detailed Description

not part of TYPO3's Core API

Definition at line 34 of file CleanUpLocalProcessedFilesService.php.

Member Function Documentation

◆ deleteRecord()

TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::deleteRecord ( array  $recordUids)

◆ getAbsoluteBasePath()

◆ getFilesOfFolderRecursive()

SplFileInfo [] TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::getFilesOfFolderRecursive ( Folder  $folder)
protected

Recursive generation of file information for files of the given folder. As this could be a lot of files the generator method is used to reduce memory usage.

Returns
‪\SplFileInfo[]

Definition at line 170 of file CleanUpLocalProcessedFilesService.php.

References TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService\getAbsoluteBasePath(), TYPO3\CMS\Core\Resource\Folder\getIdentifier(), and TYPO3\CMS\Core\Resource\Folder\getStorage().

Referenced by TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService\getFilesToClean().

◆ getFilesToClean()

TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::getFilesToClean ( int  $limit = 0,
bool  $fullReset = false 
)

◆ getQueryBuilderWithoutRestrictions()

TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::getQueryBuilderWithoutRestrictions ( )
protected

◆ getRecordsToClean()

TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::getRecordsToClean ( bool  $fullReset = false)

Find records which reference non-existing files

Parameters
bool$fullReset‪When true also removes entries that have an empty identifier or storage

Definition at line 104 of file CleanUpLocalProcessedFilesService.php.

References TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService\getQueryBuilderWithoutRestrictions().

Member Data Documentation

◆ DRIVER

const TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::DRIVER = 'Local'
protected

Definition at line 37 of file CleanUpLocalProcessedFilesService.php.

◆ TABLE_NAME

const TYPO3\CMS\Lowlevel\Service\CleanUpLocalProcessedFilesService::TABLE_NAME = 'sys_file_processedfile'
protected

Definition at line 36 of file CleanUpLocalProcessedFilesService.php.