‪TYPO3CMS  10.4
TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController:
TYPO3\CMS\Backend\Controller\LinkBrowserController TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
array getUrlParameters (array $overrides=null)
 
array getParameters ()
 
array getConfiguration ()
 
string getScriptUrl ()
 

Public Attributes

return $linkHandlers
 

Protected Member Functions

 init ()
 
 initHookObjects ()
 
 determineScriptUrl (ServerRequestInterface $request)
 
 initVariables (ServerRequestInterface $request)
 
 loadLinkHandlers ()
 
array< string, getLinkHandlers() { $linkHandlers=(array)(BackendUtility::getPagesTSconfig( $this->getCurrentPageId())[ 'TCEMAIN.'][ 'linkHandler.'] ??[]);foreach( $this->hookObjects as $hookObject) { if(method_exists( $hookObject, 'modifyLinkHandlers')) { $linkHandlers=$hookObject-> modifyLinkHandlers ($linkHandlers, $this->currentLinkParts)
 
 initCurrentUrl ()
 
 initDocumentTemplate ()
 
 renderCurrentUrl ()
 
mixed[][] buildMenuArray ()
 
string[] getAllowedItems ()
 
string[] getAllowedLinkAttributes ()
 
string renderLinkAttributeFields ()
 
string[] getLinkAttributeFieldDefinitions ()
 
string[] getBodyTagAttributes ()
 
int getCurrentPageId ()
 
string getDisplayedLinkHandlerId ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

ModuleTemplate $moduleTemplate
 
array $parameters
 
string $thisScript = ''
 
LinkHandlerInterface[] $linkHandlers = array( )
 
string[] $currentLinkParts = array( )
 
LinkHandlerInterface $currentLinkHandler
 
string $currentLinkHandlerId
 
LinkHandlerInterface $displayedLinkHandler
 
string $displayedLinkHandlerId = ''
 
string[] $linkAttributeFields = array( )
 
string[] $linkAttributeValues = array( )
 
array $hookObjects = array( )
 

Detailed Description

Script class for the Link Browser window.

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

Definition at line 35 of file AbstractLinkBrowserController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ buildMenuArray()

◆ determineScriptUrl()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::determineScriptUrl ( ServerRequestInterface  $request)
protected

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

Parameters
ServerRequestInterface$request
Exceptions

Definition at line 181 of file AbstractLinkBrowserController.php.

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

◆ getAllowedItems()

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getAllowedItems ( )
protected

◆ getAllowedLinkAttributes()

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getAllowedLinkAttributes ( )
protected

◆ getBackendUser()

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

Definition at line 598 of file AbstractLinkBrowserController.php.

References $GLOBALS.

◆ getBodyTagAttributes()

◆ getConfiguration()

array TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getConfiguration ( )

Retrieve the configuration

Returns
‪array

Reimplemented in TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController, and TYPO3\CMS\Backend\Controller\LinkBrowserController.

Definition at line 566 of file AbstractLinkBrowserController.php.

◆ getCurrentPageId()

int TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getCurrentPageId ( )
abstractprotected

Return the ID of current page

Returns
‪int

Reimplemented in TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController, and TYPO3\CMS\Backend\Controller\LinkBrowserController.

◆ getDisplayedLinkHandlerId()

string TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getDisplayedLinkHandlerId ( )
protected

◆ getLanguageService()

◆ getLinkAttributeFieldDefinitions()

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getLinkAttributeFieldDefinitions ( )
protected

◆ getParameters()

array TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getParameters ( )

◆ getScriptUrl()

string TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getScriptUrl ( )

◆ getUrlParameters()

array TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::getUrlParameters ( array  $overrides = null)

◆ init()

◆ initCurrentUrl()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::initCurrentUrl ( )
protected

◆ initDocumentTemplate()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::initDocumentTemplate ( )
protected

◆ initHookObjects()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::initHookObjects ( )
protected

Initialize hook objects implementing the interface

Exceptions

Definition at line 130 of file AbstractLinkBrowserController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController\__construct().

◆ initVariables()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::initVariables ( ServerRequestInterface  $request)
protected

◆ loadLinkHandlers()

◆ mainAction()

ResponseInterface TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::mainAction ( ServerRequestInterface  $request)

◆ modifyLinkHandlers()

array<string, getLinkHandlers() { $linkHandlers = (array)(BackendUtility::getPagesTSconfig($this->getCurrentPageId())['TCEMAIN.']['linkHandler.'] ?? []); foreach ($this->hookObjects as $hookObject) { if (method_exists($hookObject, 'modifyLinkHandlers')) { $linkHandlers = $hookObject-> TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::modifyLinkHandlers (   $linkHandlers,
  $this-> 
)
protected

Reads the configured link handlers from page TSconfig

Returns
‪array<string, array<mixed>>

◆ renderCurrentUrl()

TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::renderCurrentUrl ( )
protected

◆ renderLinkAttributeFields()

string TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::renderLinkAttributeFields ( )
protected

Member Data Documentation

◆ $currentLinkHandler

LinkHandlerInterface TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$currentLinkHandler
protected

Link handler responsible for the current active link

$currentLinkHandler

Definition at line 67 of file AbstractLinkBrowserController.php.

Referenced by TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController\buildMenuArray().

◆ $currentLinkHandlerId

string TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$currentLinkHandlerId
protected

The ID of the currently active link handler

Definition at line 73 of file AbstractLinkBrowserController.php.

Referenced by TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController\buildMenuArray().

◆ $currentLinkParts

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$currentLinkParts = array( )
protected

All parts of the current link

Comprised of url information and additional link parameters.

Definition at line 61 of file AbstractLinkBrowserController.php.

Referenced by TYPO3\CMS\Backend\Controller\LinkBrowserController\initCurrentUrl().

◆ $displayedLinkHandler

LinkHandlerInterface TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$displayedLinkHandler
protected

Link handler to be displayed

$displayedLinkHandler

Definition at line 79 of file AbstractLinkBrowserController.php.

◆ $displayedLinkHandlerId

◆ $hookObjects

array TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$hookObjects = array( )
protected

Definition at line 103 of file AbstractLinkBrowserController.php.

◆ $linkAttributeFields

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$linkAttributeFields = array( )
protected

List of available link attribute fields

Definition at line 93 of file AbstractLinkBrowserController.php.

◆ $linkAttributeValues

string [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$linkAttributeValues = array( )
protected

Values of the link attributes

Definition at line 99 of file AbstractLinkBrowserController.php.

◆ $linkHandlers [1/2]

LinkHandlerInterface [] TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$linkHandlers = array( )
protected

◆ $linkHandlers [2/2]

return TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$linkHandlers

Definition at line 256 of file AbstractLinkBrowserController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$moduleTemplate
protected

Definition at line 39 of file AbstractLinkBrowserController.php.

◆ $parameters

◆ $thisScript

string TYPO3\CMS\Recordlist\Controller\AbstractLinkBrowserController::$thisScript = ''
protected