PHP 클래스 Neos\Media\ViewHelpers\Uri\ImageViewHelper

= Examples = {typo3.media:uri.image(image: imageObject)} (depending on the image) _Resources/Persistent/b29[...]95d.jpeg {typo3.media:uri.image(image: imageObject, maximumWidth: 80)} (depending on the image; has scaled keeping the aspect ratio) _Resources/Persistent/b29[...]95d.jpeg
또한 보기: Neos\Media\ViewHelpers\ImageViewHelper
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$assetService Neos\Media\Domain\Service\AssetService
$thumbnailService Neos\Media\Domain\Service\ThumbnailService

공개 메소드들

메소드 설명
initializeArguments ( ) : void
render ( Neos\Media\Domain\Model\ImageInterface $image = 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 the path to a thumbnail image, created from a given image.

메소드 상세

initializeArguments() 공개 메소드

public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

Renders the path to a thumbnail image, created from a given image.
public render ( Neos\Media\Domain\Model\ImageInterface $image = 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
$image Neos\Media\Domain\Model\ImageInterface The image to retrieve the path from
$width integer Desired width of the image
$maximumWidth integer Desired maximum width of the image
$height integer Desired height of the image
$maximumHeight integer Desired maximum height of the image
$allowCropping boolean Whether the image should be cropped if the given sizes would hurt the aspect ratio
$allowUpScaling boolean Whether the resulting image size might exceed the size of the original image
$async boolean Return asynchronous image URI in case the requested image does not exist already
$preset string Preset used to determine image configuration
리턴 string the relative image path, to be used as src attribute for tags

프로퍼티 상세

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

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

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

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