PHP 클래스 Neos\ContentRepository\Domain\Factory\NodeFactory

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodes array<\Neos\ContentRepository\Domain\Model\Node>
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
createContextMatchingNodeData ( NodeData $nodeData ) : Context Generates a Context that exactly fits the given NodeData Workspace and Dimensions.
createFromNodeData ( NodeData $nodeData, Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface Creates a node from the given NodeData container.
getNodeInterfaceImplementations ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array Get all NodeInterface implementations to check if a configured node class is in there.
reset ( ) : void Reset the node instances (for testing)

보호된 메소드들

메소드 설명
filterNodeByContext ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface | null Filter a node by the current context.

메소드 상세

createContextMatchingNodeData() 공개 메소드

TODO: We could get more specific about removed and invisible content by adding some more logic here that generates fitting values.
public createContextMatchingNodeData ( NodeData $nodeData ) : Context
$nodeData Neos\ContentRepository\Domain\Model\NodeData
리턴 Neos\ContentRepository\Domain\Service\Context

createFromNodeData() 공개 메소드

If this factory has previously created a Node for the given $node and it's dimensions, it will return the same node again.
public createFromNodeData ( NodeData $nodeData, Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface
$nodeData Neos\ContentRepository\Domain\Model\NodeData
$context Neos\ContentRepository\Domain\Service\Context
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

filterNodeByContext() 보호된 메소드

Will either return the node or NULL if it is not permitted in current context.
protected filterNodeByContext ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface | null
$node Neos\ContentRepository\Domain\Model\NodeInterface
$context Neos\ContentRepository\Domain\Service\Context
리턴 Neos\ContentRepository\Domain\Model\NodeInterface | null

getNodeInterfaceImplementations() 공개 정적인 메소드

Get all NodeInterface implementations to check if a configured node class is in there.
public static getNodeInterfaceImplementations ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 array

reset() 공개 메소드

Reset the node instances (for testing)
public reset ( ) : void
리턴 void

프로퍼티 상세

$contextFactory 보호되어 있는 프로퍼티

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
리턴 Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$nodes 보호되어 있는 프로퍼티

protected array<\Neos\ContentRepository\Domain\Model\Node> $nodes
리턴 array<\Neos\ContentRepository\Domain\Model\Node>

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$securityContext 보호되어 있는 프로퍼티

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context