FileLinkHandler extends AbstractResourceLinkHandler

Internal

Table of Contents

Properties

$currentPage  : int
$displayThumbs  : string|null
$expandFolder  : string|null
$filelist  : FileList|null
$iconFactory  : IconFactory
$languageService  : LanguageService
$languageServiceFactory  : LanguageServiceFactory
$linkBrowser  : AbstractLinkBrowserController
$linkParts  : array
$moduleStorageIdentifier  : string
$pageRenderer  : PageRenderer
$resourceDisplayMatcher  : Matcher|null
$resourceFactory  : ResourceFactory
$resourceSelectableMatcher  : Matcher|null
$selectedFolder  : Folder|null
$type  : LinkType
$uriBuilder  : UriBuilder
$view  : ViewInterface
$viewMode  : string|null

Methods

__construct()  : mixed
canHandleLink()  : bool
Checks if this is the handler for the given link
createView()  : ViewInterface
formatCurrentUrl()  : string
Format the current link for HTML output
getBodyTagAttributes()  : string[]
getLinkAttributes()  : array
getScriptUrl()  : string
Returns the URL of the current script
getUrlParameters()  : string[]
Provides an array or GET parameters for URL generation
getView()  : ViewInterface
initialize()  : mixed
Initialize the handler
initializeVariables()  : void
isCurrentlySelectedItem()  : bool
Check if given value is currently the selected item
isUpdateSupported()  : bool
Return TRUE if the handler supports to update a link.
modifyLinkAttributes()  : string[]
render()  : string
Render the link handler. Ideally this modifies the view, but it can also render content directly.
setView()  : self
createUri()  : string
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getViewModeButton()  : ButtonInterface

Properties

$currentPage

protected int $currentPage = 1

$displayThumbs

protected string|null $displayThumbs = null

$expandFolder

protected string|null $expandFolder = null

$moduleStorageIdentifier

protected string $moduleStorageIdentifier = 'media_management'

$resourceSelectableMatcher

protected Matcher|null $resourceSelectableMatcher = null

$viewMode

protected string|null $viewMode = null

Methods

Checks if this is the handler for the given link

public canHandleLink(array $linkParts) : bool

The handler may store this information locally for later usage.

Parameters
$linkParts : array

Link parts as returned from TypoLinkCodecService

Return values
bool

formatCurrentUrl()

Format the current link for HTML output

public formatCurrentUrl() : string
Return values
string

getBodyTagAttributes()

public getBodyTagAttributes() : string[]
Return values
string[] —

Array of body-tag attributes

getLinkAttributes()

public getLinkAttributes() : array
Return values
array

getScriptUrl()

Returns the URL of the current script

public getScriptUrl() : string
Return values
string

getUrlParameters()

Provides an array or GET parameters for URL generation

public getUrlParameters(array $parameters) : string[]
Parameters
$parameters : array
Return values
string[] —

Array of parameters which have to be added to URLs

initializeVariables()

public initializeVariables(ServerRequestInterface $request) : void
Parameters
$request : ServerRequestInterface

isCurrentlySelectedItem()

Check if given value is currently the selected item

public isCurrentlySelectedItem(array $values) : bool

This method is only used in the page tree.

Parameters
$values : array

Values to be checked

Return values
bool —

Returns TRUE if the given values match the currently selected item

isUpdateSupported()

Return TRUE if the handler supports to update a link.

public isUpdateSupported() : bool

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

Return values
bool

modifyLinkAttributes()

public modifyLinkAttributes(array $fieldDefinitions) : string[]
Parameters
$fieldDefinitions : array

Array of link attribute field definitions

Return values
string[]

render()

Render the link handler. Ideally this modifies the view, but it can also render content directly.

public render(ServerRequestInterface $request) : string
Parameters
$request : ServerRequestInterface
Return values
string

createUri()

protected createUri(ServerRequestInterface $request[, array $parameters = [] ]) : string
Parameters
$request : ServerRequestInterface
$parameters : array = []
Return values
string
On this page

Search results