PHP 클래스 Neos\ContentRepository\Domain\Model\Node

상속: implements Neos\ContentRepository\Domain\Model\NodeInterface, implements Neos\Cache\CacheAwareInterface
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$context Neos\ContentRepository\Domain\Service\Context
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodeData NodeData The NodeData entity this version is for.
$nodeDataIsMatchingContext boolean Defines if the NodeData represented by this Node is already in the same context or if it is currently just "shining through".
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeFactory Neos\ContentRepository\Domain\Factory\NodeFactory
$nodeService Neos\ContentRepository\Domain\Service\NodeServiceInterface
$propertyMapper Neos\Flow\Property\PropertyMapper

공개 메소드들

메소드 설명
__construct ( NodeData $nodeData, Context $context )
__toString ( ) : string For debugging purposes, the node can be converted to a string.
copyAfter ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface Copies this node after the given node
copyBefore ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface Copies this node before the given node
copyInto ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface Copies this node into the given node
createNode ( string $name, NodeType $nodeType = null, string $identifier = null ) : Neos\ContentRepository\Domain\Model\NodeInterface Creates, adds and returns a child node of this node. Also sets default properties and creates default subnodes.
createNodeFromTemplate ( NodeTemplate $nodeTemplate, string $nodeName = null ) : Neos\ContentRepository\Domain\Model\NodeInterface Creates and persists a node from the given $nodeTemplate as child node
createSingleNode ( string $name, NodeType $nodeType = null, string $identifier = null ) : Node Creates, adds and returns a child node of this node, without setting default properties or creating subnodes. Only used internally.
createVariantForContext ( Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface Given a context a new node is returned that is like this node, but lives in the new context.
dimensionsAreMatchingTargetDimensionValues ( ) : boolean Internal method
getAccessRoles ( ) : array Returns the names of defined access roles
getCacheEntryIdentifier ( ) : string Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object.
getChildNodes ( string $nodeTypeFilter = null, integer $limit = null, integer $offset = null ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> Returns all direct child nodes of this node.
getContentObject ( ) : object Returns the content object of this node (if any).
getContext ( ) : Context Returns the context this node operates in.
getContextPath ( ) : string Returns the absolute path of this node with additional context information (such as the workspace name).
getCreationDateTime ( ) : DateTimeInterface
getDepth ( ) : integer Returns the level at which this node is located.
getDimensions ( ) : array Return the assigned content dimensions of the node.
getFullLabel ( ) : string Returns a full length plain text description of this node
getHiddenAfterDateTime ( ) : DateTime Returns the date and time after which this node will be automatically hidden.
getHiddenBeforeDateTime ( ) : DateTime Returns the date and time before which this node will be automatically hidden.
getIdentifier ( ) : string Returns the identifier of this node
getIndex ( ) : integer Returns the index of this node which determines the order among siblings with the same parent node.
getLabel ( ) : string Returns the node label as generated by the configured node label generator
getLastModificationDateTime ( ) : DateTimeInterface
getLastPublicationDateTime ( ) : DateTime
getName ( ) : string Returns the name of this node
getNode ( string $path ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns a node specified by the given relative path.
getNodeData ( ) : NodeData
getNodeType ( ) : NodeType Returns the node type of this node.
getNumberOfChildNodes ( string $nodeTypeFilter = null ) : integer Returns the number of child nodes a similar getChildNodes() call would return.
getOtherNodeVariants ( )
getParent ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the parent node of this node
getParentPath ( ) : string Returns the parent node path
getPath ( ) : string Returns the path of this node
getPrimaryChildNode ( ) : Node Returns the primary child node of this node.
getProperties ( boolean $returnNodesAsIdentifiers = false ) : array Returns all properties of this node.
getProperty ( string $propertyName, boolean $returnNodesAsIdentifiers = false ) : mixed Returns the specified property.
getPropertyNames ( ) : array Returns the names of all properties of this node.
getWorkspace ( ) : Workspace Returns the workspace this node is contained in
hasAccessRestrictions ( ) : boolean Tells if a node, in general, has access restrictions, independent of the current security context.
hasChildNodes ( string $nodeTypeFilter = null ) : boolean Checks if this node has any child nodes.
hasProperty ( string $propertyName ) : boolean If this node has a property with the given name.
isAccessible ( ) : boolean Tells if this node may be accessed according to the current security context.
isAutoCreated ( ) : boolean Determine if this node is configured as auto-created childNode of the parent node. If that is the case, it should not be deleted.
isHidden ( ) : boolean Returns the current state of the hidden flag
isHiddenInIndex ( ) : boolean If this node should be hidden in indexes
isNodeTypeAllowedAsChildNode ( NodeType $nodeType ) : boolean Checks if the given $nodeType would be allowed as a child node of this node according to the configured constraints.
isRemoved ( ) : boolean If this node is a removed node.
isVisible ( ) : boolean Tells if this node is "visible".
moveAfter ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null ) Moves this node after the given node
moveBefore ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null ) Moves this node before the given node
moveInto ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null ) Moves this node into the given node
remove ( ) : void Removes this node and all its child nodes. This is an alias for setRemoved(TRUE)
removeProperty ( string $propertyName ) : void Removes the specified property.
setAccessRoles ( array $accessRoles ) : void Sets the roles which are required to access this node
setContentObject ( object $contentObject ) : void Sets a content object for this node.
setHidden ( boolean $hidden ) : void Sets the "hidden" flag for this node.
setHiddenAfterDateTime ( DateTime $dateTime = null ) : void Sets the date and time when this node should be automatically hidden
setHiddenBeforeDateTime ( DateTime $dateTime = null ) : void Sets the date and time when this node becomes potentially visible.
setHiddenInIndex ( boolean $hidden ) : void Sets if this node should be hidden in indexes, such as a site navigation.
setIndex ( integer $index ) : void Sets the index of this node
setLastPublicationDateTime ( DateTimeInterface $lastModificationDateTime ) : void
setName ( string $newName ) : void Set the name of the node to $newName, keeping its position as it is.
setNodeData ( NodeData $nodeData ) : void Set the associated NodeData in regards to the Context.
setNodeDataIsMatchingContext ( boolean $status ) : void Set the status of the associated NodeData in regards to the Context.
setNodeType ( NodeType $nodeType ) : void Sets the node type of this node.
setProperty ( string $propertyName, mixed $value ) : mixed Sets the specified property.
setRemoved ( boolean $removed ) : void Enables using the remove method when only setters are available
setWorkspace ( Workspace $workspace ) : void Sets the workspace of this node.
similarize ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, boolean $isCopy = false ) : void For internal use in createRecursiveCopy.
unsetContentObject ( ) : void Unsets the content object of this node.

보호된 메소드들

메소드 설명
copyIntoInternal ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, $nodeName, boolean $detachedCopy ) : Neos\ContentRepository\Domain\Model\NodeInterface Internal method to do the actual copying.
createNodeForVariant ( NodeData $nodeData ) : Node Create a node for the given NodeData, given that it is a variant of the current node
createRecursiveCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName, boolean $detachedCopy ) : Neos\ContentRepository\Domain\Model\NodeInterface Create a recursive copy of this node below $referenceNode with $nodeName.
emitAfterNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $copiedNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
emitAfterNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Signals that a node was created.
emitAfterNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $movePosition ) : void
emitBeforeNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
emitBeforeNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $name, string $nodeType, string $identifier ) : void Signals that a node will be created.
emitBeforeNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $movePosition ) : void
emitBeforeNodePropertyChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $newValue ) : void Signals that the property of a node will be changed.
emitNodeAdded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Signals that a node was added.
emitNodePathChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $oldPath, string $newPath, boolean $recursion ) Signals that the node path has been changed.
emitNodePropertyChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $newValue ) : void Signals that the property of a node was changed.
emitNodeRemoved ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Signals that a node was removed.
emitNodeUpdated ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Signals that a node was updated.
isNodeDataMatchingContext ( ) : boolean The NodeData matches the context if the workspace matches exactly.
isNodePathAvailable ( string $path ) : boolean Checks if the given node path is available for this node, so either no node with this path exists or an existing node has the same identifier.
materializeNodeData ( ) : void Materializes the original node data (of a different workspace) into the current workspace.
moveNodeData ( NodeData $nodeData, string $originalPath, string $destinationPath, boolean $recursiveCall ) : array | null Moves a NodeData object that is either a variant or child node to the given destination path.
moveNodeToDestinationPath ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $destinationPath ) : void Moves the given node to the destination path by modifying the underlaying NodeData object.
moveVariantOrChild ( string $aggregateOriginalPath, string $aggregateDestinationPath, Neos\ContentRepository\Domain\Model\NodeInterface $nodeToMove = null ) : array Moves the given variant or child node to the destination defined by the given path which is the new path for the originally moved (parent|variant) node
resolvePropertyReferences ( array $value = [] ) : array Maps the property value (an array of node identifiers) to the Node objects if needed.
setPath ( string $path, boolean $checkForExistence = true ) : void Sets the absolute path of this node.
setPathInternal ( string $destinationPath, boolean $recursiveCall ) : array Moves a node and sub nodes to the new path.
setPathInternalForAggregate ( string $destinationPath, boolean $recursiveCall ) : array Moves a node and sub nodes to the new path given with special logic for aggregate node types.
willChildNodeBeAutoCreated ( string $name ) : boolean Checks if the given Node $name is configured as auto-created childNode in the NodeType configuration.

메소드 상세

__construct() 공개 메소드

public __construct ( NodeData $nodeData, Context $context )
$nodeData NodeData
$context Neos\ContentRepository\Domain\Service\Context

__toString() 공개 메소드

For debugging purposes, the node can be converted to a string.
public __toString ( ) : string
리턴 string

copyAfter() 공개 메소드

Copies this node after the given node
public copyAfter ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodeName string
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

copyBefore() 공개 메소드

Copies this node before the given node
public copyBefore ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodeName string
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

copyInto() 공개 메소드

Copies this node into the given node
public copyInto ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodeName string
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

copyIntoInternal() 보호된 메소드

For behavior of the $detachedCopy parameter, see method Node::createRecursiveCopy().
protected copyIntoInternal ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, $nodeName, boolean $detachedCopy ) : Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodeName
$detachedCopy boolean
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

createNode() 공개 메소드

Creates, adds and returns a child node of this node. Also sets default properties and creates default subnodes.
public createNode ( string $name, NodeType $nodeType = null, string $identifier = null ) : Neos\ContentRepository\Domain\Model\NodeInterface
$name string Name of the new node
$nodeType NodeType Node type of the new node (optional)
$identifier string The identifier of the node, unique within the workspace, optional(!)
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

createNodeForVariant() 보호된 메소드

Create a node for the given NodeData, given that it is a variant of the current node
protected createNodeForVariant ( NodeData $nodeData ) : Node
$nodeData NodeData
리턴 Node

createNodeFromTemplate() 공개 메소드

Creates and persists a node from the given $nodeTemplate as child node
public createNodeFromTemplate ( NodeTemplate $nodeTemplate, string $nodeName = null ) : Neos\ContentRepository\Domain\Model\NodeInterface
$nodeTemplate NodeTemplate
$nodeName string name of the new node. If not specified the name of the nodeTemplate will be used.
리턴 Neos\ContentRepository\Domain\Model\NodeInterface the freshly generated node

createRecursiveCopy() 보호된 메소드

$detachedCopy only has an influence if we are copying from one dimension to the other, possibly creating a new node variant: - If $detachedCopy is TRUE, the whole (recursive) copy is done without connecting original and copied node, so NOT CREATING a new node variant. - If $detachedCopy is FALSE, and the node does not yet have a variant in the target dimension, we are CREATING a new node variant. As a caller of this method, $detachedCopy should be TRUE if $this->getNodeType()->isAggregate() is TRUE, and FALSE otherwise.
protected createRecursiveCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $nodeName, boolean $detachedCopy ) : Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodeName string
$detachedCopy boolean
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

createSingleNode() 공개 메소드

For internal use only! TODO: New SiteImportService uses createNode() and DQL. When we drop the LegagcySiteImportService we can change this to protected.
public createSingleNode ( string $name, NodeType $nodeType = null, string $identifier = null ) : Node
$name string Name of the new node
$nodeType NodeType Node type of the new node (optional)
$identifier string The identifier of the node, unique within the workspace, optional(!)
리턴 Node

createVariantForContext() 공개 메소드

Given a context a new node is returned that is like this node, but lives in the new context.
public createVariantForContext ( Context $context ) : Neos\ContentRepository\Domain\Model\NodeInterface
$context Neos\ContentRepository\Domain\Service\Context
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

dimensionsAreMatchingTargetDimensionValues() 공개 메소드

The dimension value of this node has to match the current target dimension value (must be higher in priority or equal)

emitAfterNodeCopy() 보호된 메소드

protected emitAfterNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $copiedNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
$copiedNode Neos\ContentRepository\Domain\Model\NodeInterface
$targetParentNode Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitAfterNodeCreate() 보호된 메소드

Signals that a node was created.
protected emitAfterNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitAfterNodeMove() 보호된 메소드

protected emitAfterNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $movePosition ) : void
$movedNode Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$movePosition integer
리턴 void

emitBeforeNodeCopy() 보호된 메소드

protected emitBeforeNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
$sourceNode Neos\ContentRepository\Domain\Model\NodeInterface
$targetParentNode Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitBeforeNodeCreate() 보호된 메소드

Signals that a node will be created.
protected emitBeforeNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $name, string $nodeType, string $identifier ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$name string
$nodeType string
$identifier string
리턴 void

emitBeforeNodeMove() 보호된 메소드

protected emitBeforeNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $movePosition ) : void
$movedNode Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$movePosition integer
리턴 void

emitBeforeNodePropertyChange() 보호된 메소드

Signals that the property of a node will be changed.
protected emitBeforeNodePropertyChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $newValue ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string name of the property that has been changed/added
$oldValue mixed the property value before it was changed or NULL if the property is new
$newValue mixed the new property value
리턴 void

emitNodeAdded() 보호된 메소드

Signals that a node was added.
protected emitNodeAdded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitNodePathChanged() 보호된 메소드

Signals that the node path has been changed.
protected emitNodePathChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $oldPath, string $newPath, boolean $recursion )
$node Neos\ContentRepository\Domain\Model\NodeInterface
$oldPath string
$newPath string
$recursion boolean TRUE if the node path change was caused because a parent node path was changed

emitNodePropertyChanged() 보호된 메소드

Signals that the property of a node was changed.
protected emitNodePropertyChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $newValue ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string name of the property that has been changed/added
$oldValue mixed the property value before it was changed or NULL if the property is new
$newValue mixed the new property value
리턴 void

emitNodeRemoved() 보호된 메소드

Signals that a node was removed.
protected emitNodeRemoved ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitNodeUpdated() 보호된 메소드

Signals that a node was updated.
protected emitNodeUpdated ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

getAccessRoles() 공개 메소드

Returns the names of defined access roles
public getAccessRoles ( ) : array
리턴 array

getCacheEntryIdentifier() 공개 메소드

Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object.
public getCacheEntryIdentifier ( ) : string
리턴 string

getChildNodes() 공개 메소드

If a node type is specified, only nodes of that type are returned.
public getChildNodes ( string $nodeTypeFilter = null, integer $limit = null, integer $offset = null ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface>
$nodeTypeFilter string If specified, only nodes with that node type are considered
$limit integer An optional limit for the number of nodes to find. Added or removed nodes can still change the number nodes!
$offset integer An optional offset for the query
리턴 array<\Neos\ContentRepository\Domain\Model\NodeInterface>

getContentObject() 공개 메소드

Returns the content object of this node (if any).
public getContentObject ( ) : object
리턴 object

getContext() 공개 메소드

Returns the context this node operates in.
public getContext ( ) : Context
리턴 Neos\ContentRepository\Domain\Service\Context

getContextPath() 공개 메소드

Example: /sites/mysitecom/homepage/about@user-admin
public getContextPath ( ) : string
리턴 string Node path with context information

getCreationDateTime() 공개 메소드

public getCreationDateTime ( ) : DateTimeInterface
리턴 DateTimeInterface

getDepth() 공개 메소드

Counting starts with 0 for "/", 1 for "/foo", 2 for "/foo/bar" etc.
public getDepth ( ) : integer
리턴 integer

getDimensions() 공개 메소드

Return the assigned content dimensions of the node.
public getDimensions ( ) : array
리턴 array

getFullLabel() 공개 메소드

Returns a full length plain text description of this node
사용 중단: since 1.2
public getFullLabel ( ) : string
리턴 string

getHiddenAfterDateTime() 공개 메소드

Returns the date and time after which this node will be automatically hidden.
public getHiddenAfterDateTime ( ) : DateTime
리턴 DateTime Date after which this node will be hidden

getHiddenBeforeDateTime() 공개 메소드

Returns the date and time before which this node will be automatically hidden.
public getHiddenBeforeDateTime ( ) : DateTime
리턴 DateTime Date before this node will be hidden

getIdentifier() 공개 메소드

Returns the identifier of this node
public getIdentifier ( ) : string
리턴 string the node's UUID (unique within the workspace)

getIndex() 공개 메소드

Returns the index of this node which determines the order among siblings with the same parent node.
public getIndex ( ) : integer
리턴 integer

getLabel() 공개 메소드

Returns the node label as generated by the configured node label generator
public getLabel ( ) : string
리턴 string

getLastModificationDateTime() 공개 메소드

public getLastModificationDateTime ( ) : DateTimeInterface
리턴 DateTimeInterface

getLastPublicationDateTime() 공개 메소드

public getLastPublicationDateTime ( ) : DateTime
리턴 DateTime

getName() 공개 메소드

Returns the name of this node
public getName ( ) : string
리턴 string

getNode() 공개 메소드

Returns a node specified by the given relative path.
public getNode ( string $path ) : Neos\ContentRepository\Domain\Model\NodeInterface
$path string Path specifying the node, relative to this node
리턴 Neos\ContentRepository\Domain\Model\NodeInterface The specified node or NULL if no such node exists

getNodeData() 공개 메소드

public getNodeData ( ) : NodeData
리턴 NodeData

getNodeType() 공개 메소드

Returns the node type of this node.
public getNodeType ( ) : NodeType
리턴 NodeType

getNumberOfChildNodes() 공개 메소드

Returns the number of child nodes a similar getChildNodes() call would return.
public getNumberOfChildNodes ( string $nodeTypeFilter = null ) : integer
$nodeTypeFilter string If specified, only nodes with that node type are considered
리턴 integer The number of child nodes

getOtherNodeVariants() 공개 메소드

getParent() 공개 메소드

Returns the parent node of this node
public getParent ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
리턴 Neos\ContentRepository\Domain\Model\NodeInterface The parent node or NULL if this is the root node

getParentPath() 공개 메소드

Returns the parent node path
public getParentPath ( ) : string
리턴 string Absolute node path of the parent node

getPath() 공개 메소드

Returns the path of this node
public getPath ( ) : string
리턴 string

getPrimaryChildNode() 공개 메소드

Which node acts as a primary child node will in the future depend on the node type. For now it is just the first child node.
public getPrimaryChildNode ( ) : Node
리턴 Node The primary child node or NULL if no such node exists

getProperties() 공개 메소드

If the node has a content object attached, the properties will be fetched there.
public getProperties ( boolean $returnNodesAsIdentifiers = false ) : array
$returnNodesAsIdentifiers boolean If enabled, references to nodes are returned as node identifiers instead of NodeData objects
리턴 array Property values, indexed by their name

getProperty() 공개 메소드

If the node has a content object attached, the property will be fetched there if it is gettable.
public getProperty ( string $propertyName, boolean $returnNodesAsIdentifiers = false ) : mixed
$propertyName string Name of the property
$returnNodesAsIdentifiers boolean If enabled, references to nodes are returned as node identifiers instead of NodeInterface instances
리턴 mixed value of the property

getPropertyNames() 공개 메소드

Returns the names of all properties of this node.
public getPropertyNames ( ) : array
리턴 array Property names

getWorkspace() 공개 메소드

Returns the workspace this node is contained in
public getWorkspace ( ) : Workspace
리턴 Workspace

hasAccessRestrictions() 공개 메소드

Tells if a node, in general, has access restrictions, independent of the current security context.
public hasAccessRestrictions ( ) : boolean
리턴 boolean

hasChildNodes() 공개 메소드

Checks if this node has any child nodes.
public hasChildNodes ( string $nodeTypeFilter = null ) : boolean
$nodeTypeFilter string If specified, only nodes with that node type are considered
리턴 boolean TRUE if this node has child nodes, otherwise FALSE

hasProperty() 공개 메소드

If the node has a content object attached, the property will be checked there.
public hasProperty ( string $propertyName ) : boolean
$propertyName string
리턴 boolean

isAccessible() 공개 메소드

Tells if this node may be accessed according to the current security context.
public isAccessible ( ) : boolean
리턴 boolean

isAutoCreated() 공개 메소드

Determine if this node is configured as auto-created childNode of the parent node. If that is the case, it should not be deleted.
public isAutoCreated ( ) : boolean
리턴 boolean TRUE if this node is auto-created by the parent.

isHidden() 공개 메소드

Returns the current state of the hidden flag
public isHidden ( ) : boolean
리턴 boolean

isHiddenInIndex() 공개 메소드

If this node should be hidden in indexes
public isHiddenInIndex ( ) : boolean
리턴 boolean

isNodeDataMatchingContext() 보호된 메소드

Needs to be adjusted for further context dimensions.
protected isNodeDataMatchingContext ( ) : boolean
리턴 boolean

isNodePathAvailable() 보호된 메소드

Checks if the given node path is available for this node, so either no node with this path exists or an existing node has the same identifier.
protected isNodePathAvailable ( string $path ) : boolean
$path string
리턴 boolean

isNodeTypeAllowedAsChildNode() 공개 메소드

Checks if the given $nodeType would be allowed as a child node of this node according to the configured constraints.
public isNodeTypeAllowedAsChildNode ( NodeType $nodeType ) : boolean
$nodeType NodeType
리턴 boolean TRUE if the passed $nodeType is allowed as child node

isRemoved() 공개 메소드

If this node is a removed node.
public isRemoved ( ) : boolean
리턴 boolean

isVisible() 공개 메소드

For this the "hidden" flag and the "hiddenBeforeDateTime" and "hiddenAfterDateTime" dates are taken into account.
public isVisible ( ) : boolean
리턴 boolean

materializeNodeData() 보호된 메소드

Materializes the original node data (of a different workspace) into the current workspace.
protected materializeNodeData ( ) : void
리턴 void

moveAfter() 공개 메소드

Moves this node after the given node
public moveAfter ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null )
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$newName string

moveBefore() 공개 메소드

Moves this node before the given node
public moveBefore ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null )
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$newName string

moveInto() 공개 메소드

Moves this node into the given node
public moveInto ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, string $newName = null )
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$newName string

moveNodeData() 보호된 메소드

Moves a NodeData object that is either a variant or child node to the given destination path.
protected moveNodeData ( NodeData $nodeData, string $originalPath, string $destinationPath, boolean $recursiveCall ) : array | null
$nodeData NodeData
$originalPath string
$destinationPath string
$recursiveCall boolean
리턴 array | null

moveNodeToDestinationPath() 보호된 메소드

Moves the given node to the destination path by modifying the underlaying NodeData object.
protected moveNodeToDestinationPath ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $destinationPath ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$destinationPath string
리턴 void

moveVariantOrChild() 보호된 메소드

Moves the given variant or child node to the destination defined by the given path which is the new path for the originally moved (parent|variant) node
protected moveVariantOrChild ( string $aggregateOriginalPath, string $aggregateDestinationPath, Neos\ContentRepository\Domain\Model\NodeInterface $nodeToMove = null ) : array
$aggregateOriginalPath string
$aggregateDestinationPath string
$nodeToMove Neos\ContentRepository\Domain\Model\NodeInterface
리턴 array NodeVariant and old and new path

remove() 공개 메소드

Removes this node and all its child nodes. This is an alias for setRemoved(TRUE)
public remove ( ) : void
리턴 void

removeProperty() 공개 메소드

If the node has a content object attached, the property will not be removed on that object if it exists.
public removeProperty ( string $propertyName ) : void
$propertyName string Name of the property
리턴 void

resolvePropertyReferences() 보호된 메소드

Maps the property value (an array of node identifiers) to the Node objects if needed.
protected resolvePropertyReferences ( array $value = [] ) : array
$value array
리턴 array

setAccessRoles() 공개 메소드

Sets the roles which are required to access this node
public setAccessRoles ( array $accessRoles ) : void
$accessRoles array
리턴 void

setContentObject() 공개 메소드

Sets a content object for this node.
public setContentObject ( object $contentObject ) : void
$contentObject object The content object
리턴 void

setHidden() 공개 메소드

Sets the "hidden" flag for this node.
public setHidden ( boolean $hidden ) : void
$hidden boolean If TRUE, this Node will be hidden
리턴 void

setHiddenAfterDateTime() 공개 메소드

Sets the date and time when this node should be automatically hidden
public setHiddenAfterDateTime ( DateTime $dateTime = null ) : void
$dateTime DateTime Date after which this node should be hidden
리턴 void

setHiddenBeforeDateTime() 공개 메소드

Sets the date and time when this node becomes potentially visible.
public setHiddenBeforeDateTime ( DateTime $dateTime = null ) : void
$dateTime DateTime Date before this node should be hidden
리턴 void

setHiddenInIndex() 공개 메소드

Sets if this node should be hidden in indexes, such as a site navigation.
public setHiddenInIndex ( boolean $hidden ) : void
$hidden boolean TRUE if it should be hidden, otherwise FALSE
리턴 void

setIndex() 공개 메소드

NOTE: This method is meant for internal use and must only be used by other nodes.
public setIndex ( integer $index ) : void
$index integer The new index
리턴 void

setLastPublicationDateTime() 공개 메소드

public setLastPublicationDateTime ( DateTimeInterface $lastModificationDateTime ) : void
$lastModificationDateTime DateTimeInterface
리턴 void

setName() 공개 메소드

Set the name of the node to $newName, keeping its position as it is.
public setName ( string $newName ) : void
$newName string
리턴 void

setNodeData() 공개 메소드

NOTE: This is internal only and should not be used outside of the ContentRepository. TODO: As it is used in the Workspace this should become part of the interface in the next major release.
public setNodeData ( NodeData $nodeData ) : void
$nodeData NodeData
리턴 void

setNodeDataIsMatchingContext() 공개 메소드

NOTE: This is internal only and should not be used outside of the ContentRepository.
public setNodeDataIsMatchingContext ( boolean $status ) : void
$status boolean
리턴 void

setNodeType() 공개 메소드

Sets the node type of this node.
public setNodeType ( NodeType $nodeType ) : void
$nodeType NodeType
리턴 void

setPath() 보호된 메소드

This method is only for internal use by the content repository or node methods. Changing the path of a node manually may lead to unexpected behavior. To achieve a correct behavior when changing the path (moving the node) in a workspace, a shadow node data that will hide the node data in the base workspace will be created. Thus queries do not need to worry about moved nodes. Through a movedTo reference the shadow node data will be removed when publishing the moved node.
protected setPath ( string $path, boolean $checkForExistence = true ) : void
$path string
$checkForExistence boolean Checks for existence at target path, internally used for recursions and shadow nodes.
리턴 void

setPathInternal() 보호된 메소드

This process is different depending on the fact if the node is an aggregate type or not.
protected setPathInternal ( string $destinationPath, boolean $recursiveCall ) : array
$destinationPath string the new node path
$recursiveCall boolean is this a recursive call
리턴 array NodeVariants and old and new paths

setPathInternalForAggregate() 보호된 메소드

Moves a node and sub nodes to the new path given with special logic for aggregate node types.
protected setPathInternalForAggregate ( string $destinationPath, boolean $recursiveCall ) : array
$destinationPath string the new node path
$recursiveCall boolean is this a recursive call
리턴 array of arrays with NodeVariant and old and new path and if this was a recursive call

setProperty() 공개 메소드

If the node has a content object attached, the property will be set there if it is settable.
public setProperty ( string $propertyName, mixed $value ) : mixed
$propertyName string Name of the property
$value mixed Value of the property
리턴 mixed

setRemoved() 공개 메소드

Enables using the remove method when only setters are available
public setRemoved ( boolean $removed ) : void
$removed boolean If TRUE, this node and it's child nodes will be removed. If it is FALSE only this node will be restored.
리턴 void

setWorkspace() 공개 메소드

This method is only for internal use by the content repository. Changing the workspace of a node manually may lead to unexpected behavior.
public setWorkspace ( Workspace $workspace ) : void
$workspace Workspace
리턴 void

similarize() 공개 메소드

For internal use in createRecursiveCopy.
public similarize ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, boolean $isCopy = false ) : void
$sourceNode Neos\ContentRepository\Domain\Model\NodeInterface
$isCopy boolean
리턴 void

unsetContentObject() 공개 메소드

Unsets the content object of this node.
public unsetContentObject ( ) : void
리턴 void

willChildNodeBeAutoCreated() 보호된 메소드

Checks if the given Node $name is configured as auto-created childNode in the NodeType configuration.
protected willChildNodeBeAutoCreated ( string $name ) : boolean
$name string The node name to check.
리턴 boolean TRUE if the given nodeName is configured as auto-created child node.

프로퍼티 상세

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

protected Context,Neos\ContentRepository\Domain\Service $context
리턴 Neos\ContentRepository\Domain\Service\Context

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

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

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

The NodeData entity this version is for.
protected NodeData,Neos\ContentRepository\Domain\Model $nodeData
리턴 NodeData

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

Defines if the NodeData represented by this Node is already in the same context or if it is currently just "shining through".
protected bool $nodeDataIsMatchingContext
리턴 boolean

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

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
리턴 Neos\ContentRepository\Domain\Repository\NodeDataRepository

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

protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory
리턴 Neos\ContentRepository\Domain\Factory\NodeFactory

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

protected NodeServiceInterface,Neos\ContentRepository\Domain\Service $nodeService
리턴 Neos\ContentRepository\Domain\Service\NodeServiceInterface

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

protected PropertyMapper,Neos\Flow\Property $propertyMapper
리턴 Neos\Flow\Property\PropertyMapper