PHP Класс Neos\Media\Domain\Service\ThumbnailService

Note that this repository is not part of the public API. Use the asset's getThumbnail() method instead.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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