TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler:
TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface

Public Member Functions

 canHandleLink (array $linkParts)
 
 formatCurrentUrl ()
 
 expandPage ($expPageId)
 
 getBodyTagAttributes ()
 
 getUrlParameters (array $values)
 
 isCurrentlySelectedItem (array $values)
 
 getScriptUrl ()
 
 modifyLinkAttributes (array $fieldDefinitions)
 

Protected Member Functions

 getTemporaryTreeMountCancelNotice ()
 
 setTemporaryDbMounts ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $expandPage = 0
 
 $linkParts = []
 

Detailed Description

Link handler for page (and content) links

Definition at line 30 of file PageLinkHandler.php.

Member Function Documentation

◆ canHandleLink()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::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 TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 53 of file PageLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler\$linkParts, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordsByField(), and TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL().

◆ expandPage()

◆ formatCurrentUrl()

◆ getBodyTagAttributes()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::getBodyTagAttributes ( )
Returns
string[] Array of body-tag attributes

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 268 of file PageLinkHandler.php.

◆ getDatabaseConnection()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 339 of file PageLinkHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler\expandPage().

◆ getScriptUrl()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::getScriptUrl ( )

Returns the URL of the current script

Returns
string

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 306 of file PageLinkHandler.php.

◆ getTemporaryTreeMountCancelNotice()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::getTemporaryTreeMountCancelNotice ( )
protected

◆ getUrlParameters()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::getUrlParameters ( array  $values)
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 TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 283 of file PageLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler\expandPage().

◆ isCurrentlySelectedItem()

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::isCurrentlySelectedItem ( array  $values)
Parameters
array$valuesValues to be checked
Returns
bool Returns TRUE if the given values match the currently selected item

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 296 of file PageLinkHandler.php.

◆ modifyLinkAttributes()

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

Implements TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface.

Definition at line 315 of file PageLinkHandler.php.

References TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler\getLanguageService().

◆ setTemporaryDbMounts()

Member Data Documentation

◆ $expandPage

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::$expandPage = 0
protected

Definition at line 35 of file PageLinkHandler.php.

◆ $linkParts

TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler::$linkParts = []
protected