Class Image

Description

TPLN Image Plugin

Located in /plugin/image/image.class.php (line 7)


	
			
Direct descendents
Class Description
 class Rss TPLN Rss Plugin
Variable Summary
 mixed $new_name
 mixed $obj
 mixed $path
Method Summary
 boolean fileUpload (string $obj, string $path, [string $new_name = ''])
 void imgThumbnail (int $width, int $height, [ $constraint = false], [array $background_color = array(0,0,0)], [string $suffix = ''], [string $force_type = ''], boolean $contraint)
 void imgThumbnailSetOriginal (string $path)
Variables
mixed $new_name (line 9)
  • access: public
mixed $obj (line 11)
  • access: protected
mixed $path (line 10)
  • access: public
Methods
fileUpload (line 21)

Upload file to directory, if name is not empty rename file (no extension needed)

  • access: public
boolean fileUpload (string $obj, string $path, [string $new_name = ''])
  • string $obj
  • string $path
  • string $new_name
imgThumbnail (line 71)

Transform image to thumbnail file

  • access: public
void imgThumbnail (int $width, int $height, [ $constraint = false], [array $background_color = array(0,0,0)], [string $suffix = ''], [string $force_type = ''], boolean $contraint)
  • int $width: image width
  • int $height: image height
  • boolean $contraint
  • array $background_color: 3 colors RGB
  • string $suffix: add a suffix in image name
  • string $force_type: convert original image: jpg, gif, png
  • $constraint
imgThumbnailSetOriginal (line 53)

Assign image to thumbnail file

  • access: public
void imgThumbnailSetOriginal (string $path)
  • string $path: path full path with image name

Documentation generated on Sat, 06 Mar 2010 21:33:58 +0100 by phpDocumentor 1.4.3