PHP Класс Pimcore\Model\Asset\Image

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

Открытые свойства

Свойство Тип Описание
$type string

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

Метод Описание
clearThumbnail ( $name )
clearThumbnails ( $force = false ) : void
getDimensions ( null $path = null, boolean $force = false ) : array | void
getEXIFData ( ) : array
getFormat ( ) : string
getHeight ( ) : integer
getIPTCData ( ) : array
getImageTransformInstance ( ) : null | Adapter
getRelativeFileSystemPath ( ) : string
getThumbnail ( null $config = null, boolean $deferred = true ) : Thumbnail Returns a path to a given thumbnail or an thumbnail configuration.
getThumbnailConfig ( mixed $config ) : Thumbnail | boolean Legacy method for backwards compatibility. Use getThumbnail($config)->getConfig() instead.
getWidth ( ) : integer
isAnimated ( ) : boolean Checks if this file represents an animated image (png or gif)
isVectorGraphic ( ) : boolean

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

Метод Описание
update ( ) : void

Приватные методы

Метод Описание
isAnimatedGif ( ) : boolean Checks if this object represents an animated gif file
isAnimatedPng ( ) : boolean Checks if this object represents an animated png file

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

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

public clearThumbnail ( $name )
$name

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

public clearThumbnails ( $force = false ) : void
Результат void

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

public getDimensions ( null $path = null, boolean $force = false ) : array | void
$path null
$force boolean
Результат array | void

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

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

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

public getFormat ( ) : string
Результат string

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

public getHeight ( ) : integer
Результат integer

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

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

getImageTransformInstance() публичный статический Метод

public static getImageTransformInstance ( ) : null | Adapter
Результат null | Pimcore\Image\Adapter

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

public getRelativeFileSystemPath ( ) : string
Результат string

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

Returns a path to a given thumbnail or an thumbnail configuration.
public getThumbnail ( null $config = null, boolean $deferred = true ) : Thumbnail
$config null
$deferred boolean
Результат Pimcore\Model\Asset\Image\Thumbnail

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

Legacy method for backwards compatibility. Use getThumbnail($config)->getConfig() instead.
public getThumbnailConfig ( mixed $config ) : Thumbnail | boolean
$config mixed
Результат Pimcore\Model\Asset\Image\Thumbnail | boolean

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

public getWidth ( ) : integer
Результат integer

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

Checks if this file represents an animated image (png or gif)
public isAnimated ( ) : boolean
Результат boolean

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

public isVectorGraphic ( ) : boolean
Результат boolean

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

protected update ( ) : void
Результат void

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

$type публичное свойство

public string $type
Результат string