PHP 클래스 Neos\Media\Domain\Service\ThumbnailService

Note that this repository is not part of the public API. Use the asset's getThumbnail() method instead.
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$imageService ImageService
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$presets boolean
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$thumbnailCache array
$thumbnailRepository Neos\Media\Domain\Repository\ThumbnailRepository

공개 메소드들

메소드 설명
getPresets ( ) : array
getThumbnail ( Neos\Media\Domain\Model\AssetInterface $asset, ThumbnailConfiguration $configuration ) : Neos\Media\Domain\Model\ImageInterface Returns a thumbnail of the given asset
getThumbnailConfigurationForPreset ( string $preset, boolean $async = false ) : ThumbnailConfiguration
getUriForThumbnail ( Neos\Media\Domain\Model\ImageInterface $thumbnail ) : string
refreshThumbnail ( Thumbnail $thumbnail ) : void Refreshes a thumbnail and persists the thumbnail

보호된 메소드들

메소드 설명
emitThumbnailCreated ( Thumbnail $thumbnail ) : void Signals that a thumbnail was created.

메소드 상세

emitThumbnailCreated() 보호된 메소드

Signals that a thumbnail was created.
protected emitThumbnailCreated ( Thumbnail $thumbnail ) : void
$thumbnail Neos\Media\Domain\Model\Thumbnail
리턴 void

getPresets() 공개 메소드

public getPresets ( ) : array
리턴 array Returns preset configuration for all presets

getThumbnail() 공개 메소드

If the maximum width / height is not specified or exceeds the original asset's dimensions, the width / height of the original asset is used.
public getThumbnail ( Neos\Media\Domain\Model\AssetInterface $asset, ThumbnailConfiguration $configuration ) : Neos\Media\Domain\Model\ImageInterface
$asset Neos\Media\Domain\Model\AssetInterface The asset to render a thumbnail for
$configuration Neos\Media\Domain\Model\ThumbnailConfiguration
리턴 Neos\Media\Domain\Model\ImageInterface

getThumbnailConfigurationForPreset() 공개 메소드

public getThumbnailConfigurationForPreset ( string $preset, boolean $async = false ) : ThumbnailConfiguration
$preset string The preset identifier
$async boolean
리턴 Neos\Media\Domain\Model\ThumbnailConfiguration

getUriForThumbnail() 공개 메소드

public getUriForThumbnail ( Neos\Media\Domain\Model\ImageInterface $thumbnail ) : string
$thumbnail Neos\Media\Domain\Model\ImageInterface
리턴 string

refreshThumbnail() 공개 메소드

Refreshes a thumbnail and persists the thumbnail
public refreshThumbnail ( Thumbnail $thumbnail ) : void
$thumbnail Neos\Media\Domain\Model\Thumbnail
리턴 void

프로퍼티 상세

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

protected ImageService,Neos\Media\Domain\Service $imageService
리턴 ImageService

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

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

protected bool $presets
리턴 boolean

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

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

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

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface

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

protected array $thumbnailCache
리턴 array

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

protected ThumbnailRepository,Neos\Media\Domain\Repository $thumbnailRepository
리턴 Neos\Media\Domain\Repository\ThumbnailRepository