TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
LinkBrowserController Class Reference
Inheritance diagram for LinkBrowserController:
AbstractLinkBrowserController

Public Member Functions

 encodeTypoLink (ServerRequestInterface $request, ResponseInterface $response)
 

Protected Member Functions

 initCurrentUrl ()
 
 initDocumentTemplate ()
 
 areFieldChangeFunctionsValid ($handleFlexformSections=false)
 
 getBodyTagAttributes ()
 
 getCurrentPageId ()
 

Additional Inherited Members

Detailed Description

Extended controller for link browser

Definition at line 28 of file LinkBrowserController.php.

Member Function Documentation

areFieldChangeFunctionsValid (   $handleFlexformSections = false)
protected

Determines whether submitted field change functions are valid and are coming from the system and not from an external abuse.

Parameters
bool$handleFlexformSectionsWhether to handle flexform sections differently
Returns
bool Whether the submitted field change functions are valid

Definition at line 103 of file LinkBrowserController.php.

References GeneralUtility\hmac().

Referenced by LinkBrowserController\initDocumentTemplate().

encodeTypoLink ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Encode a typolink via ajax

This avoids to implement the encoding functionality again in JS for the browser.

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 82 of file LinkBrowserController.php.

References $response, MessageInterface\getBody(), ServerRequestInterface\getQueryParams(), and GeneralUtility\makeInstance().

getBodyTagAttributes ( )
protected

Get attributes for the body tag

Returns
string[] Array of body-tag attributes

Definition at line 130 of file LinkBrowserController.php.

References AbstractLinkBrowserController\$parameters, GeneralUtility\hmac(), and GeneralUtility\implodeArrayForUrl().

getCurrentPageId ( )
protected

Return the ID of current page

Returns
int

Definition at line 147 of file LinkBrowserController.php.

References AbstractLinkBrowserController\$parameters, elseif, and BackendUtility\getRecord().

initCurrentUrl ( )
protected

Initialize $this->currentLinkParts

Returns
void

Definition at line 35 of file LinkBrowserController.php.

References AbstractLinkBrowserController\$currentLinkParts, and GeneralUtility\makeInstance().

initDocumentTemplate ( )
protected

Initialize document template object

Returns
void

Definition at line 52 of file LinkBrowserController.php.

References LinkBrowserController\areFieldChangeFunctionsValid(), and GeneralUtility\makeInstance().