‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\SynchronizeFolderRelations Class Reference

Public Member Functions

 __construct (ConnectionPool $connectionPool, FlashMessageService $flashMessageService)
 
 synchronizeFileCollectionsAfterRename (AfterFolderRenamedEvent $event)
 
 synchronizeFilemountsAfterRename (AfterFolderRenamedEvent $event)
 

Protected Member Functions

 addFlashMessage (int $updatedRelationsCount, string $table, string $event)
 
 getPreparedQueryBuilder (string $table)
 
 getLanguageServcie ()
 

Protected Attributes

ConnectionPool $connectionPool
 
FlashMessageService $flashMessageService
 

Detailed Description

Event listeners to synchronize folder relations after some action like renaming or moving of a folder, took place.

Definition at line 38 of file SynchronizeFolderRelations.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::__construct ( ConnectionPool  $connectionPool,
FlashMessageService  $flashMessageService 
)

Member Function Documentation

◆ addFlashMessage()

TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::addFlashMessage ( int  $updatedRelationsCount,
string  $table,
string  $event 
)
protected

Add a flash message for a successfully performed synchronization

Parameters
int$updatedRelationsCount‪The amount of relations synchronized
string$table‪The relation table the synchronization was performed on
string$event‪The event after which the synchronization was performed
Exceptions

Definition at line 139 of file SynchronizeFolderRelations.php.

References $GLOBALS, and TYPO3\CMS\Core\Resource\SynchronizeFolderRelations\getLanguageServcie().

Referenced by TYPO3\CMS\Core\Resource\SynchronizeFolderRelations\synchronizeFileCollectionsAfterRename(), and TYPO3\CMS\Core\Resource\SynchronizeFolderRelations\synchronizeFilemountsAfterRename().

◆ getLanguageServcie()

TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::getLanguageServcie ( )
protected

◆ getPreparedQueryBuilder()

TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::getPreparedQueryBuilder ( string  $table)
protected

◆ synchronizeFileCollectionsAfterRename()

◆ synchronizeFilemountsAfterRename()

Member Data Documentation

◆ $connectionPool

ConnectionPool TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::$connectionPool
protected

◆ $flashMessageService

FlashMessageService TYPO3\CMS\Core\Resource\SynchronizeFolderRelations::$flashMessageService
protected