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

Public Member Functions

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

Protected Member Functions

 getRecordsOnExpandedPage ($pageId)
 
 getTemporaryTreeMountCancelNotice ()
 
 setTemporaryDbMounts ()
 

Protected Attributes

 $expandPage = 0
 
 $linkParts = []
 

Detailed Description

Link handler for page (and content) links

Definition at line 33 of file recordlist/Classes/LinkHandler/PageLinkHandler.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 56 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References PageLinkHandler\$linkParts, BackendUtility\getRecordsByField(), and BackendUtility\getRecordWSOL().

formatCurrentUrl ( )

Format the current link for HTML output

Returns
string

Implements LinkHandlerInterface.

Definition at line 90 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References AbstractLinkHandler\getBackendUser(), AbstractLinkHandler\getLanguageService(), and BackendUtility\getRecordWSOL().

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

Implements LinkHandlerInterface.

Definition at line 238 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References GeneralUtility\makeInstance(), and LinkService\TYPE_PAGE.

getRecordsOnExpandedPage (   $pageId)
protected

This adds all content elements on a page to the view and lets you create a link to the element.

Parameters
int$pageIdPage uid to expand
Returns
void

Definition at line 140 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References MathUtility\canBeInterpretedAsInteger(), AbstractLinkHandler\getBackendUser(), BackendUtility\getRecordTitle(), BackendUtility\getRecordWSOL(), GeneralUtility\makeInstance(), Icon\SIZE_SMALL, and LinkService\TYPE_PAGE.

getScriptUrl ( )

Returns the URL of the current script

Returns
string

Implements LinkParameterProviderInterface.

Definition at line 280 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

getTemporaryTreeMountCancelNotice ( )
protected

Check if a temporary tree mount is set and return a cancel button link

Returns
string the link to cancel the temporary tree mount

Definition at line 198 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References AbstractLinkHandler\getBackendUser(), and GeneralUtility\linkThisScript().

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 LinkParameterProviderInterface.

Definition at line 257 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

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

Implements LinkParameterProviderInterface.

Definition at line 270 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

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

Implements LinkHandlerInterface.

Definition at line 289 of file recordlist/Classes/LinkHandler/PageLinkHandler.php.

References AbstractLinkHandler\getLanguageService().

setTemporaryDbMounts ( )
protected

Member Data Documentation

$expandPage = 0
protected
$linkParts = []
protected