Property | Type | Description | |
---|---|---|---|
$contentObjectProxy | Optional proxy for a content object which acts as an alternative property container | ||
$depth | integer | Level number within the global node tree | |
$dimensionValues | array | ||
$dimensions | Doctrine\Common\Collections\Collection<\Neos\ContentRepository\Domain\Model\NodeDimension> | ||
$dimensionsHash | string | MD5 hash of the content dimensions The hash is generated in buildDimensionValues(). | |
$hiddenAfterDateTime | DateTime | ||
$hiddenBeforeDateTime | DateTime | ||
$identifier | string | Identifier of this node which is unique within its workspace | |
$index | integer | Index within the nodes with the same parent | |
$lastModificationDateTime | DateTime | ||
$lastPublicationDateTime | DateTime | ||
$movedTo | If a node data is moved a "shadow" node data is inserted that references the new node data | ||
$name | string | Node name, derived from its node path | |
$nodeService | Neos\ContentRepository\Domain\Service\NodeServiceInterface | ||
$parentPath | string | Absolute path of the parent path | |
$parentPathHash | string | The hash is generated in calculateParentPathHash(). | |
$path | string | Absolute path of this node | |
$pathHash | string | The hash is generated in calculatePathHash(). | |
$removed | boolean | If this is a removed node. This flag can and is only used in workspaces which do have a base workspace. In a bottom level workspace nodes are really removed, in other workspaces, removal is realized by this flag. | |
$securityContext | |||
$version | integer | Auto-incrementing version of this node data, used for optimistic locking | |
$workspace | Workspace this node is contained in |
Method | Description | |
---|---|---|
__clone ( ) : void | Create a fresh collection instance and clone dimensions | |
__construct ( string $path, |
Constructs this node data container | |
createNodeData ( string $name, |
Creates, adds and returns a child node of this node. Also sets default properties and creates default subnodes. | |
createNodeDataFromTemplate ( |
Creates and persists a node from the given $nodeTemplate as child node | |
createShadow ( string $path ) : |
Create a shadow NodeData at the given path with the same workspace and dimensions as this | |
createSingleNodeData ( string $name, |
Creates, adds and returns a child node of this node, without setting default properties or creating subnodes. | |
getContextPath ( ) : string | Returns the absolute path of this node with additional context information (such as the workspace name). | |
getDepth ( ) : integer | Returns the level at which this node is located. | |
getDimensionValues ( ) : array | Returns the dimensions and their values. | |
getDimensions ( ) : array |
Internal use, do not retrieve collection directly | |
getDimensionsHash ( ) : string | Get a unique string for all dimension values | |
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. | |
getMovedTo ( ) : |
||
getName ( ) : string | Returns the name of this node | |
getNumberOfChildNodes ( string $nodeTypeFilter = null, |
Returns the number of child nodes a similar getChildNodes() call would return. | |
getParent ( ) : |
Returns the parent node of this node | |
getParentPath ( ) : string | Returns the parent node path | |
getPath ( ) : string | Returns the path of this node | |
getWorkspace ( ) : |
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. | |
isAccessible ( ) : boolean | Tells if this node may be accessed according to the current security context. | |
isInternal ( ) : boolean | Check if this NodeData object is a purely internal technical object (like a shadow node). | |
isRemoved ( ) : boolean | If this node is a removed node. | |
isVisible ( ) : boolean | Tells if this node is "visible". | |
matchesWorkspaceAndDimensions ( |
Checks if this instance matches the given workspace and dimensions. | |
move ( string $path, |
Move this NodeData to the given path and workspace. | |
remove ( ) : void | Removes this node and all its child nodes. This is an alias for setRemoved(TRUE) | |
setDimensions ( array $dimensionsToBeSet ) : void | Internal use, do not manipulate collection directly | |
setIdentifier ( string $identifier ) : void | Change the identifier of this node data | |
setIndex ( integer $index ) : void | Sets the index of this node | |
setMovedTo ( |
||
setPath ( string $path, boolean $recursive = true ) : void | Sets the absolute path of this node | |
setRemoved ( boolean $removed ) : void | Enables using the remove method when only setters are available | |
setWorkspace ( |
Sets the workspace of this node. | |
similarize ( |
Make the node "similar" to the given source node. That means, - all properties - index - node type - content object will be set to the same values as in the source node. |
Method | Description | |
---|---|---|
addOrUpdate ( |
Adds this node to the Node Repository or updates it if it has been added earlier | |
buildDimensionValues ( ) : void | Build a cached array of dimension values and a hash to search for it. | |
calculateParentPathHash ( ) : void | Calculates the hash corresponding to the dimensions and their values for this instance. | |
calculatePathHash ( ) : void | Calculates the hash corresponding to the path of this instance. | |
emitNodePathChanged ( |
Signals that a node has changed its path. | |
findExistingDimensionMatching ( |
Internal method used in setDimensions to reuse dimension objects with the same name/value pair. | |
getChildNodeData ( ) : array<\Neos\ContentRepository\Domain\Model\NodeData> | Returns all direct child node data of this node data without reducing the result (multiple variants can be returned) | |
getExistingShadowNodeData ( string $path, |
Find an existing shadow node data on the given path for the current node data of the node (used by setPath) | |
materializeToWorkspace ( |
Materializes the original node data (of a different workspace) into the current workspace, excluding content dimensions | |
setAsShadowOf ( |
This becomes a shdow of the given NodeData object. | |
updateContentObject ( object $contentObject ) : void | Updates the attached content object |
public __construct ( string $path, |
||
$path | string | Absolute path of this node |
$workspace | The workspace this node will be contained in | |
$identifier | string | The node identifier (not the persistence object identifier!). Specifying this only makes sense while creating corresponding nodes |
$dimensions | array | An array of dimension name to dimension values |
protected addOrUpdate ( |
||
$nodeData | Other NodeData object to addOrUpdate |
protected buildDimensionValues ( ) : void | ||
return | void |
protected calculateParentPathHash ( ) : void | ||
return | void |
protected calculatePathHash ( ) : void | ||
return | void |
public createNodeData ( string $name, |
||
$name | string | Name of the new node |
$nodeType | Node type of the new node (optional) | |
$identifier | string | The identifier of the node, unique within the workspace, optional(!) |
$workspace | ||
$dimensions | array | |
return |
public createNodeDataFromTemplate ( |
||
$nodeTemplate | ||
$nodeName | string | name of the new node. If not specified the name of the nodeTemplate will be used. |
$workspace | ||
$dimensions | array | |
return | the freshly generated node |
public createShadow ( string $path ) : |
||
$path | string | The (original) path for the node data |
return |
public createSingleNodeData ( string $name, |
||
$name | string | Name of the new node |
$nodeType | Node type of the new node (optional) | |
$identifier | string | The identifier of the node, unique within the workspace, optional(!) |
$workspace | ||
$dimensions | array | An array of dimension name to dimension values |
return |
protected emitNodePathChanged ( |
||
$nodeData | the node data instance that has been changed | |
return | void |
protected findExistingDimensionMatching ( |
||
$dimensionToBeSet | ||
return |
protected getChildNodeData ( ) : array<\Neos\ContentRepository\Domain\Model\NodeData> | ||
return | array<\Neos\ContentRepository\Domain\Model\NodeData> |
public getContextPath ( ) : string | ||
return | string | Node path with context information |
public getDimensionValues ( ) : array | ||
return | array |
public getDimensions ( ) : array |
||
return | array |
public getDimensionsHash ( ) : string | ||
return | string |
public getIdentifier ( ) : string | ||
return | string | the node's UUID |
public getParent ( ) : |
||
return | The parent node or NULL if this is the root node |
public getParentPath ( ) : string | ||
return | string | Absolute node path of the parent node |
public getWorkspace ( ) : |
||
return |
public hasAccessRestrictions ( ) : boolean | ||
return | boolean |
public isAccessible ( ) : boolean | ||
return | boolean |
public isInternal ( ) : boolean | ||
return | boolean |
public matchesWorkspaceAndDimensions ( |
||
$workspace | ||
$dimensions | array | |
return | boolean |
protected materializeToWorkspace ( |
||
$workspace | ||
return |
protected setAsShadowOf ( |
||
$nodeData | ||
return | void |
public setDimensions ( array $dimensionsToBeSet ) : void | ||
$dimensionsToBeSet | array | |
return | void |
public setIdentifier ( string $identifier ) : void | ||
$identifier | string | |
return | void |
public setMovedTo ( |
||
$nodeData | ||
return | void |
public setRemoved ( boolean $removed ) : void | ||
$removed | boolean | If TRUE, this node and it's child nodes will be removed. This can handle FALSE as well. |
return | void |
public setWorkspace ( |
||
$workspace | ||
return | void |
public similarize ( |
||
$sourceNode | ||
$isCopy | boolean | |
return | void |
protected updateContentObject ( object $contentObject ) : void | ||
$contentObject | object | |
return | void |
protected ContentObjectProxy,Neos\ContentRepository\Domain\Model $contentObjectProxy | ||
return |
protected int $depth | ||
return | integer |
protected NodeDimension>,Doctrine\Common\Collections\Collection<\Neos\ContentRepository\Domain\Model $dimensions | ||
return | Doctrine\Common\Collections\Collection<\Neos\ContentRepository\Domain\Model\NodeDimension> |
protected string $dimensionsHash | ||
return | string |
protected string $identifier | ||
return | string |
protected int $index | ||
return | integer |
protected DateTime $lastModificationDateTime | ||
return | DateTime |
protected DateTime $lastPublicationDateTime | ||
return | DateTime |
protected NodeData,Neos\ContentRepository\Domain\Model $movedTo | ||
return |
protected NodeServiceInterface,Neos\ContentRepository\Domain\Service $nodeService | ||
return | Neos\ContentRepository\Domain\Service\NodeServiceInterface |
protected string $parentPath | ||
return | string |
protected string $parentPathHash | ||
return | string |
protected string $pathHash | ||
return | string |
protected bool $removed | ||
return | boolean |
protected Context,Neos\Flow\Security $securityContext | ||
return |
protected int $version | ||
return | integer |