PHP Interface Neos\ContentRepository\Domain\Service\NodeServiceInterface

Afficher le fichier Open project: neos/neos-development-collection Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

cleanUpAutoCreatedChildNodes() public méthode

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
Résultat void

cleanUpProperties() public méthode

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
Résultat void

createChildNodes() public méthode

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

generateUniqueNodeName() public méthode

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.
Résultat string valid node name that is possible as child of the given $parentNode

isNodeOfType() public méthode

public isNodeOfType ( Neos\ContentRepository\Domain\Model\NodeInterface $node, NodeType $nodeType ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$nodeType Neos\ContentRepository\Domain\Model\NodeType
Résultat boolean

nodePathAvailableForNode() public méthode

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
Résultat boolean

nodePathExistsInAnyContext() public méthode

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

normalizePath() public méthode

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.
Résultat string The normalized absolute path

setDefaultValues() public méthode

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