PHP 클래스 Neos\Neos\Controller\Backend\ContentController

상속: extends Neos\Flow\Mvc\Controller\ActionController, use trait Neos\Neos\Controller\BackendUserTranslationTrait, use trait Neos\Neos\Controller\CreateContentContextTrait
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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() 보호된 메소드

initializeCreateImageVariantAction() 공개 메소드

Configure property mapping for adding a new image variant.

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