PHP 클래스 Neos\Media\ViewHelpers\ThumbnailViewHelper

= Examples = (depending on the asset, no scaling applied) a sample asset without scaling (depending on the asset; scaled down to a maximum width of 80 pixels, keeping the aspect ratio) sample (depending on the asset; scaled down to a maximum width and height of 80 pixels, keeping the aspect ratio) sample (depending on the asset; scaled down to a width and height of 80 pixels, possibly changing aspect ratio) sample (depending on the asset; scaled up or down to a width 5000 pixels, keeping aspect ratio) sample
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$assetService Neos\Media\Domain\Service\AssetService
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$tagName string name of the tag to be created by this view helper
$thumbnailService Neos\Media\Domain\Service\ThumbnailService

공개 메소드들

메소드 설명
initializeArguments ( ) : void
render ( Neos\Media\Domain\Model\AssetInterface $asset = null, integer $width = null, integer $maximumWidth = null, integer $height = null, integer $maximumHeight = null, boolean $allowCropping = false, boolean $allowUpScaling = false, boolean $async = false, string $preset = null ) : string Renders an HTML img tag with a thumbnail image, created from a given asset.

메소드 상세

initializeArguments() 공개 메소드

public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

Renders an HTML img tag with a thumbnail image, created from a given asset.
public render ( Neos\Media\Domain\Model\AssetInterface $asset = null, integer $width = null, integer $maximumWidth = null, integer $height = null, integer $maximumHeight = null, boolean $allowCropping = false, boolean $allowUpScaling = false, boolean $async = false, string $preset = null ) : string
$asset Neos\Media\Domain\Model\AssetInterface The asset to be rendered as a thumbnail
$width integer Desired width of the thumbnail
$maximumWidth integer Desired maximum width of the thumbnail
$height integer Desired height of the thumbnail
$maximumHeight integer Desired maximum height of the thumbnail
$allowCropping boolean Whether the thumbnail should be cropped if the given sizes would hurt the aspect ratio
$allowUpScaling boolean Whether the resulting thumbnail size might exceed the size of the original asset
$async boolean Return asynchronous image URI in case the requested image does not exist already
$preset string Preset used to determine image configuration
리턴 string an html tag

프로퍼티 상세

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

protected AssetService,Neos\Media\Domain\Service $assetService
리턴 Neos\Media\Domain\Service\AssetService

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

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
리턴 Neos\Flow\ResourceManagement\ResourceManager

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

name of the tag to be created by this view helper
protected string $tagName
리턴 string

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

protected ThumbnailService,Neos\Media\Domain\Service $thumbnailService
리턴 Neos\Media\Domain\Service\ThumbnailService