TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractLinkBrowserController Class Reference
Inheritance diagram for AbstractLinkBrowserController:
LinkBrowserController BrowseLinksController

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

__construct ( )

Member Function Documentation

determineScriptUrl ( ServerRequestInterface  $request)
protected

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

Parameters
ServerRequestInterface$request
Exceptions
\TYPO3\CMS\Backend\Routing\Exception\ResourceNotFoundException
\TYPO3\CMS\Backend\Routing\Exception\RouteNotFoundException

Definition at line 198 of file AbstractLinkBrowserController.php.

References elseif, GeneralUtility\getIndpEnv(), ServerRequestInterface\getQueryParams(), and GeneralUtility\makeInstance().

Referenced by AbstractLinkBrowserController\mainAction().

getAllowedItems ( )
protected

Get the allowed items or tabs

Returns
string[]

Definition at line 421 of file AbstractLinkBrowserController.php.

References GeneralUtility\trimExplode().

getAllowedLinkAttributes ( )
protected

Get the allowed link attributes

Returns
string[]

Definition at line 445 of file AbstractLinkBrowserController.php.

References GeneralUtility\trimExplode().

Referenced by AbstractLinkBrowserController\renderLinkAttributeFields().

getBackendUser ( )
protected
Returns
BackendUserAuthentication

Definition at line 659 of file AbstractLinkBrowserController.php.

References $GLOBALS.

Referenced by AbstractLinkBrowserController\getLinkHandlers(), and BrowseLinksController\initVariables().

getBodyTagAttributes ( )
protected

Get attributes for the body tag

Returns
string[] Array of body-tag attributes

Definition at line 583 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 628 of file AbstractLinkBrowserController.php.

getCurrentPageId ( )
abstractprotected

Return the ID of current page

Returns
int

Referenced by AbstractLinkBrowserController\getLinkHandlers().

getDisplayedLinkHandlerId ( )
getLanguageService ( )
protected
getLinkAttributeFieldDefinitions ( )
protected

Create an array of link attribute field rendering definitions

Returns
string[]

Definition at line 496 of file AbstractLinkBrowserController.php.

References $lang, and AbstractLinkBrowserController\getLanguageService().

Referenced by AbstractLinkBrowserController\renderLinkAttributeFields().

getLinkHandlers ( )
protected
getParameters ( )
Returns
array

Definition at line 618 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 571 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 324 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.

References GeneralUtility\deprecationLog(), and ServerRequestInterface\getQueryParams().

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 162 of file AbstractLinkBrowserController.php.

References $response, AbstractLinkBrowserController\determineScriptUrl(), MessageInterface\getBody(), AbstractLinkBrowserController\initDocumentTemplate(), AbstractLinkBrowserController\initVariables(), AbstractLinkBrowserController\renderCurrentUrl(), and AbstractLinkBrowserController\renderLinkAttributeFields().

renderCurrentUrl ( )
protected

Render the currently set URL

Returns
string

Definition at line 343 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
$currentLinkParts = []
protected
LinkHandlerInterface $displayedLinkHandler
protected

Link handler to be displayed

Definition at line 84 of file AbstractLinkBrowserController.php.

$displayedLinkHandlerId = ''
protected
$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
$parameters
protected
$thisScript = ''
protected