FileLinkHandler extends AbstractResourceLinkHandler

Internal
Attributes
#[Autoconfigure]
$public: true
$shared: false

Table of Contents

Properties

$currentPage  : int
$displayThumbs  : bool
$expandFolder  : string|null
$filelist  : FileList|null
$iconFactory  : IconFactory
$languageService  : LanguageService
$languageServiceFactory  : LanguageServiceFactory
$linkBrowser  : AbstractLinkBrowserController
$linkParts  : array<string|int, mixed>
$moduleStorageIdentifier  : string
$pageRenderer  : PageRenderer
$resourceDisplayMatcher  : Matcher|null
$resourceFactory  : ResourceFactory
$resourceSelectableMatcher  : Matcher|null
$selectedFolder  : Folder|null
$type  : LinkType
$uriBuilder  : UriBuilder
$view  : ViewInterface
$viewMode  : ViewMode|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()  : array<string|int, string>
getLinkAttributes()  : array<string|int, mixed>
getUrlParameters()  : array<string|int, string>
Provides an array or GET parameters for URL generation
getView()  : ViewInterface
initialize()  : mixed
Initialize the handler
initializeVariables()  : void
isUpdateSupported()  : bool
Return TRUE if the handler supports to update a link.
modifyLinkAttributes()  : array<string|int, 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 bool $displayThumbs = true

$expandFolder

protected string|null $expandFolder = null

$linkParts

protected array<string|int, mixed> $linkParts = []

$moduleStorageIdentifier

protected string $moduleStorageIdentifier = 'media_management'

$resourceSelectableMatcher

protected Matcher|null $resourceSelectableMatcher = null

Methods

Checks if this is the handler for the given link

public canHandleLink(array<string|int, mixed> $linkParts) : bool

The handler may store this information locally for later usage.

Parameters
$linkParts : array<string|int, mixed>

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() : array<string|int, string>
Return values
array<string|int, string>

Array of body-tag attributes

getLinkAttributes()

public getLinkAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUrlParameters()

Provides an array or GET parameters for URL generation

public getUrlParameters(array<string|int, mixed> $values) : array<string|int, string>
Parameters
$values : array<string|int, mixed>

Array of values to include into the parameters or which might influence the parameters

Return values
array<string|int, string>

Array of parameters which have to be added to URLs

initialize()

Initialize the handler

public initialize(AbstractLinkBrowserController $linkBrowser, mixed $identifier, array<string|int, mixed> $configuration) : mixed
Parameters
$linkBrowser : AbstractLinkBrowserController
$identifier : mixed
$configuration : array<string|int, mixed>

Page TSconfig of this link handler: TCEMAIN.linkHandler..configuration

initializeVariables()

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

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<string|int, mixed> $fieldDefinitions) : array<string|int, string>
Parameters
$fieldDefinitions : array<string|int, mixed>

Array of link attribute field definitions

Return values
array<string|int, 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<string|int, mixed> $parameters = [] ]) : string
Parameters
$request : ServerRequestInterface
$parameters : array<string|int, mixed> = []
Return values
string

        
On this page

Search results