Documentation TYPO3 par Ameos

SC_t3lib_thumbs Class Reference

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 114 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:
string Text line 1
string Text line 2
string Text line 3
Returns:
void

Definition at line 267 of file thumbs.php.

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

Definition at line 319 of file thumbs.php.

References 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 135 of file thumbs.php.

References t3lib_div::_GP(), and t3lib_div::isAllowedAbsPath().

SC_t3lib_thumbs::main  ) 
 

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

Returns:
void

Definition at line 165 of file thumbs.php.

References errorGif(), fontGif(), t3lib_div::imageMagickCommand(), t3lib_div::inList(), t3lib_div::intInRange(), and wrapFileName().

SC_t3lib_thumbs::wrapFileName inputName  ) 
 

Wrapping the input filename in double-quotes

Parameters:
string Input filename
Returns:
string The output wrapped in "" (if there are spaces in the filepath) private

Definition at line 366 of file thumbs.php.

Referenced by main().


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


Généré par L'expert TYPO3 avec  doxygen 1.4.6