TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect Class Reference

Public Member Functions

 removeFromRepository (FileInterface $fileObject)
 
 cleanupProcessedFilesPostFileAdd (FileInterface $file, $targetFolder)
 
 cleanupProcessedFilesPostFileReplace (FileInterface $file, $localFilePath)
 

Protected Member Functions

 getFileIndexRepository ()
 
 getMetaDataRepository ()
 
 getProcessedFileRepository ()
 
 getDatabaseConnection ()
 
 cleanupCategoryReferences (File $fileObject)
 

Detailed Description

Class FileDeletionAspect

We do not have AOP in TYPO3 for now, thus the aspect which deals with deleted files is a slot which reacts on a signal on file deletion.

The aspect cleans up database records, processed files and filereferences

Definition at line 31 of file FileDeletionAspect.php.

Member Function Documentation

◆ cleanupCategoryReferences()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::cleanupCategoryReferences ( File  $fileObject)
protected

◆ cleanupProcessedFilesPostFileAdd()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::cleanupProcessedFilesPostFileAdd ( FileInterface  $file,
  $targetFolder 
)

Remove all processed files on SIGNAL_PostFileAdd

Parameters
FileInterface$file
string$targetFolder

Definition at line 100 of file FileDeletionAspect.php.

◆ cleanupProcessedFilesPostFileReplace()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::cleanupProcessedFilesPostFileReplace ( FileInterface  $file,
  $localFilePath 
)

Remove all processed files on SIGNAL_PostFileReplace

Parameters
FileInterface$file
string$localFilePath

Definition at line 110 of file FileDeletionAspect.php.

◆ getDatabaseConnection()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::getDatabaseConnection ( )
protected

◆ getFileIndexRepository()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::getFileIndexRepository ( )
protected

◆ getMetaDataRepository()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::getMetaDataRepository ( )
protected

◆ getProcessedFileRepository()

TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::getProcessedFileRepository ( )
protected

◆ removeFromRepository()