PHP Класс Neos\Neos\Controller\Backend\ContentController

Наследование: extends Neos\Flow\Mvc\Controller\ActionController, use trait Neos\Neos\Controller\BackendUserTranslationTrait, use trait Neos\Neos\Controller\CreateContentContextTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$assetCollectionRepository Neos\Media\Domain\Repository\AssetCollectionRepository
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$entityToIdentityConverter Neos\Neos\TypeConverter\EntityToIdentityConverter
$imageInterfaceArrayPresenter Neos\Media\TypeConverter\ImageInterfaceArrayPresenter
$imageRepository Neos\Media\Domain\Repository\ImageRepository
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$pluginService Neos\Neos\Service\PluginService The pluginService
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$thumbnailService Neos\Media\Domain\Service\ThumbnailService

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

Метод Описание
assetsWithMetadataAction ( array $assets ) : string Fetch the metadata for multiple assets
createImageVariantAction ( ImageVariant $asset ) : string Generate a new image variant from given data.
imageWithMetadataAction ( Neos\Media\Domain\Model\ImageInterface $image ) : string Fetch the metadata for a given image
initializeCreateImageVariantAction ( ) : void Configure property mapping for adding a new image variant.
initializeUploadAssetAction ( ) Initialize property mapping as the upload usually comes from the Inspector JavaScript
masterPluginsAction ( string $workspaceName = 'live', array $dimensions = [] ) : string Fetch all master plugins that are available in the current workspace.
pluginViewsAction ( string $identifier = null, string $workspaceName = 'live', array $dimensions = [] ) : string Fetch the configured views for the given master plugin
uploadAssetAction ( Asset $asset, string $metadata ) : string Upload a new image, and return its metadata.

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

Метод Описание
getAssetProperties ( Asset $asset ) : array
getImageInterfacePreviewData ( Neos\Media\Domain\Model\ImageInterface $image ) : array Returns important meta data for the given object implementing ImageInterface.
getImagePreviewData ( Image $image ) : array
getImageVariantPreviewData ( ImageVariant $imageVariant ) : array
initializeAssetsWithMetadataAction ( ) : void

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

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

Fetch the metadata for multiple assets
public assetsWithMetadataAction ( array $assets ) : string
$assets array
Результат string JSON encoded response

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

Generate a new image variant from given data.
public createImageVariantAction ( ImageVariant $asset ) : string
$asset Neos\Media\Domain\Model\ImageVariant
Результат string

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

protected getAssetProperties ( Asset $asset ) : array
$asset Neos\Media\Domain\Model\Asset
Результат array

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

Will return an array with the following keys: "originalImageResourceUri": Uri for the original resource "previewImageResourceUri": Uri for a preview image with reduced size "originalDimensions": Dimensions for the original image (width, height, aspectRatio) "previewDimensions": Dimensions for the preview image (width, height) "object": object properties like the __identity and __type of the object
protected getImageInterfacePreviewData ( Neos\Media\Domain\Model\ImageInterface $image ) : array
$image Neos\Media\Domain\Model\ImageInterface The image to retrieve meta data for
Результат array

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

protected getImagePreviewData ( Image $image ) : array
$image Neos\Media\Domain\Model\Image
Результат array

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

protected getImageVariantPreviewData ( ImageVariant $imageVariant ) : array
$imageVariant Neos\Media\Domain\Model\ImageVariant
Результат array

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

Fetch the metadata for a given image
public imageWithMetadataAction ( Neos\Media\Domain\Model\ImageInterface $image ) : string
$image Neos\Media\Domain\Model\ImageInterface
Результат string JSON encoded response

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

protected initializeAssetsWithMetadataAction ( ) : void
Результат void

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

Configure property mapping for adding a new image variant.
public initializeCreateImageVariantAction ( ) : void
Результат void

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

Initialize property mapping as the upload usually comes from the Inspector JavaScript

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

Fetch all master plugins that are available in the current workspace.
public masterPluginsAction ( string $workspaceName = 'live', array $dimensions = [] ) : string
$workspaceName string Name of the workspace to use for querying the node
$dimensions array Optional list of dimensions and their values which should be used for querying the specified node
Результат string JSON encoded array of node path => label

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

Fetch the configured views for the given master plugin
public pluginViewsAction ( string $identifier = null, string $workspaceName = 'live', array $dimensions = [] ) : string
$identifier string Specifies the node to look up
$workspaceName string Name of the workspace to use for querying the node
$dimensions array Optional list of dimensions and their values which should be used for querying the specified node
Результат string

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

Depending on the $metadata argument it will return asset metadata for the AssetEditor or image metadata for the ImageEditor
public uploadAssetAction ( Asset $asset, string $metadata ) : string
$asset Neos\Media\Domain\Model\Asset
$metadata string Type of metadata to return ("Asset" or "Image")
Результат string

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

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

protected AssetCollectionRepository,Neos\Media\Domain\Repository $assetCollectionRepository
Результат Neos\Media\Domain\Repository\AssetCollectionRepository

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

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
Результат Neos\Media\Domain\Repository\AssetRepository

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

protected EntityToIdentityConverter,Neos\Neos\TypeConverter $entityToIdentityConverter
Результат Neos\Neos\TypeConverter\EntityToIdentityConverter

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

protected ImageInterfaceArrayPresenter,Neos\Media\TypeConverter $imageInterfaceArrayPresenter
Результат Neos\Media\TypeConverter\ImageInterfaceArrayPresenter

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

protected ImageRepository,Neos\Media\Domain\Repository $imageRepository
Результат Neos\Media\Domain\Repository\ImageRepository

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

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

The pluginService
protected PluginService,Neos\Neos\Service $pluginService
Результат Neos\Neos\Service\PluginService

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

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

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

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository

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

protected ThumbnailService,Neos\Media\Domain\Service $thumbnailService
Результат Neos\Media\Domain\Service\ThumbnailService