‪TYPO3CMS  10.4
TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler:
TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler TYPO3\CMS\Recordlist\LinkHandler\MailLinkHandler TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler TYPO3\CMS\Recordlist\LinkHandler\TelephoneLinkHandler TYPO3\CMS\Recordlist\LinkHandler\UrlLinkHandler TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler

Public Member Functions

 __construct ()
 
 initialize (AbstractLinkBrowserController $linkBrowser, $identifier, array $configuration)
 
array getLinkAttributes ()
 
string[] modifyLinkAttributes (array $fieldDefinitions)
 
bool isUpdateSupported ()
 

Protected Member Functions

 setTemporaryDbMounts ()
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 

Protected Attributes

string[] $linkAttributes = array( 'target', 'title', 'class', 'params', 'rel' )
 
bool $updateSupported = true
 
AbstractLinkBrowserController $linkBrowser
 
IconFactory $iconFactory
 
TYPO3 CMS Fluid View StandaloneView $view
 

Detailed Description

Base class for link handlers

This class should only be used internally. Extensions must implement the LinkHandlerInterface.

Definition at line 30 of file AbstractLinkHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::__construct ( )

Member Function Documentation

◆ getBackendUser()

◆ getLanguageService()

LanguageService TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::getLanguageService ( )
protected

◆ getLinkAttributes()

array TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::getLinkAttributes ( )

◆ initialize()

TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::initialize ( AbstractLinkBrowserController  $linkBrowser,
  $identifier,
array  $configuration 
)

Initialize the handler

Parameters
AbstractLinkBrowserController$linkBrowser
string$identifier
array$configuration‪Page TSconfig

Reimplemented in TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler.

Definition at line 70 of file AbstractLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\$linkBrowser.

◆ isUpdateSupported()

bool TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::isUpdateSupported ( )

Return TRUE if the handler supports to update a link.

This is useful for e.g. file or page links, when only attributes are changed.

Returns
‪bool

Definition at line 105 of file AbstractLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\$updateSupported.

◆ modifyLinkAttributes()

string [] TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::modifyLinkAttributes ( array  $fieldDefinitions)
Parameters
string[]$fieldDefinitions‪Array of link attribute field definitions
Returns
‪string[]

Reimplemented in TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler.

Definition at line 93 of file AbstractLinkHandler.php.

◆ setTemporaryDbMounts()

TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::setTemporaryDbMounts ( )
protected

Sets a DB mount and stores it in the currently defined backend user in her/his uc

Definition at line 113 of file AbstractLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\getBackendUser().

Referenced by TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler\render(), and TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler\render().

Member Data Documentation

◆ $iconFactory

IconFactory TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::$iconFactory
protected

Definition at line 50 of file AbstractLinkHandler.php.

◆ $linkAttributes

string [] TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::$linkAttributes = array( 'target', 'title', 'class', 'params', 'rel' )
protected

Available additional link attributes

'rel' only works in RTE, still we have to declare support for it.

Definition at line 38 of file AbstractLinkHandler.php.

Referenced by TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\getLinkAttributes().

◆ $linkBrowser

AbstractLinkBrowserController TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::$linkBrowser
protected

◆ $updateSupported

bool TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::$updateSupported = true
protected

◆ $view

TYPO3 CMS Fluid View StandaloneView TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler::$view
protected