PHP Class Pimcore\Model\Asset\Image

Inheritance: extends Pimcore\Model\Asset
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$type string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
update ( ) : void

Private Methods

Méthode 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 méthode

public clearThumbnail ( $name )
$name

clearThumbnails() public méthode

public clearThumbnails ( $force = false ) : void
Résultat void

getDimensions() public méthode

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

getEXIFData() public méthode

public getEXIFData ( ) : array
Résultat array

getFormat() public méthode

public getFormat ( ) : string
Résultat string

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getIPTCData() public méthode

public getIPTCData ( ) : array
Résultat array

getImageTransformInstance() public static méthode

public static getImageTransformInstance ( ) : null | Adapter
Résultat null | Pimcore\Image\Adapter

getRelativeFileSystemPath() public méthode

public getRelativeFileSystemPath ( ) : string
Résultat string

getThumbnail() public méthode

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

getThumbnailConfig() public méthode

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

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer

isAnimated() public méthode

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

isVectorGraphic() public méthode

public isVectorGraphic ( ) : boolean
Résultat boolean

update() protected méthode

protected update ( ) : void
Résultat void

Property Details

$type public_oe property

public string $type
Résultat string