FolderUtilityRenderer
Renders utility forms used in the views for files/folders of Element and Link Browser
Table of Contents
Properties
Methods
- __construct() : mixed
- createFolder() : string
- For TBE: Makes a form for creating new folders in the filemount the user is browsing.
- uploadForm() : string
- Makes an upload form for uploading files to the filemount the user is browsing.
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
Properties
$parameterProvider
protected
LinkParameterProviderInterface
$parameterProvider
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(LinkParameterProviderInterface $parameterProvider) : mixed
Parameters
- $parameterProvider : LinkParameterProviderInterface
createFolder()
For TBE: Makes a form for creating new folders in the filemount the user is browsing.
public
createFolder(Folder $folderObject) : string
The folder creation request is sent to the tce_file.php script in the core which will handle the creation.
Parameters
- $folderObject : Folder
-
Absolute filepath on server in which to create the new folder.
Return values
string —HTML for the create folder form.
uploadForm()
Makes an upload form for uploading files to the filemount the user is browsing.
public
uploadForm(Folder $folderObject, array<string|int, string> $allowedExtensions) : string
The files are uploaded to the tce_file.php script in the core which will handle the upload.
Parameters
- $folderObject : Folder
- $allowedExtensions : array<string|int, string>
Return values
string —HTML for an upload form.
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService