TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
EditImageHandler Class Reference
Inheritance diagram for EditImageHandler:
LinkHandlerInterface LinkParameterProviderInterface

Public Member Functions

 initialize (AbstractLinkBrowserController $linkBrowser, $identifier, array $configuration)
 
 canHandleLink (array $linkParts)
 
 formatCurrentUrl ()
 
 modifyAllowedItems ($allowedItems, $linkParts)
 
 render (ServerRequestInterface $request)
 
 isUpdateSupported ()
 
 getBodyTagAttributes ()
 
 getScriptUrl ()
 
 getUrlParameters (array $values)
 
 isCurrentlySelectedItem (array $values)
 
 getLinkAttributes ()
 
 modifyLinkAttributes (array $fieldDefinitions)
 

Protected Member Functions

 getLanguageService ()
 

Protected Attributes

 $selectImageController
 
 $currentFile
 

Detailed Description

Definition at line 29 of file EditImageHandler.php.

Member Function Documentation

canHandleLink ( array  $linkParts)

Checks if this is the handler for the given link

The handler may store this information locally for later usage.

Parameters
array$linkPartsLink parts as returned from TypoLinkCodecService
Returns
bool

Implements LinkHandlerInterface.

Definition at line 67 of file EditImageHandler.php.

References ResourceFactory\getInstance().

formatCurrentUrl ( )

Format the current link for HTML output

Returns
string

Implements LinkHandlerInterface.

Definition at line 84 of file EditImageHandler.php.

getBodyTagAttributes ( )
Returns
string[] Array of body-tag attributes

Implements LinkHandlerInterface.

Definition at line 213 of file EditImageHandler.php.

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 276 of file EditImageHandler.php.

References $GLOBALS.

Referenced by EditImageHandler\render().

getLinkAttributes ( )
Returns
array

Implements LinkHandlerInterface.

Definition at line 259 of file EditImageHandler.php.

getScriptUrl ( )

Returns the URL of the current script

Returns
string

Implements LinkParameterProviderInterface.

Definition at line 225 of file EditImageHandler.php.

getUrlParameters ( array  $values)

Provides an array or GET parameters for URL generation

Parameters
array$valuesArray of values to include into the parameters or which might influence the parameters
Returns
string[] Array of parameters which have to be added to URLs

Implements LinkParameterProviderInterface.

Definition at line 237 of file EditImageHandler.php.

initialize ( AbstractLinkBrowserController  $linkBrowser,
  $identifier,
array  $configuration 
)

Initialize the handler

Parameters
AbstractLinkBrowserController$linkBrowser
string$identifier
array$configurationPage TSconfig
Returns
void

Implements LinkHandlerInterface.

Definition at line 50 of file EditImageHandler.php.

isCurrentlySelectedItem ( array  $values)

Check if given value is currently the selected item

This method is only used in the page tree.

Parameters
array$valuesValues to be checked
Returns
bool Returns TRUE if the given values match the currently selected item

Implements LinkParameterProviderInterface.

Definition at line 251 of file EditImageHandler.php.

isUpdateSupported ( )

Return TRUE if the handler supports to update a link.

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

Returns
bool

Implements LinkHandlerInterface.

Definition at line 205 of file EditImageHandler.php.

modifyAllowedItems (   $allowedItems,
  $linkParts 
)

Disallow this handler if no image is there to edit

Parameters
array$allowedItems
Returns
array

Definition at line 95 of file EditImageHandler.php.

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

Implements LinkHandlerInterface.

Definition at line 268 of file EditImageHandler.php.

render ( ServerRequestInterface  $request)

Render the link handler

Parameters
ServerRequestInterface$request
Returns
string

Implements LinkHandlerInterface.

Definition at line 111 of file EditImageHandler.php.

References EditImageHandler\getLanguageService(), GeneralUtility\makeInstance(), and GeneralUtility\trimExplode().

Member Data Documentation

$currentFile
protected

Definition at line 39 of file EditImageHandler.php.

$selectImageController
protected

Definition at line 34 of file EditImageHandler.php.