PHP 클래스 Pimcore\Model\Asset\Image\Thumbnail

파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$asset Pimcore\Model\Asset\Image
$config Pimcore\Model\Asset\Image\Thumbnail\Config
$deferred boolean
$embedPicturePolyfill boolean
$filesystemPath mixed | string
$height integer
$mimetype string
$pictureElementInUse boolean
$realHeight integer
$realWidth integer
$width integer

공개 메소드들

메소드 설명
__construct ( $asset, null $config = null, boolean $deferred = true )
__toString ( ) : string Get the public path to the thumbnail image.
generate ( boolean $deferredAllowed = true )
getAsset ( ) : Image
getChecksum ( string $type = "md5" ) : null | string
getConfig ( ) : Config Get thumbnail image configuration.
getDimensions ( ) : array
getEmbedPicturePolyfill ( ) : boolean
getFileExtension ( ) : string
getFileSystemPath ( boolean $deferredAllowed = false ) : mixed | string
getHTML ( array $options = [], array $removeAttributes = [] ) : string Get generated HTML for displaying the thumbnail image in a HTML document. (XHTML compatible).
getHeight ( ) : integer Get the width of the generated thumbnail image in pixels.
getMedia ( string $name, integer $highRes = 1 ) : Thumbnail
getMimeType ( ) : string Get the height of the generated thumbnail image in pixels.
getPath ( boolean $deferredAllowed = true ) : mixed | string
getRealHeight ( ) : integer Get the real width of the generated thumbnail image in pixels. (when using high resolution option)
getRealWidth ( ) : integer
getWidth ( ) : integer
isPictureElementInUse ( ) : boolean
reset ( )
setEmbedPicturePolyfill ( boolean $embedPicturePolyfill )
setPictureElementInUse ( boolean $flag ) : void Enables, when set to true, dispatchLoopShutdown of Pimcore_Controller_Plugin_Thumbnail

보호된 메소드들

메소드 설명
createConfig ( mixed $selector ) : Config Get a thumbnail image configuration.

메소드 상세

__construct() 공개 메소드

public __construct ( $asset, null $config = null, boolean $deferred = true )
$asset
$config null
$deferred boolean

__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() 보호된 메소드

Get a thumbnail image configuration.
protected createConfig ( mixed $selector ) : Config
$selector mixed Name, array or object describing a thumbnail configuration.
리턴 Pimcore\Model\Asset\Image\Thumbnail\Config

generate() 공개 메소드

public generate ( boolean $deferredAllowed = true )
$deferredAllowed boolean

getAsset() 공개 메소드

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

getChecksum() 공개 메소드

public getChecksum ( string $type = "md5" ) : null | string
$type string
리턴 null | string

getConfig() 공개 메소드

Get thumbnail image configuration.
public getConfig ( ) : Config
리턴 Pimcore\Model\Asset\Image\Thumbnail\Config

getDimensions() 공개 메소드

public getDimensions ( ) : array
리턴 array

getEmbedPicturePolyfill() 공개 정적인 메소드

public static getEmbedPicturePolyfill ( ) : boolean
리턴 boolean

getFileExtension() 공개 메소드

public getFileExtension ( ) : string
리턴 string

getFileSystemPath() 공개 메소드

public getFileSystemPath ( boolean $deferredAllowed = false ) : mixed | string
$deferredAllowed boolean
리턴 mixed | string

getHTML() 공개 메소드

Attributes can be added as a parameter. Attributes containing illigal characters are ignored. Width and Height attribute can be overridden. SRC-attribute not. Values of attributes are escaped.
public getHTML ( array $options = [], array $removeAttributes = [] ) : string
$options array Custom configurations and HTML attributes.
$removeAttributes array Listof key-value pairs of HTML attributes that should be removed
리턴 string IMG-element with at least the attributes src, width, height, alt.

getHeight() 공개 메소드

Get the width of the generated thumbnail image in pixels.
public getHeight ( ) : integer
리턴 integer Height of the generated thumbnail image.

getMedia() 공개 메소드

public getMedia ( string $name, integer $highRes = 1 ) : Thumbnail
$name string
$highRes integer
리턴 Thumbnail

getMimeType() 공개 메소드

Get the height of the generated thumbnail image in pixels.
public getMimeType ( ) : string
리턴 string HTTP Mime Type of the generated thumbnail image.

getPath() 공개 메소드

public getPath ( boolean $deferredAllowed = true ) : mixed | string
$deferredAllowed boolean
리턴 mixed | string

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.

isPictureElementInUse() 공개 정적인 메소드

public static isPictureElementInUse ( ) : boolean
리턴 boolean

reset() 공개 메소드

public reset ( )

setEmbedPicturePolyfill() 공개 정적인 메소드

public static setEmbedPicturePolyfill ( boolean $embedPicturePolyfill )
$embedPicturePolyfill boolean

setPictureElementInUse() 공개 정적인 메소드

Enables, when set to true, dispatchLoopShutdown of Pimcore_Controller_Plugin_Thumbnail
public static setPictureElementInUse ( boolean $flag ) : void
$flag boolean
리턴 void

프로퍼티 상세

$asset 보호되어 있는 프로퍼티

protected Image,Pimcore\Model\Asset $asset
리턴 Pimcore\Model\Asset\Image

$config 보호되어 있는 프로퍼티

protected Config,Pimcore\Model\Asset\Image\Thumbnail $config
리턴 Pimcore\Model\Asset\Image\Thumbnail\Config

$deferred 보호되어 있는 프로퍼티

protected bool $deferred
리턴 boolean

$embedPicturePolyfill 보호되어 있는 정적으로 프로퍼티

protected static bool $embedPicturePolyfill
리턴 boolean

$filesystemPath 보호되어 있는 프로퍼티

protected mixed|string $filesystemPath
리턴 mixed | string

$height 보호되어 있는 프로퍼티

protected int $height
리턴 integer

$mimetype 보호되어 있는 프로퍼티

protected string $mimetype
리턴 string

$pictureElementInUse 보호되어 있는 정적으로 프로퍼티

protected static bool $pictureElementInUse
리턴 boolean

$realHeight 보호되어 있는 프로퍼티

protected int $realHeight
리턴 integer

$realWidth 보호되어 있는 프로퍼티

protected int $realWidth
리턴 integer

$width 보호되어 있는 프로퍼티

protected int $width
리턴 integer