‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Controller\ShowImageController Class Reference

Public Member Functions

 initialize ()
 
 main ()
 
ResponseInterface processRequest (ServerRequestInterface $request)
 

Protected Member Functions

TYPO3 CMS Core Resource ProcessedFile processImage ()
 
 isFileValid (FileInterface $file)
 

Protected Attributes

const ALLOWED_PARAMETER_NAMES = ['width', 'height', 'crop', 'bodyTag', 'title']
 
Psr Http Message ServerRequestInterface $request
 
File Folder null $file
 
string $width
 
int $height
 
string $crop
 
int $frame
 
string $bodyTag = '<body>'
 
string $title = 'Image'
 
string $content =
 
string $imageTag = '<img src="###publicUrl###" alt="###alt###" title="###title###" width="###width###" height="###height###" />'
 

Detailed Description

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.

Definition at line 49 of file ShowImageController.php.

Member Function Documentation

◆ initialize()

TYPO3\CMS\Frontend\Controller\ShowImageController::initialize ( )

◆ isFileValid()

◆ main()

TYPO3\CMS\Frontend\Controller\ShowImageController::main ( )

Main function which creates the image if needed and outputs the HTML code for the page displaying the image. Accumulates the content in $this->content

Definition at line 156 of file ShowImageController.php.

References TYPO3\CMS\Frontend\Controller\ShowImageController\$bodyTag, TYPO3\CMS\Frontend\Controller\ShowImageController\$imageTag, TYPO3\CMS\Frontend\Controller\ShowImageController\$title, and TYPO3\CMS\Frontend\Controller\ShowImageController\processImage().

Referenced by TYPO3\CMS\Frontend\Controller\ShowImageController\processRequest().

◆ processImage()

◆ processRequest()

ResponseInterface TYPO3\CMS\Frontend\Controller\ShowImageController::processRequest ( ServerRequestInterface  $request)

Fetches the content and builds a content file out of it

Parameters
ServerRequestInterface$request‪the current request object
Returns
‪ResponseInterface the modified response

Definition at line 202 of file ShowImageController.php.

References TYPO3\CMS\Frontend\Controller\ShowImageController\$request, TYPO3\CMS\Frontend\Controller\ShowImageController\initialize(), and TYPO3\CMS\Frontend\Controller\ShowImageController\main().

Member Data Documentation

◆ $bodyTag

string TYPO3\CMS\Frontend\Controller\ShowImageController::$bodyTag = '<body>'
protected

◆ $content

string TYPO3\CMS\Frontend\Controller\ShowImageController::$content =
protected

Definition at line 87 of file ShowImageController.php.

◆ $crop

string TYPO3\CMS\Frontend\Controller\ShowImageController::$crop
protected

◆ $file

File Folder null TYPO3\CMS\Frontend\Controller\ShowImageController::$file
protected

◆ $frame

int TYPO3\CMS\Frontend\Controller\ShowImageController::$frame
protected

◆ $height

int TYPO3\CMS\Frontend\Controller\ShowImageController::$height
protected

◆ $imageTag

string TYPO3\CMS\Frontend\Controller\ShowImageController::$imageTag = '<img src="###publicUrl###" alt="###alt###" title="###title###" width="###width###" height="###height###" />'
protected

◆ $request

Psr Http Message ServerRequestInterface TYPO3\CMS\Frontend\Controller\ShowImageController::$request
protected

◆ $title

string TYPO3\CMS\Frontend\Controller\ShowImageController::$title = 'Image'
protected

◆ $width

string TYPO3\CMS\Frontend\Controller\ShowImageController::$width
protected

◆ ALLOWED_PARAMETER_NAMES

const TYPO3\CMS\Frontend\Controller\ShowImageController::ALLOWED_PARAMETER_NAMES = ['width', 'height', 'crop', 'bodyTag', 'title']
protected

Definition at line 51 of file ShowImageController.php.