PHP Class Pimcore\Model\Asset\Document\ImageThumbnail

Afficher le fichier Open project: pimcore/pimcore

Protected Properties

Свойство Type Description
$asset Pimcore\Model\Asset\Video
$config Pimcore\Model\Asset\Image\Thumbnail\Config
$deferred boolean
$filesystemPath mixed | string
$height integer
$page integer
$realHeight integer
$realWidth integer
$width integer

Méthodes publiques

Méthode Description
__construct ( $asset, $config = null, integer $page = 1, boolean $deferred = true ) ImageThumbnail constructor.
__toString ( ) : string Get the public path to the thumbnail image.
generate ( )
getAsset ( ) : Image
getConfig ( ) : Config Get thumbnail image configuration.
getDimensions ( ) : array
getFileSystemPath ( ) : mixed | string
getHeight ( ) : integer Get the width of the generated thumbnail image in pixels.
getPath ( ) : mixed
getRealHeight ( ) : integer Get the real width of the generated thumbnail image in pixels. (when using high resolution option)
getRealWidth ( ) : integer
getWidth ( ) : integer
reset ( )

Méthodes protégées

Méthode Description
createConfig ( $selector ) : boolean | static

Method Details

__construct() public méthode

ImageThumbnail constructor.
public __construct ( $asset, $config = null, integer $page = 1, boolean $deferred = true )
$asset
$config
$page integer
$deferred boolean

__toString() public méthode

This method is here for backwards compatility. Up to Pimcore 1.4.8 a thumbnail was returned as a path to an image.
public __toString ( ) : string
Résultat string Public path to thumbnail image.

createConfig() protected méthode

protected createConfig ( $selector ) : boolean | static
$selector
Résultat boolean | static

generate() public méthode

public generate ( )

getAsset() public méthode

public getAsset ( ) : Image
Résultat Pimcore\Model\Asset\Image The original image from which this thumbnail is generated.

getConfig() public méthode

Get thumbnail image configuration.
public getConfig ( ) : Config
Résultat Pimcore\Model\Asset\Image\Thumbnail\Config

getDimensions() public méthode

public getDimensions ( ) : array
Résultat array

getFileSystemPath() public méthode

public getFileSystemPath ( ) : mixed | string
Résultat mixed | string

getHeight() public méthode

Get the width of the generated thumbnail image in pixels.
public getHeight ( ) : integer
Résultat integer Height of the generated thumbnail image.

getPath() public méthode

public getPath ( ) : mixed
Résultat mixed

getRealHeight() public méthode

Get the real width of the generated thumbnail image in pixels. (when using high resolution option)
public getRealHeight ( ) : integer
Résultat integer Height of the generated thumbnail image.

getRealWidth() public méthode

public getRealWidth ( ) : integer
Résultat integer real Width of the generated thumbnail image. (when using high resolution option)

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer Width of the generated thumbnail image.

reset() public méthode

public reset ( )

Property Details

$asset protected_oe property

protected Video,Pimcore\Model\Asset $asset
Résultat Pimcore\Model\Asset\Video

$config protected_oe property

protected Config,Pimcore\Model\Asset\Image\Thumbnail $config
Résultat Pimcore\Model\Asset\Image\Thumbnail\Config

$deferred protected_oe property

protected bool $deferred
Résultat boolean

$filesystemPath protected_oe property

protected mixed|string $filesystemPath
Résultat mixed | string

$height protected_oe property

protected int $height
Résultat integer

$page protected_oe property

protected int $page
Résultat integer

$realHeight protected_oe property

protected int $realHeight
Résultat integer

$realWidth protected_oe property

protected int $realWidth
Résultat integer

$width protected_oe property

protected int $width
Résultat integer