Свойство | Тип | Описание | |
---|---|---|---|
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$reflectionService | |||
$resourceManager | |||
$thumbnailService | |||
$uriBuilder | |||
$usageStrategies | array |
Метод | Описание | |
---|---|---|
emitAssetCreated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was added. | |
emitAssetRemoved ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was removed. | |
emitAssetResourceReplaced ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that a resource on an asset has been replaced | |
emitAssetUpdated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was updated. | |
getRepository ( Neos\Media\Domain\Model\AssetInterface $asset ) : Neos\Flow\Persistence\RepositoryInterface | Returns the repository for an asset | |
getThumbnailUriAndSizeForAsset ( Neos\Media\Domain\Model\AssetInterface $asset, |
Calculates the dimensions of the thumbnail to be generated and returns the thumbnail URI. | |
getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer | Returns the total count of times an asset is used. | |
getUsageReferences ( Neos\Media\Domain\Model\AssetInterface $asset ) : array<\Neos\Media\Domain\Model\Dto\UsageReference> | Returns an array of asset usage references. | |
isInUse ( Neos\Media\Domain\Model\AssetInterface $asset ) : boolean | Returns true if the asset is used. | |
replaceAssetResource ( Neos\Media\Domain\Model\AssetInterface $asset, |
Replace resource on an asset. Takes variants and redirect handling into account. | |
validateRemoval ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Validates if the asset can be removed |
Метод | Описание | |
---|---|---|
getUsageStrategies ( ) : array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> | Returns all registered asset usage strategies |
public emitAssetCreated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | void |
public emitAssetRemoved ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | void |
public emitAssetResourceReplaced ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | void |
public emitAssetUpdated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | void |
public getRepository ( Neos\Media\Domain\Model\AssetInterface $asset ) : Neos\Flow\Persistence\RepositoryInterface | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | Neos\Flow\Persistence\RepositoryInterface |
public getThumbnailUriAndSizeForAsset ( Neos\Media\Domain\Model\AssetInterface $asset, |
||
$asset | Neos\Media\Domain\Model\AssetInterface | |
$configuration | ||
$request | Request argument must be provided for asynchronous thumbnails | |
Результат | array | null | Array with keys "width", "height" and "src" if the thumbnail generation work or null |
public getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | integer |
public getUsageReferences ( Neos\Media\Domain\Model\AssetInterface $asset ) : array<\Neos\Media\Domain\Model\Dto\UsageReference> | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | array<\Neos\Media\Domain\Model\Dto\UsageReference> |
protected getUsageStrategies ( ) : array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> | ||
Результат | array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> |
public replaceAssetResource ( Neos\Media\Domain\Model\AssetInterface $asset, |
||
$asset | Neos\Media\Domain\Model\AssetInterface | |
$resource | ||
$options | array | |
Результат | void |
public validateRemoval ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Результат | void |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
Результат | Neos\Flow\Package\PackageManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
Результат |
protected ThumbnailService,Neos\Media\Domain\Service $thumbnailService | ||
Результат |
protected UriBuilder,Neos\Flow\Mvc\Routing $uriBuilder | ||
Результат |