PHP 클래스 Product_Image, silvershop-core

상속: extends Image
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$owner Image

공개 메소드들

메소드 설명
HasLargeImage ( ) : boolean
config ( )
getContentImage ( boolean $upscale = false ) : Image
getImageAt ( integer $width = null, integer $height = null, boolean $upscale = false ) : Image Resizes image by width or height only if the source image is bigger than the given width/height.
getLargeImage ( boolean $upscale = false ) : Image
getThumbnail ( boolean $upscale = false ) : Image

메소드 상세

HasLargeImage() 공개 메소드

public HasLargeImage ( ) : boolean
리턴 boolean - is the image large enough that a "large" image makes sense?

config() 공개 정적인 메소드

public static config ( )

getContentImage() 공개 메소드

public getContentImage ( boolean $upscale = false ) : Image
$upscale boolean [optional]
리턴 Image

getImageAt() 공개 메소드

This prevents ugly upscaling.
public getImageAt ( integer $width = null, integer $height = null, boolean $upscale = false ) : Image
$width integer [optional]
$height integer [optional]
$upscale boolean [optional]
리턴 Image

getLargeImage() 공개 메소드

public getLargeImage ( boolean $upscale = false ) : Image
$upscale boolean [optional]
리턴 Image

getThumbnail() 공개 메소드

public getThumbnail ( boolean $upscale = false ) : Image
$upscale boolean [optional]
리턴 Image

프로퍼티 상세

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

protected Image $owner
리턴 Image