ResourceUtilityRenderer

Renders utility forms for creating files and folder.

Used in different views, e.g. FileList but also in Element and Link Browsers.

Internal

Table of Contents

Properties

$parameterProvider  : LinkParameterProviderInterface
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
addOnlineMedia()  : string
For TBE: Creates a form for adding online media files (YouTube, Vimeo, etc.).
createDragUpload()  : string
For TBE: Creates a drag-uploader trigger button for file uploads.
createFolder()  : string
For TBE: Makes a form for creating new folders in the file mount the user is browsing.
createRegularFile()  : string
For TBE: Creates a form for creating new text files.
uploadForm()  : string
Makes an upload form for uploading files to the file mount the user is browsing.
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService

Properties

Methods

addOnlineMedia()

For TBE: Creates a form for adding online media files (YouTube, Vimeo, etc.).

public addOnlineMedia(ServerRequestInterface $request, Folder $folderObject[, FileExtensionFilter|null $fileExtensionFilter = null ]) : string
Parameters
$request : ServerRequestInterface
$folderObject : Folder

Folder object in which to create the online media file.

$fileExtensionFilter : FileExtensionFilter|null = null

Optional filter for allowed/disallowed file extensions.

Return values
string

HTML for the online media form.

createDragUpload()

For TBE: Creates a drag-uploader trigger button for file uploads.

public createDragUpload(Folder $folderObject[, FileExtensionFilter|null $fileExtensionFilter = null ][, bool $checkFileBrowserPermission = false ]) : string

Used in the element browser context with drag-uploader support.

Parameters
$folderObject : Folder

Folder object in which to upload files.

$fileExtensionFilter : FileExtensionFilter|null = null

Optional filter for allowed/disallowed file extensions.

$checkFileBrowserPermission : bool = false
Return values
string

HTML for the drag-uploader trigger.

createFolder()

For TBE: Makes a form for creating new folders in the file mount the user is browsing.

public createFolder(ServerRequestInterface $request, Folder $folderObject) : string

The folder creation request is sent to the tce_file.php script in the core which will handle the creation.

Parameters
$request : ServerRequestInterface
$folderObject : Folder

Absolute filepath on server in which to create the new folder.

Return values
string

HTML for the create folder form.

createRegularFile()

For TBE: Creates a form for creating new text files.

public createRegularFile(ServerRequestInterface $request, Folder $folderObject) : string
Parameters
$request : ServerRequestInterface
$folderObject : Folder

Folder object in which to create the text file.

Return values
string

HTML for the text file creation form.

uploadForm()

Makes an upload form for uploading files to the file mount the user is browsing.

public uploadForm(ServerRequestInterface $request, Folder $folderObject[, FileExtensionFilter|null $fileExtensionFilter = null ]) : string

The files are uploaded to the tce_file.php script in the core which will handle the upload.

Parameters
$request : ServerRequestInterface
$folderObject : Folder
$fileExtensionFilter : FileExtensionFilter|null = null
Return values
string

HTML for an upload form.


        
On this page

Search results