프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$asset | |||
$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 ( ) : |
||
getChecksum ( string $type = "md5" ) : null | string | ||
getConfig ( ) : |
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 ) : |
||
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 ) : |
Get a thumbnail image configuration. |
public __construct ( $asset, null $config = null, boolean $deferred = true ) | ||
$asset | ||
$config | null | |
$deferred | boolean |
public __toString ( ) : string | ||
리턴 | string | Public path to thumbnail image. |
protected createConfig ( mixed $selector ) : |
||
$selector | mixed | Name, array or object describing a thumbnail configuration. |
리턴 |
public getAsset ( ) : |
||
리턴 | The original image from which this thumbnail is generated. |
public getConfig ( ) : |
||
리턴 |
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. |
public getMimeType ( ) : string | ||
리턴 | string | HTTP Mime Type of the generated thumbnail image. |
public getRealHeight ( ) : integer | ||
리턴 | integer | Height of the generated thumbnail image. |
public getRealWidth ( ) : integer | ||
리턴 | integer | real Width of the generated thumbnail image. (when using high resolution option) |
public static setEmbedPicturePolyfill ( boolean $embedPicturePolyfill ) | ||
$embedPicturePolyfill | boolean |
public static setPictureElementInUse ( boolean $flag ) : void | ||
$flag | boolean | |
리턴 | void |
protected Config,Pimcore\Model\Asset\Image\Thumbnail $config | ||
리턴 |