‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\LinkBrowserController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\LinkBrowserController:

Public Member Functions

 __construct (protected readonly LinkService $linkService, protected readonly TypoLinkCodecService $typoLinkCodecService, protected readonly FlashMessageService $flashMessageService, private readonly HashService $hashService,)
 
 getConfiguration ()
 
 encodeTypoLink (ServerRequestInterface $request)
 

Protected Member Functions

 initDocumentTemplate ()
 
 getCurrentPageId ()
 
 initCurrentUrl ()
 
bool areFieldChangeFunctionsValid (bool $handleFlexformSections=false)
 
 strReplaceRecursively (string $search, string $replace, array $array)
 

Detailed Description

Extended controller for link browser

Definition at line 38 of file LinkBrowserController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\LinkBrowserController::__construct ( protected readonly LinkService  $linkService,
protected readonly TypoLinkCodecService  $typoLinkCodecService,
protected readonly FlashMessageService  $flashMessageService,
private readonly HashService  $hashService 
)

Definition at line 40 of file LinkBrowserController.php.

Member Function Documentation

◆ areFieldChangeFunctionsValid()

bool TYPO3\CMS\Backend\Controller\LinkBrowserController::areFieldChangeFunctionsValid ( bool  $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$handleFlexformSections‪Whether to handle flexform sections differently
Returns
‪bool Whether the submitted field change functions are valid

Definition at line 131 of file LinkBrowserController.php.

References TYPO3\CMS\Backend\Controller\LinkBrowserController\strReplaceRecursively().

Referenced by TYPO3\CMS\Backend\Controller\LinkBrowserController\initDocumentTemplate().

◆ encodeTypoLink()

TYPO3\CMS\Backend\Controller\LinkBrowserController::encodeTypoLink ( ServerRequestInterface  $request)

Encode a typolink via ajax. This avoids implementing the encoding functionality again in JS for the browser.

Definition at line 57 of file LinkBrowserController.php.

◆ getConfiguration()

TYPO3\CMS\Backend\Controller\LinkBrowserController::getConfiguration ( )

◆ getCurrentPageId()

TYPO3\CMS\Backend\Controller\LinkBrowserController::getCurrentPageId ( )
protected

◆ initCurrentUrl()

TYPO3\CMS\Backend\Controller\LinkBrowserController::initCurrentUrl ( )
protected

Definition at line 98 of file LinkBrowserController.php.

◆ initDocumentTemplate()

TYPO3\CMS\Backend\Controller\LinkBrowserController::initDocumentTemplate ( )
protected

◆ strReplaceRecursively()

TYPO3\CMS\Backend\Controller\LinkBrowserController::strReplaceRecursively ( string  $search,
string  $replace,
array  $array 
)
protected