PHP Класс Product_Image, silvershop-core

Наследование: extends Image
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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