TYPO3 CMS  TYPO3_7-6
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\UrlLinkHandler TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler

Public Member Functions

 __construct ()
 
 initialize (AbstractLinkBrowserController $linkBrowser, $identifier, array $configuration)
 
 getLinkAttributes ()
 
 modifyLinkAttributes (array $fieldDefinitions)
 
 isUpdateSupported ()
 

Protected Member Functions

 setTemporaryDbMounts ()
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

 $linkAttributes = [ 'target', 'title', 'class', 'params', 'rel' ]
 
 $updateSupported = true
 
 $linkBrowser
 
 $iconFactory
 

Detailed Description

Base class for link handlers

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

Definition at line 28 of file AbstractLinkHandler.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Definition at line 57 of file AbstractLinkHandler.php.

Member Function Documentation

◆ getBackendUser()

◆ getLanguageService()

◆ getLinkAttributes()

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$configurationPage TSconfig
Returns
void

Definition at line 70 of file AbstractLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\$linkBrowser, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ isUpdateSupported()

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 100 of file AbstractLinkHandler.php.

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

◆ modifyLinkAttributes()

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

Definition at line 88 of file AbstractLinkHandler.php.

◆ setTemporaryDbMounts()

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

Member Data Documentation

◆ $iconFactory

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

Definition at line 52 of file AbstractLinkHandler.php.

◆ $linkAttributes

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

◆ $linkBrowser

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

◆ $updateSupported

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