TYPO3 API  SVNRelease
Public Member Functions | Public Attributes | Protected Member Functions
SC_t3lib_thumbs Class Reference

List of all members.

Public Member Functions

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

Public Attributes

 $include_once = array()
 $outdir = 'typo3temp/'
 $output = ''
 $sizeDefault = '56x56'
 $imageList
 $input
 $file
 $size
 $mtime = 0

Protected Member Functions

 wrapFileName ($inputName)

Detailed Description

Definition at line 125 of file thumbs.php.


Member Function Documentation

SC_t3lib_thumbs::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:
stringText line 1
stringText line 2
stringText line 3
Returns:
void

Definition at line 290 of file thumbs.php.

References $TYPO3_CONF_VARS.

Referenced by main().

SC_t3lib_thumbs::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:
stringThe filepath to the font file (absolute, probably)
Returns:
void

Definition at line 347 of file thumbs.php.

References $TYPO3_CONF_VARS, and t3lib_div\freetypeDpiComp().

Referenced by main().

SC_t3lib_thumbs::init ( )

Initialize; reading parameters with GPvar and checking file path Results in internal var, $this->input, being set to the absolute path of the file for which to make the thumbnail.

Returns:
void

Definition at line 147 of file thumbs.php.

References $file, $GLOBALS, $mtime, $size, $TYPO3_CONF_VARS, t3lib_div\_GP(), t3lib_div\isAllowedAbsPath(), and t3lib_div\shortMD5().

SC_t3lib_thumbs::main ( )

Create the thumbnail Will exit before return if all is well.

Returns:
void

Definition at line 198 of file thumbs.php.

References $TYPO3_CONF_VARS, errorGif(), t3lib_utility_Command\exec(), t3lib_div\fixPermissions(), fontGif(), t3lib_div\imageMagickCommand(), t3lib_div\inList(), t3lib_div\intInRange(), and wrapFileName().

SC_t3lib_thumbs::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 399 of file thumbs.php.

References $GLOBALS.

Referenced by main().


Member Data Documentation

SC_t3lib_thumbs::$file

Definition at line 136 of file thumbs.php.

Referenced by init().

SC_t3lib_thumbs::$imageList

Definition at line 132 of file thumbs.php.

SC_t3lib_thumbs::$include_once = array()

Definition at line 126 of file thumbs.php.

SC_t3lib_thumbs::$input

Definition at line 133 of file thumbs.php.

SC_t3lib_thumbs::$mtime = 0

Definition at line 138 of file thumbs.php.

Referenced by init().

SC_t3lib_thumbs::$outdir = 'typo3temp/'

Definition at line 128 of file thumbs.php.

SC_t3lib_thumbs::$output = ''

Definition at line 129 of file thumbs.php.

SC_t3lib_thumbs::$size

Definition at line 137 of file thumbs.php.

Referenced by init().

SC_t3lib_thumbs::$sizeDefault = '56x56'

Definition at line 130 of file thumbs.php.


The documentation for this class was generated from the following file: