SynchronizeFolderRelations
Event listeners to synchronize folder relations after some action like renaming or moving of a folder, took place.
Table of Contents
Properties
Methods
- __construct() : mixed
- synchronizeFileCollectionsAfterRename() : void
- Synchronize file collection relations after a folder was renamed
- synchronizeFilemountsAfterRename() : void
- Synchronize file mount relations after a folder was renamed
- addFlashMessage() : void
- Add a flash message for a successfully performed synchronization
- getLanguageServcie() : LanguageService
- getPreparedQueryBuilder() : QueryBuilder
Properties
$connectionPool
protected
ConnectionPool
$connectionPool
$flashMessageService
protected
FlashMessageService
$flashMessageService
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, FlashMessageService $flashMessageService) : mixed
Parameters
- $connectionPool : ConnectionPool
- $flashMessageService : FlashMessageService
synchronizeFileCollectionsAfterRename()
Synchronize file collection relations after a folder was renamed
public
synchronizeFileCollectionsAfterRename(AfterFolderRenamedEvent $event) : void
Parameters
- $event : AfterFolderRenamedEvent
Tags
Attributes
- #[AsEventListener]
- 'synchronize-file-collections-after-folder-renamed'
synchronizeFilemountsAfterRename()
Synchronize file mount relations after a folder was renamed
public
synchronizeFilemountsAfterRename(AfterFolderRenamedEvent $event) : void
Parameters
- $event : AfterFolderRenamedEvent
Tags
Attributes
- #[AsEventListener]
- 'synchronize-filemounts-after-folder-renamed'
addFlashMessage()
Add a flash message for a successfully performed synchronization
protected
addFlashMessage(int $updatedRelationsCount, string $table, string $event) : void
Parameters
- $updatedRelationsCount : int
-
The amount of relations synchronized
- $table : string
-
The relation table the synchronization was performed on
- $event : string
-
The event after which the synchronization was performed
Tags
getLanguageServcie()
protected
getLanguageServcie() : LanguageService
Return values
LanguageServicegetPreparedQueryBuilder()
protected
getPreparedQueryBuilder(string $table) : QueryBuilder
Parameters
- $table : string