TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractLinkHandler Class Reference
Inheritance diagram for AbstractLinkHandler:
FileLinkHandler MailLinkHandler PageLinkHandler UrlLinkHandler 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 ( )

Constructor

Definition at line 57 of file AbstractLinkHandler.php.

Member Function Documentation

getBackendUser ( )
protected
getLanguageService ( )
protected
getLinkAttributes ( )
Returns
array

Definition at line 79 of file AbstractLinkHandler.php.

References AbstractLinkHandler\$linkAttributes.

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 AbstractLinkHandler\$linkBrowser, and GeneralUtility\makeInstance().

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

References AbstractLinkHandler\$updateSupported.

modifyLinkAttributes ( array  $fieldDefinitions)
Parameters
string[]$fieldDefinitions Array of link attribute field definitions
Returns
string[]

Definition at line 88 of file AbstractLinkHandler.php.

setTemporaryDbMounts ( )
protected

Member Data Documentation

$iconFactory
protected

Definition at line 52 of file AbstractLinkHandler.php.

$linkAttributes = [ 'target', 'title', 'class', 'params', 'rel' ]
protected

Definition at line 37 of file AbstractLinkHandler.php.

Referenced by AbstractLinkHandler\getLinkAttributes().

$linkBrowser
protected

Definition at line 47 of file AbstractLinkHandler.php.

Referenced by AbstractLinkHandler\initialize().

$updateSupported = true
protected

Definition at line 42 of file AbstractLinkHandler.php.

Referenced by AbstractLinkHandler\isUpdateSupported().