TreeController
Read onlyYes
Controller providing data to the file storage tree.
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $iconFactory : IconFactory
- $resourceFactory : ResourceFactory
- $treeProvider : FileStorageTreeProvider
Methods
- __construct() : mixed
- fetchDataAction() : ResponseInterface
- Loads data for the first time, or when expanding a folder.
- fetchRootlineAction() : ResponseInterface
- Returns JSON representing page rootline
- filterDataAction() : ResponseInterface
- Used when the search / filter is used.
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getPreparedItemsForOutput() : array<string|int, mixed>
- Adds information for the JSON result to be rendered. Additionally, dispatches event for modification.
Properties
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$iconFactory
protected
IconFactory
$iconFactory
$resourceFactory
protected
ResourceFactory
$resourceFactory
$treeProvider
protected
FileStorageTreeProvider
$treeProvider
Methods
__construct()
public
__construct(IconFactory $iconFactory, FileStorageTreeProvider $treeProvider, ResourceFactory $resourceFactory, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $iconFactory : IconFactory
- $treeProvider : FileStorageTreeProvider
- $resourceFactory : ResourceFactory
- $eventDispatcher : EventDispatcherInterface
fetchDataAction()
Loads data for the first time, or when expanding a folder.
public
fetchDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacefetchRootlineAction()
Returns JSON representing page rootline
public
fetchRootlineAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacefilterDataAction()
Used when the search / filter is used.
public
filterDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Tags
Return values
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetPreparedItemsForOutput()
Adds information for the JSON result to be rendered. Additionally, dispatches event for modification.
protected
getPreparedItemsForOutput(ServerRequestInterface $request, array<string|int, mixed> $items) : array<string|int, mixed>
Parameters
- $request : ServerRequestInterface
- $items : array<string|int, mixed>