‪TYPO3CMS  9.5
TYPO3\CMS\Recordlist\Controller\ElementBrowserController Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\Controller\ElementBrowserController:
TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
mixed __call (string $methodName, array $arguments)
 

Public Attributes

DocumentTemplate $doc
 

Protected Member Functions

 init ()
 
string main ()
 
ElementBrowserInterface getElementBrowserInstance ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

string $mode
 

Private Attributes

array $deprecatedPublicMethods
 

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 33 of file ElementBrowserController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recordlist\Controller\ElementBrowserController::__construct ( )

Member Function Documentation

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Recordlist\Controller\ElementBrowserController::getBackendUser ( )
protected
Returns
‪BackendUserAuthentication

Definition at line 167 of file ElementBrowserController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main().

◆ getElementBrowserInstance()

ElementBrowserInterface TYPO3\CMS\Recordlist\Controller\ElementBrowserController::getElementBrowserInstance ( )
protected

Get instance of the actual element browser

This method shall be overwritten in subclasses

Returns
‪ElementBrowserInterface
Exceptions

Definition at line 146 of file ElementBrowserController.php.

References $GLOBALS, and TYPO3\CMS\Recordlist\Controller\ElementBrowserController\$mode.

Referenced by TYPO3\CMS\Recordlist\Controller\ElementBrowserController\main().

◆ getLanguageService()

LanguageService TYPO3\CMS\Recordlist\Controller\ElementBrowserController::getLanguageService ( )
protected
Returns
‪LanguageService

Definition at line 159 of file ElementBrowserController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recordlist\Controller\ElementBrowserController\init().

◆ init()

TYPO3\CMS\Recordlist\Controller\ElementBrowserController::init ( )
protected

◆ main()

string TYPO3\CMS\Recordlist\Controller\ElementBrowserController::main ( )
protected

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

Returns
‪string HTML content

Definition at line 106 of file ElementBrowserController.php.

References $GLOBALS, TYPO3\CMS\Recordlist\Controller\ElementBrowserController\getBackendUser(), and TYPO3\CMS\Recordlist\Controller\ElementBrowserController\getElementBrowserInstance().

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

◆ mainAction()

ResponseInterface TYPO3\CMS\Recordlist\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 91 of file ElementBrowserController.php.

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

Member Data Documentation

◆ $deprecatedPublicMethods

array TYPO3\CMS\Recordlist\Controller\ElementBrowserController::$deprecatedPublicMethods
private
Initial value:
= array(
'main' => 'Using ElementBrowserController::main() is deprecated and will not be possible anymore in TYPO3 v10.0.',
)

Definition at line 38 of file ElementBrowserController.php.

◆ $doc

DocumentTemplate TYPO3\CMS\Recordlist\Controller\ElementBrowserController::$doc

Document template object

Definition at line 58 of file ElementBrowserController.php.

◆ $mode

string TYPO3\CMS\Recordlist\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 52 of file ElementBrowserController.php.

Referenced by TYPO3\CMS\Recordlist\Controller\ElementBrowserController\getElementBrowserInstance().