PHP 인터페이스 Neos\ContentRepository\Domain\Service\NodeServiceInterface

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

공개 메소드들

메소드 설명
cleanUpAutoCreatedChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, NodeType $oldNodeType ) : void Removes all auto created child nodes that existed in the previous nodeType.
cleanUpProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Removes all properties not configured in the current Node Type.
createChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Creates missing child nodes for the given node.
generateUniqueNodeName ( string $parentPath, string $idealNodeName = null ) : string Generates a possible node name, optionally based on a suggested "ideal" name.
isNodeOfType ( Neos\ContentRepository\Domain\Model\NodeInterface $node, NodeType $nodeType ) : boolean
nodePathAvailableForNode ( string $nodePath, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Checks if the given node path can be used for the given node.
nodePathExistsInAnyContext ( string $nodePath ) : boolean Checks if the given node path exists in any possible context already.
normalizePath ( string $path, string $referencePath = null ) : string Normalizes the given node path to a reference path and returns an absolute path.
setDefaultValues ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Sets default node property values on the given node.

메소드 상세

cleanUpAutoCreatedChildNodes() 공개 메소드

Removes all auto created child nodes that existed in the previous nodeType.
public cleanUpAutoCreatedChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, NodeType $oldNodeType ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$oldNodeType Neos\ContentRepository\Domain\Model\NodeType
리턴 void

cleanUpProperties() 공개 메소드

Removes all properties not configured in the current Node Type.
public cleanUpProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

createChildNodes() 공개 메소드

Creates missing child nodes for the given node.
public createChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

generateUniqueNodeName() 공개 메소드

Generates a possible node name, optionally based on a suggested "ideal" name.
public generateUniqueNodeName ( string $parentPath, string $idealNodeName = null ) : string
$parentPath string
$idealNodeName string Can be any string, doesn't need to be a valid node name.
리턴 string valid node name that is possible as child of the given $parentNode

isNodeOfType() 공개 메소드

public isNodeOfType ( Neos\ContentRepository\Domain\Model\NodeInterface $node, NodeType $nodeType ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$nodeType Neos\ContentRepository\Domain\Model\NodeType
리턴 boolean

nodePathAvailableForNode() 공개 메소드

Checks if the given node path can be used for the given node.
public nodePathAvailableForNode ( string $nodePath, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$nodePath string
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 boolean

nodePathExistsInAnyContext() 공개 메소드

Checks if the given node path exists in any possible context already.
public nodePathExistsInAnyContext ( string $nodePath ) : boolean
$nodePath string
리턴 boolean

normalizePath() 공개 메소드

Normalizes the given node path to a reference path and returns an absolute path.
public normalizePath ( string $path, string $referencePath = null ) : string
$path string The non-normalized path
$referencePath string a reference path in case the given path is relative.
리턴 string The normalized absolute path

setDefaultValues() 공개 메소드

Sets default node property values on the given node.
public setDefaultValues ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void