PHP Класс Pimcore\Model\Asset\Video\ImageThumbnail

Показать файл Открыть проект

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

Свойство Тип Описание
$asset Pimcore\Model\Asset\Video
$config Pimcore\Model\Asset\Image\Thumbnail\Config
$filesystemPath mixed | string
$height integer
$imageAsset
$realHeight integer
$realWidth integer
$timeOffset
$width integer

Открытые методы

Метод Описание
__construct ( $asset, null $config = null, null $timeOffset = null, null $imageAsset = null ) 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 ( )

Защищенные методы

Метод Описание
createConfig ( $selector ) : boolean | static

Описание методов

__construct() публичный Метод

ImageThumbnail constructor.
public __construct ( $asset, null $config = null, null $timeOffset = null, null $imageAsset = null )
$asset
$config null
$timeOffset null
$imageAsset null

__toString() публичный Метод

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
Результат string Public path to thumbnail image.

createConfig() защищенный Метод

protected createConfig ( $selector ) : boolean | static
$selector
Результат boolean | static

generate() публичный Метод

public generate ( )

getAsset() публичный Метод

public getAsset ( ) : Image
Результат Pimcore\Model\Asset\Image The original image from which this thumbnail is generated.

getConfig() публичный Метод

Get thumbnail image configuration.
public getConfig ( ) : Config
Результат Pimcore\Model\Asset\Image\Thumbnail\Config

getDimensions() публичный Метод

public getDimensions ( ) : array
Результат array

getFileSystemPath() публичный Метод

public getFileSystemPath ( ) : mixed | string
Результат mixed | string

getHeight() публичный Метод

Get the width of the generated thumbnail image in pixels.
public getHeight ( ) : integer
Результат integer Height of the generated thumbnail image.

getPath() публичный Метод

public getPath ( ) : mixed
Результат mixed

getRealHeight() публичный Метод

Get the real width of the generated thumbnail image in pixels. (when using high resolution option)
public getRealHeight ( ) : integer
Результат integer Height of the generated thumbnail image.

getRealWidth() публичный Метод

public getRealWidth ( ) : integer
Результат integer real Width of the generated thumbnail image. (when using high resolution option)

getWidth() публичный Метод

public getWidth ( ) : integer
Результат integer Width of the generated thumbnail image.

reset() публичный Метод

public reset ( )

Описание свойств

$asset защищенное свойство

protected Video,Pimcore\Model\Asset $asset
Результат Pimcore\Model\Asset\Video

$config защищенное свойство

protected Config,Pimcore\Model\Asset\Image\Thumbnail $config
Результат Pimcore\Model\Asset\Image\Thumbnail\Config

$filesystemPath защищенное свойство

protected mixed|string $filesystemPath
Результат mixed | string

$height защищенное свойство

protected int $height
Результат integer

$imageAsset защищенное свойство

protected $imageAsset

$realHeight защищенное свойство

protected int $realHeight
Результат integer

$realWidth защищенное свойство

protected int $realWidth
Результат integer

$timeOffset защищенное свойство

protected $timeOffset

$width защищенное свойство

protected int $width
Результат integer