TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ShowImageController Class Reference

Public Member Functions

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

Protected Member Functions

 processImage ()
 

Protected Attributes

 $request
 
 $file
 
 $width
 
 $height
 
 $frame
 
 $bodyTag = '<body>'
 
 $title = 'Image'
 
 $content
 
 $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:

Definition at line 37 of file ShowImageController.php.

Member Function Documentation

initialize ( )

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

Returns
void
Exceptions
\InvalidArgumentException
\TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException

Definition at line 102 of file ShowImageController.php.

References MathUtility\canBeInterpretedAsInteger(), ResourceFactory\getInstance(), and GeneralUtility\hmac().

Referenced by ShowImageController\processRequest().

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

Returns
void

Definition at line 142 of file ShowImageController.php.

References ShowImageController\$title, and ShowImageController\processImage().

Referenced by ShowImageController\processRequest().

processImage ( )
protected

Does the actual image processing

Returns

Definition at line 167 of file ShowImageController.php.

References MathUtility\forceIntegerInRange().

Referenced by ShowImageController\main().

processRequest ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Fetches the content and builds a content file out of it

Parameters
ServerRequestInterface$requestthe current request object
ResponseInterface$responsethe available response
Returns
ResponseInterface the modified response

Definition at line 193 of file ShowImageController.php.

References ShowImageController\$request, $response, MessageInterface\getBody(), ShowImageController\initialize(), ShowImageController\main(), and ResponseInterface\withStatus().

Member Data Documentation

$bodyTag = '<body>'
protected

Definition at line 67 of file ShowImageController.php.

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

Definition at line 77 of file ShowImageController.php.

$file
protected

Definition at line 47 of file ShowImageController.php.

$frame
protected

Definition at line 62 of file ShowImageController.php.

$height
protected

Definition at line 57 of file ShowImageController.php.

$imageTag = '<img src="###publicUrl###" alt="###alt###" title="###title###" width="###width###" height="###height###" />'
protected

Definition at line 93 of file ShowImageController.php.

$request
protected

Definition at line 42 of file ShowImageController.php.

Referenced by ShowImageController\processRequest().

$title = 'Image'
protected

Definition at line 72 of file ShowImageController.php.

Referenced by ShowImageController\main().

$width
protected

Definition at line 52 of file ShowImageController.php.