PHP Class Product_Image, silvershop-core

Inheritance: extends Image
Datei anzeigen Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Property Type Description
$owner Image

Public Methods

Method Description
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

Method Details

HasLargeImage() public method

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

config() public static method

public static config ( )

getContentImage() public method

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

getImageAt() public method

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]
return Image

getLargeImage() public method

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

getThumbnail() public method

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

Property Details

$owner protected_oe property

protected Image $owner
return Image