TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ElementBrowserController Class Reference
Inheritance diagram for ElementBrowserController:
SelectImageController

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 

Public Attributes

 $doc
 

Protected Member Functions

 init ()
 
 getElementBrowserInstance ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $mode
 

Detailed Description

Script class for the Element Browser window.

Definition at line 29 of file ElementBrowserController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getBackendUser ( )
protected
Returns
BackendUserAuthentication

Definition at line 166 of file ElementBrowserController.php.

References $GLOBALS.

Referenced by ElementBrowserController\main().

getElementBrowserInstance ( )
protected

Get instance of the actual element browser

This method shall be overwritten in subclasses

Returns
ElementBrowserInterface
Exceptions
\UnexpectedValueException

Definition at line 145 of file ElementBrowserController.php.

References $GLOBALS, ElementBrowserController\$mode, and GeneralUtility\makeInstance().

Referenced by ElementBrowserController\main().

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 158 of file ElementBrowserController.php.

References $GLOBALS.

Referenced by SelectImageController\init(), and ElementBrowserController\init().

init ( )
protected

Initialize the controller

Returns
void

Definition at line 72 of file ElementBrowserController.php.

References GeneralUtility\_GP(), and ElementBrowserController\getLanguageService().

Referenced by ElementBrowserController\__construct().

main ( )

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

Returns
string HTML content

Definition at line 103 of file ElementBrowserController.php.

References $GLOBALS, ElementBrowserController\getBackendUser(), ElementBrowserController\getElementBrowserInstance(), and GeneralUtility\getUserObj().

Referenced by ElementBrowserController\mainAction().

mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

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$requestthe current request
ResponseInterface$responsethe prepared response object
Returns
ResponseInterface the response with the content

Definition at line 87 of file ElementBrowserController.php.

References $response, MessageInterface\getBody(), ElementBrowserController\main(), and ResponseInterface\withStatus().

Member Data Documentation

$doc

Definition at line 49 of file ElementBrowserController.php.

$mode
protected