ShowImageController

eID-Script "tx_cms_showpic"

Shows a picture from FAL in enlarged format in a separate window. Picture file and settings is supplied by GET-parameters:

  • file = fileUid or Combined Identifier
  • encoded in a parameter Array (with weird format - see ContentObjectRenderer about ll. 1500)
  • width, height = usual width an height, m/c supported
  • frame
  • bodyTag
  • title
Internal

this is a concrete TYPO3 implementation and solely used for EXT:frontend and not part of TYPO3's Core API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Constants

ALLOWED_PARAMETER_NAMES  = ['width', 'height', 'crop', 'bodyTag', 'title']

Properties

$bodyTag  : string
$content  : string
$crop  : string
$features  : Features
$file  : File|Folder|null
$frame  : int|null
$height  : int
$request  : ServerRequestInterface
$title  : string
$width  : string

Methods

__construct()  : mixed
initialize()  : mixed
Init function, setting the input vars in the global space.
main()  : mixed
Main function which creates the image if needed and outputs the HTML code for the page displaying the image.
processRequest()  : ResponseInterface
Fetches the content and builds a content file out of it
isFileValid()  : bool
processImage()  : ProcessedFile
Does the actual image processing

Constants

ALLOWED_PARAMETER_NAMES

protected mixed ALLOWED_PARAMETER_NAMES = ['width', 'height', 'crop', 'bodyTag', 'title']

Properties

$bodyTag

protected string $bodyTag = '<body>'

$content

protected string $content = <<<EOF <!DOCTYPE html> <html> <head> \t<title>###TITLE###</title> \t<meta name="robots" content="noindex,follow" /> </head> ###BODY### \t###IMAGE### </body> </html> EOF

$request

protected ServerRequestInterface $request

Methods

initialize()

Init function, setting the input vars in the global space.

public initialize() : mixed
Tags
throws
InvalidArgumentException
throws
FileDoesNotExistException

main()

Main function which creates the image if needed and outputs the HTML code for the page displaying the image.

public main() : mixed

Accumulates the content in $this->content

processRequest()

Fetches the content and builds a content file out of it

public processRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface

the current request object

Return values
ResponseInterface

the modified response


        
On this page

Search results