PHP Class Pimcore\Model\Asset\Image

Inheritance: extends Pimcore\Model\Asset
Mostrar archivo Open project: pimcore/pimcore Class Usage Examples

Public Properties

Property Type Description
$type string

Public Methods

Method Description
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

Protected Methods

Method Description
update ( ) : void

Private Methods

Method Description
isAnimatedGif ( ) : boolean Checks if this object represents an animated gif file
isAnimatedPng ( ) : boolean Checks if this object represents an animated png file

Method Details

clearThumbnail() public method

public clearThumbnail ( $name )
$name

clearThumbnails() public method

public clearThumbnails ( $force = false ) : void
return void

getDimensions() public method

public getDimensions ( null $path = null, boolean $force = false ) : array | void
$path null
$force boolean
return array | void

getEXIFData() public method

public getEXIFData ( ) : array
return array

getFormat() public method

public getFormat ( ) : string
return string

getHeight() public method

public getHeight ( ) : integer
return integer

getIPTCData() public method

public getIPTCData ( ) : array
return array

getImageTransformInstance() public static method

public static getImageTransformInstance ( ) : null | Adapter
return null | Pimcore\Image\Adapter

getRelativeFileSystemPath() public method

getThumbnail() public method

Returns a path to a given thumbnail or an thumbnail configuration.
public getThumbnail ( null $config = null, boolean $deferred = true ) : Thumbnail
$config null
$deferred boolean
return Pimcore\Model\Asset\Image\Thumbnail

getThumbnailConfig() public method

Legacy method for backwards compatibility. Use getThumbnail($config)->getConfig() instead.
public getThumbnailConfig ( mixed $config ) : Thumbnail | boolean
$config mixed
return Pimcore\Model\Asset\Image\Thumbnail | boolean

getWidth() public method

public getWidth ( ) : integer
return integer

isAnimated() public method

Checks if this file represents an animated image (png or gif)
public isAnimated ( ) : boolean
return boolean

isVectorGraphic() public method

public isVectorGraphic ( ) : boolean
return boolean

update() protected method

protected update ( ) : void
return void

Property Details

$type public_oe property

public string $type
return string