TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractLinkBrowserController Class Reference
Inheritance diagram for AbstractLinkBrowserController:
LinkBrowserController BrowseLinksController BrowseLinksController SelectImageController

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 renderLinkAttributeFields ()
 
 getUrlParameters (array $overrides=null)
 
 getParameters ()
 
 getConfiguration ()
 
 getDisplayedLinkHandlerId ()
 
 getScriptUrl ()
 

Protected Member Functions

 init ()
 
 initHookObjects ()
 
 determineScriptUrl (ServerRequestInterface $request)
 
 initVariables (ServerRequestInterface $request)
 
 getLinkHandlers ()
 
 initDocumentTemplate ()
 
 renderCurrentUrl ()
 
 getAllowedItems ()
 
 getAllowedLinkAttributes ()
 
 getLinkAttributeFieldDefinitions ()
 
 getBodyTagAttributes ()
 
 getCurrentPageId ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $doc
 
 $parameters
 
 $thisScript = ''
 
 $linkHandlers = []
 
 $currentLinkParts = []
 
 $currentLinkHandler
 
 $currentLinkHandlerId
 
 $displayedLinkHandler
 
 $displayedLinkHandlerId = ''
 
 $linkAttributeFields = []
 
 $linkAttributeValues = []
 
 $hookObjects = []
 

Detailed Description

Script class for the Link Browser window.

Definition at line 32 of file AbstractLinkBrowserController.php.

Constructor & Destructor Documentation

Member Function Documentation

determineScriptUrl ( ServerRequestInterface  $request)
protected

Sets the script url depending on being a module or script request

Parameters
ServerRequestInterface$request
Exceptions
TYPO3
TYPO3

Definition at line 198 of file AbstractLinkBrowserController.php.

References GeneralUtility\getIndpEnv(), and GeneralUtility\makeInstance().

Referenced by AbstractLinkBrowserController\mainAction().

getAllowedItems ( )
protected

Get the allowed items or tabs

Returns
string[]

Definition at line 418 of file AbstractLinkBrowserController.php.

References GeneralUtility\trimExplode().

getAllowedLinkAttributes ( )
protected

Get the allowed link attributes

Returns
string[]

Definition at line 442 of file AbstractLinkBrowserController.php.

References GeneralUtility\trimExplode().

Referenced by AbstractLinkBrowserController\renderLinkAttributeFields().

getBackendUser ( )
protected
getBodyTagAttributes ( )
protected

Get attributes for the body tag

Returns
string[] Array of body-tag attributes

Definition at line 582 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\$parameters, AbstractLinkBrowserController\getUrlParameters(), and GeneralUtility\implodeArrayForUrl().

Referenced by AbstractLinkBrowserController\initDocumentTemplate().

getConfiguration ( )

Retrieve the configuration

Returns
array

Definition at line 627 of file AbstractLinkBrowserController.php.

getCurrentPageId ( )
abstractprotected

Return the ID of current page

Returns
int

Referenced by AbstractLinkBrowserController\getLinkHandlers().

getDisplayedLinkHandlerId ( )
getLinkAttributeFieldDefinitions ( )
protected

Create an array of link attribute field rendering definitions

Returns
string[]

Definition at line 491 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\getLanguageService().

Referenced by AbstractLinkBrowserController\renderLinkAttributeFields().

getLinkHandlers ( )
protected
getParameters ( )
Returns
array

Definition at line 617 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\$parameters.

getScriptUrl ( )
Returns
string

Definition at line 643 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\$thisScript.

getUrlParameters ( array  $overrides = null)
Parameters
array$overrides
Returns
array Array of parameters which have to be added to URLs

Definition at line 570 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\$displayedLinkHandlerId.

Referenced by AbstractLinkBrowserController\getBodyTagAttributes().

init ( )
protected

Initialize the controller

Returns
void

Definition at line 128 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\getLanguageService().

Referenced by AbstractLinkBrowserController\__construct().

initDocumentTemplate ( )
protected

Initialize document template object

Returns
void

Definition at line 318 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\getBodyTagAttributes(), and GeneralUtility\makeInstance().

Referenced by AbstractLinkBrowserController\mainAction().

initHookObjects ( )
protected

Initialize hook objects implementing the interface

Exceptions
UnexpectedValueException
Returns
void

Definition at line 139 of file AbstractLinkBrowserController.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Referenced by AbstractLinkBrowserController\__construct().

initVariables ( ServerRequestInterface  $request)
protected
Parameters
ServerRequestInterface$request

Definition at line 215 of file AbstractLinkBrowserController.php.

Referenced by AbstractLinkBrowserController\mainAction().

mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest 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 161 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\determineScriptUrl(), AbstractLinkBrowserController\initDocumentTemplate(), AbstractLinkBrowserController\initVariables(), AbstractLinkBrowserController\renderCurrentUrl(), and AbstractLinkBrowserController\renderLinkAttributeFields().

renderCurrentUrl ( )
protected

Render the currently set URL

Returns
string

Definition at line 338 of file AbstractLinkBrowserController.php.

References AbstractLinkBrowserController\getLanguageService().

Referenced by AbstractLinkBrowserController\mainAction().

renderLinkAttributeFields ( )

Member Data Documentation

LinkHandlerInterface $currentLinkHandler
protected

Link handler responsible for the current active link

Definition at line 70 of file AbstractLinkBrowserController.php.

$currentLinkHandlerId
protected

Definition at line 77 of file AbstractLinkBrowserController.php.

$currentLinkParts = []
protected
LinkHandlerInterface $displayedLinkHandler
protected

Link handler to be displayed

Definition at line 84 of file AbstractLinkBrowserController.php.

$doc
protected

Definition at line 37 of file AbstractLinkBrowserController.php.

$hookObjects = []
protected

Definition at line 112 of file AbstractLinkBrowserController.php.

$linkAttributeFields = []
protected

Definition at line 100 of file AbstractLinkBrowserController.php.

$linkAttributeValues = []
protected

Definition at line 107 of file AbstractLinkBrowserController.php.

$linkHandlers = []
protected
$thisScript = ''
protected