TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\View\ThumbnailView Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\ThumbnailView:
SC_t3lib_thumbs

Public Member Functions

 main ()
 
 errorGif ($l1, $l2, $l3)
 
 fontGif ($font)
 

Public Attributes

 $include_once = array()
 
 $outdir = 'typo3temp/'
 
 $output = ''
 
 $sizeDefault = '64x64'
 
 $imageList
 
 $image
 
 $file
 
 $size
 
 $mTime = 0
 

Protected Member Functions

 wrapFileName ($inputName)
 

Detailed Description

Class for generating a thumbnail from the input parameters given to the script

Input GET var, &file: relative or absolute reference to an imagefile. WILL be validated against PATH_site / lockRootPath Input GET var, &size: integer-values defining size of thumbnail, format '[int]' or '[int]x[int]'

Relative paths MUST BE the first two characters ONLY: eg: '../dir/file.gif', otherwise it is expect to be absolute

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 32 of file ThumbnailView.php.

Member Function Documentation

◆ errorGif()

TYPO3\CMS\Backend\View\ThumbnailView::errorGif (   $l1,
  $l2,
  $l3 
)

Creates error image based on gfx/notfound_thumb.png Requires GD lib enabled, otherwise it will exit with the three textstrings outputted as text. Outputs the image stream to browser and exits!

Parameters
string$l1Text line 1
string$l2Text line 2
string$l3Text line 3
Returns
void
Todo:
Define visibility

Definition at line 268 of file ThumbnailView.php.

References $GLOBALS, and die.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ fontGif()

TYPO3\CMS\Backend\View\ThumbnailView::fontGif (   $font)

Creates a font-preview thumbnail. This means a PNG/GIF file with the text "AaBbCc...." set with the font-file given as input and in various sizes to show how the font looks Requires GD lib enabled. Outputs the image stream to browser and exits!

Parameters
string$fontThe filepath to the font file (absolute, probably)
Returns
void
Todo:
Define visibility

Definition at line 318 of file ThumbnailView.php.

References $GLOBALS, die, and TYPO3\CMS\Core\Utility\GeneralUtility\freetypeDpiComp().

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ main()

◆ wrapFileName()

TYPO3\CMS\Backend\View\ThumbnailView::wrapFileName (   $inputName)
protected

Escapes a file name so it can safely be used on the command line.

Parameters
string$inputNameFilename to safeguard, must not be empty
Returns
string $inputName escaped as needed

Definition at line 359 of file ThumbnailView.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

Member Data Documentation

◆ $file

TYPO3\CMS\Backend\View\ThumbnailView::$file
Todo:
Define visibility

Definition at line 74 of file ThumbnailView.php.

◆ $image

TYPO3\CMS\Backend\View\ThumbnailView::$image

Definition at line 67 of file ThumbnailView.php.

◆ $imageList

TYPO3\CMS\Backend\View\ThumbnailView::$imageList
Todo:
Define visibility

Definition at line 59 of file ThumbnailView.php.

◆ $include_once

TYPO3\CMS\Backend\View\ThumbnailView::$include_once = array()
Todo:
Define visibility

Definition at line 37 of file ThumbnailView.php.

◆ $mTime

TYPO3\CMS\Backend\View\ThumbnailView::$mTime = 0
Todo:
Define visibility

Definition at line 86 of file ThumbnailView.php.

◆ $outdir

TYPO3\CMS\Backend\View\ThumbnailView::$outdir = 'typo3temp/'
Todo:
Define visibility

Definition at line 43 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ $output

TYPO3\CMS\Backend\View\ThumbnailView::$output = ''
Todo:
Define visibility

Definition at line 48 of file ThumbnailView.php.

◆ $size

TYPO3\CMS\Backend\View\ThumbnailView::$size
Todo:
Define visibility

Definition at line 80 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ $sizeDefault

TYPO3\CMS\Backend\View\ThumbnailView::$sizeDefault = '64x64'
Todo:
Define visibility

Definition at line 53 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().