PHP Класс Neos\Media\Domain\Model\ThumbnailGenerator\AbstractThumbnailGenerator

A Thumbnail Generator is used to generate thumbnail based on constraints, like priority, file extension, ... You can implement your own Generator. The output of a Generator must be an image, check existing Generators for inspiration.
Наследование: implements Neos\Media\Domain\Model\ThumbnailGenerator\ThumbnailGeneratorInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$environment Neos\Flow\Utility\Environment
$imagineService Imagine\Image\ImagineInterface
$options array
$priority integer The priority for this thumbnail generator.
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

Открытые методы

Метод Описание
canRefresh ( Thumbnail $thumbnail ) : boolean
getPriority ( ) : integer

Защищенные методы

Метод Описание
getOption ( string $key ) : mixed
isExtensionSupported ( Thumbnail $thumbnail ) : boolean

Описание методов

canRefresh() публичный Метод

public canRefresh ( Thumbnail $thumbnail ) : boolean
$thumbnail Neos\Media\Domain\Model\Thumbnail
Результат boolean TRUE if this ThumbnailGenerator can convert the given thumbnail, FALSE otherwise.

getOption() защищенный Метод

protected getOption ( string $key ) : mixed
$key string
Результат mixed

getPriority() публичный статический Метод

public static getPriority ( ) : integer
Результат integer

isExtensionSupported() защищенный Метод

protected isExtensionSupported ( Thumbnail $thumbnail ) : boolean
$thumbnail Neos\Media\Domain\Model\Thumbnail
Результат boolean

Описание свойств

$environment защищенное свойство

protected Environment,Neos\Flow\Utility $environment
Результат Neos\Flow\Utility\Environment

$imagineService защищенное свойство

protected ImagineInterface,Imagine\Image $imagineService
Результат Imagine\Image\ImagineInterface

$options защищенное свойство

protected array $options
Результат array

$priority защищенное статическое свойство

The priority for this thumbnail generator.
protected static int $priority
Результат integer

$resourceManager защищенное свойство

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Результат Neos\Flow\ResourceManagement\ResourceManager