TYPO3
7.6
|
Public Member Functions | |
removeFromRepository (FileInterface $fileObject) | |
cleanupProcessedFilesPostFileAdd (FileInterface $file, $targetFolder) | |
cleanupProcessedFilesPostFileReplace (FileInterface $file, $localFilePath) | |
Protected Member Functions | |
getFileIndexRepository () | |
getMetaDataRepository () | |
getProcessedFileRepository () | |
getDatabaseConnection () | |
cleanupCategoryReferences (File $fileObject) | |
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.
|
protected |
Remove all category references of the deleted file.
File | $fileObject |
Definition at line 126 of file FileDeletionAspect.php.
References File\_getMetaData(), and FileDeletionAspect\getDatabaseConnection().
Referenced by FileDeletionAspect\removeFromRepository().
cleanupProcessedFilesPostFileAdd | ( | FileInterface | $file, |
$targetFolder | |||
) |
Remove all processed files on SIGNAL_PostFileAdd
FileInterface | $file | |
string | $targetFolder |
Definition at line 104 of file FileDeletionAspect.php.
cleanupProcessedFilesPostFileReplace | ( | FileInterface | $file, |
$localFilePath | |||
) |
Remove all processed files on SIGNAL_PostFileReplace
FileInterface | $file | |
string | $localFilePath |
Definition at line 115 of file FileDeletionAspect.php.
|
protected |
Wrapper method for getting DatabaseConnection
Definition at line 68 of file FileDeletionAspect.php.
References $GLOBALS.
Referenced by FileDeletionAspect\cleanupCategoryReferences(), and FileDeletionAspect\removeFromRepository().
|
protected |
Return a file index repository
Definition at line 38 of file FileDeletionAspect.php.
References GeneralUtility\makeInstance().
Referenced by FileDeletionAspect\removeFromRepository().
|
protected |
Return a metadata repository
Definition at line 48 of file FileDeletionAspect.php.
References GeneralUtility\makeInstance().
Referenced by FileDeletionAspect\removeFromRepository().
|
protected |
Return a processed file repository
Definition at line 58 of file FileDeletionAspect.php.
References GeneralUtility\makeInstance().
removeFromRepository | ( | FileInterface | $fileObject | ) |
Cleanup database record for a deleted file
FileInterface | $fileObject |
Definition at line 79 of file FileDeletionAspect.php.
References FileDeletionAspect\cleanupCategoryReferences(), elseif, FileDeletionAspect\getDatabaseConnection(), FileDeletionAspect\getFileIndexRepository(), and FileDeletionAspect\getMetaDataRepository().