PHP 클래스 Neos\Neos\Controller\Service\NodesController

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

보호된 프로퍼티들

프로퍼티 타입 설명
$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