PHP Class Product_Image, silvershop-core

Inheritance: extends Image
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Свойство Type Description
$owner Image

Méthodes publiques

Méthode 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 méthode

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

config() public static méthode

public static config ( )

getContentImage() public méthode

public getContentImage ( boolean $upscale = false ) : Image
$upscale boolean [optional]
Résultat Image

getImageAt() public méthode

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]
Résultat Image

getLargeImage() public méthode

public getLargeImage ( boolean $upscale = false ) : Image
$upscale boolean [optional]
Résultat Image

getThumbnail() public méthode

public getThumbnail ( boolean $upscale = false ) : Image
$upscale boolean [optional]
Résultat Image

Property Details

$owner protected_oe property

protected Image $owner
Résultat Image