‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\ElementBrowserController Class Reference

Public Member Functions

 __construct (protected readonly ElementBrowserRegistry $elementBrowserRegistry)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

string main (ServerRequestInterface $request)
 
 getBackendUser ()
 

Protected Attributes

string $mode = ''
 

Detailed Description

Script class for the Element Browser window.

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Definition at line 32 of file ElementBrowserController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ElementBrowserController::__construct ( protected readonly ElementBrowserRegistry  $elementBrowserRegistry)

Definition at line 45 of file ElementBrowserController.php.

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Backend\Controller\ElementBrowserController::getBackendUser ( )
protected

◆ main()

string TYPO3\CMS\Backend\Controller\ElementBrowserController::main ( ServerRequestInterface  $request)
protected

Main function, detecting the current mode of the element browser and branching out to internal methods.

Returns
‪string HTML content

Definition at line 65 of file ElementBrowserController.php.

References TYPO3\CMS\Backend\Controller\ElementBrowserController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\ElementBrowserController\mainAction().

◆ mainAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ElementBrowserController::mainAction ( ServerRequestInterface  $request)

Injects the request object for the current request or sub-request As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 54 of file ElementBrowserController.php.

References TYPO3\CMS\Backend\Controller\ElementBrowserController\main().

Member Data Documentation

◆ $mode

string TYPO3\CMS\Backend\Controller\ElementBrowserController::$mode = ''
protected

The mode determines the main kind of output of the element browser.

There are these options for values:

  • ‪"db" will allow you to browse for pages or records in the page tree for FormEngine select fields
  • ‪"file" will allow you to browse for files in the folder mounts for FormEngine file selections
  • ‪"folder" will allow you to browse for folders in the folder mounts for FormEngine folder selections
  • ‪Other options may be registered via extensions

Definition at line 43 of file ElementBrowserController.php.