PHP 클래스 SlightPHP\WMThumbnail

Tested with Apache 2.2 and PHP 5.2. Last change: 2008-04-06
저자: Michael Wimmer ([email protected])
상속: extends Thumbnail
파일 보기 프로젝트 열기: hetao29/slightphp

보호된 프로퍼티들

프로퍼티 타입 설명
$logos array holds all logos/watermarks
$wm_image resource
$wm_image_height integer
$wm_image_path string path/filename of logo / watermark
$wm_image_type integer image format of logo
$wm_image_width integer

공개 메소드들

메소드 설명
__construct ( string $file = '', integer $seconds ) : void Constructor
addLogo ( string $logo = '', integer $position = 3, integer $margin = 1 ) : void sets the position of the logo /watermark
outputThumbnail ( string $format = 'png', integer $quality = 75 ) : mixed outputs the thumbnail to the browser
returnThumbnail ( string $format = 'png' ) : mixed returns the variable with the thumbnail image

보호된 메소드들

메소드 설명
createThumbnail ( ) : void creates the thumbnail and saves it to a variable
readWMImage ( string $path = '' ) : void reads the logo pic into a variable
readWMImageData ( string $path = '' ) : void reads metadata of the logo image

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $file = '', integer $seconds ) : void
$file string path/filename of picture
$seconds integer amount of seconds thumbs should be cached. 0 = no cache
리턴 void

createThumbnail() 보호된 메소드

creates the thumbnail and saves it to a variable
protected createThumbnail ( ) : void
리턴 void

outputThumbnail() 공개 메소드

overrides method of base class
public outputThumbnail ( string $format = 'png', integer $quality = 75 ) : mixed
$format string gif, jpg, png, wbmp
$quality integer jpg-quality: 0-100
리턴 mixed

readWMImage() 보호된 메소드

reads the logo pic into a variable
protected readWMImage ( string $path = '' ) : void
$path string path/filename of picture
리턴 void

readWMImageData() 보호된 메소드

reads metadata of the logo image
protected readWMImageData ( string $path = '' ) : void
$path string path/filename of picture
리턴 void

returnThumbnail() 공개 메소드

returns the variable with the thumbnail image
public returnThumbnail ( string $format = 'png' ) : mixed
$format string gif, jpg, png, wbmp
리턴 mixed

프로퍼티 상세

$logos 보호되어 있는 프로퍼티

holds all logos/watermarks
protected array $logos
리턴 array

$wm_image 보호되어 있는 프로퍼티

protected resource $wm_image
리턴 resource

$wm_image_height 보호되어 있는 프로퍼티

protected int $wm_image_height
리턴 integer

$wm_image_path 보호되어 있는 프로퍼티

path/filename of logo / watermark
protected string $wm_image_path
리턴 string

$wm_image_type 보호되어 있는 프로퍼티

image format of logo
protected int $wm_image_type
리턴 integer

$wm_image_width 보호되어 있는 프로퍼티

protected int $wm_image_width
리턴 integer