PHP Класс Neos\Neos\Controller\Service\NodesController

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

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

Свойство Тип Описание
$nodePropertyConverterService Neos\Neos\Service\Mapping\NodePropertyConverterService
$nodeSearchService Neos\Neos\Domain\Service\NodeSearchServiceInterface
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$propertyMapper Neos\Flow\Property\PropertyMapper
$supportedMediaTypes array A list of IANA media types which are supported by this controller
$viewFormatToObjectNameMap array

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

Метод Описание
createAction ( string $mode, string $identifier, string $workspaceName = 'live', array $dimensions = [], array $sourceDimensions = [] ) : string Create a new node from an existing one
indexAction ( string $searchTerm = '', array $nodeIdentifiers = [], string $workspaceName = 'live', array $dimensions = [], array $nodeTypes = ['Neos.Neos:Document'], Neos\ContentRepository\Domain\Model\NodeInterface $contextNode = null ) : string Shows a list of nodes
showAction ( string $identifier, string $workspaceName = 'live', array $dimensions = [] ) : string Shows a specific node

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

Метод Описание
addExistingNodeVariantInformationToResponse ( $identifier, ContentContext $context ) : void If the node is not found, we *first* want to figure out whether the node exists in other dimensions or is really non-existent
adoptNodeAndParents ( Neos\ContentRepository\Domain\Model\NodeInterface $node, ContentContext $contentContext, boolean $copyContent ) : void Adopt (translate) the given node and parents that are not yet visible to the given context

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

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

If the node is not found, we *first* want to figure out whether the node exists in other dimensions or is really non-existent
protected addExistingNodeVariantInformationToResponse ( $identifier, ContentContext $context ) : void
$identifier
$context Neos\Neos\Domain\Service\ContentContext
Результат void

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

Adopt (translate) the given node and parents that are not yet visible to the given context
protected adoptNodeAndParents ( Neos\ContentRepository\Domain\Model\NodeInterface $node, ContentContext $contentContext, boolean $copyContent ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$contentContext Neos\Neos\Domain\Service\ContentContext
$copyContent boolean TRUE if the content from the nodes that are translated should be copied
Результат void

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

The "mode" property defines the basic mode of operation. Currently supported modes: 'adoptFromAnotherDimension': Adopts the single node from another dimension - $identifier, $workspaceName and $sourceDimensions specify the source node - $identifier, $workspaceName and $dimensions specify the target node
public createAction ( string $mode, string $identifier, string $workspaceName = 'live', array $dimensions = [], array $sourceDimensions = [] ) : string
$mode string
$identifier string Specifies the identifier of the node to be created; if source
$workspaceName string Name of the workspace where to create the node in
$dimensions array Optional list of dimensions and their values in which the node should be created
$sourceDimensions array
Результат string

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

Shows a list of nodes
public indexAction ( string $searchTerm = '', array $nodeIdentifiers = [], string $workspaceName = 'live', array $dimensions = [], array $nodeTypes = ['Neos.Neos:Document'], Neos\ContentRepository\Domain\Model\NodeInterface $contextNode = null ) : string
$searchTerm string An optional search term used for filtering the list of nodes
$nodeIdentifiers array An optional list of node identifiers
$workspaceName string Name of the workspace to search in, "live" by default
$dimensions array Optional list of dimensions and their values which should be used for querying
$nodeTypes array A list of node types the list should be filtered by
$contextNode Neos\ContentRepository\Domain\Model\NodeInterface a node to use as context for the search
Результат string

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

Shows a specific node
public showAction ( string $identifier, 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

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

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

protected NodePropertyConverterService,Neos\Neos\Service\Mapping $nodePropertyConverterService
Результат Neos\Neos\Service\Mapping\NodePropertyConverterService

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

protected NodeSearchServiceInterface,Neos\Neos\Domain\Service $nodeSearchService
Результат Neos\Neos\Domain\Service\NodeSearchServiceInterface

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

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager

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

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Результат Neos\Flow\Property\PropertyMapper

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

A list of IANA media types which are supported by this controller
См. также: http://www.iana.org/assignments/media-types/index.html
protected array $supportedMediaTypes
Результат array

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

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