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
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
$crop
protected
string
$crop
$features read-only
protected
Features
$features
$file
protected
File|Folder|null
$file
$frame
protected
int|null
$frame
$height
protected
int
$height
$request
protected
ServerRequestInterface
$request
$title
protected
string
$title
= 'Image'
$width
protected
string
$width
Methods
__construct()
public
__construct(Features $features) : mixed
Parameters
- $features : Features
initialize()
Init function, setting the input vars in the global space.
public
initialize() : mixed
Tags
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
isFileValid()
protected
isFileValid(FileInterface $file) : bool
Parameters
- $file : FileInterface
Return values
boolprocessImage()
Does the actual image processing
protected
processImage() : ProcessedFile