PHP Class Neos\Neos\Controller\Service\NodesController

Inheritance: extends Neos\Flow\Mvc\Controller\ActionController, use trait Neos\Neos\Controller\BackendUserTranslationTrait, use trait Neos\Neos\Controller\CreateContentContextTrait
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$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

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

addExistingNodeVariantInformationToResponse() protected method

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
return void

adoptNodeAndParents() protected method

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
return void

createAction() public method

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
return string

indexAction() public method

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
return string

showAction() public method

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
return string

Property Details

$nodePropertyConverterService protected property

protected NodePropertyConverterService,Neos\Neos\Service\Mapping $nodePropertyConverterService
return Neos\Neos\Service\Mapping\NodePropertyConverterService

$nodeSearchService protected property

protected NodeSearchServiceInterface,Neos\Neos\Domain\Service $nodeSearchService
return Neos\Neos\Domain\Service\NodeSearchServiceInterface

$nodeTypeManager protected property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$supportedMediaTypes protected property

A list of IANA media types which are supported by this controller
See also: http://www.iana.org/assignments/media-types/index.html
protected array $supportedMediaTypes
return array

$viewFormatToObjectNameMap protected property

protected array $viewFormatToObjectNameMap
return array