Свойство | 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 |
Méthode | 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. |
Méthode | 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 | ||
Résultat | void |
protected calculateParentPathHash ( ) : void | ||
Résultat | void |
protected calculatePathHash ( ) : void | ||
Résultat | 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 | |
Résultat |
public createNodeDataFromTemplate ( |
||
$nodeTemplate | ||
$nodeName | string | name of the new node. If not specified the name of the nodeTemplate will be used. |
$workspace | ||
$dimensions | array | |
Résultat | the freshly generated node |
public createShadow ( string $path ) : |
||
$path | string | The (original) path for the node data |
Résultat |
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 |
Résultat |
protected emitNodePathChanged ( |
||
$nodeData | the node data instance that has been changed | |
Résultat | void |
protected findExistingDimensionMatching ( |
||
$dimensionToBeSet | ||
Résultat |
protected getChildNodeData ( ) : array<\Neos\ContentRepository\Domain\Model\NodeData> | ||
Résultat | array<\Neos\ContentRepository\Domain\Model\NodeData> |
public getContextPath ( ) : string | ||
Résultat | string | Node path with context information |
public getDimensionValues ( ) : array | ||
Résultat | array |
public getDimensions ( ) : array |
||
Résultat | array |
public getDimensionsHash ( ) : string | ||
Résultat | string |
public getIdentifier ( ) : string | ||
Résultat | string | the node's UUID |
public getParent ( ) : |
||
Résultat | The parent node or NULL if this is the root node |
public getParentPath ( ) : string | ||
Résultat | string | Absolute node path of the parent node |
public getWorkspace ( ) : |
||
Résultat |
public hasAccessRestrictions ( ) : boolean | ||
Résultat | boolean |
public isAccessible ( ) : boolean | ||
Résultat | boolean |
public isInternal ( ) : boolean | ||
Résultat | boolean |
public matchesWorkspaceAndDimensions ( |
||
$workspace | ||
$dimensions | array | |
Résultat | boolean |
protected materializeToWorkspace ( |
||
$workspace | ||
Résultat |
protected setAsShadowOf ( |
||
$nodeData | ||
Résultat | void |
public setDimensions ( array $dimensionsToBeSet ) : void | ||
$dimensionsToBeSet | array | |
Résultat | void |
public setIdentifier ( string $identifier ) : void | ||
$identifier | string | |
Résultat | void |
public setMovedTo ( |
||
$nodeData | ||
Résultat | 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. |
Résultat | void |
public setWorkspace ( |
||
$workspace | ||
Résultat | void |
public similarize ( |
||
$sourceNode | ||
$isCopy | boolean | |
Résultat | void |
protected updateContentObject ( object $contentObject ) : void | ||
$contentObject | object | |
Résultat | void |
protected ContentObjectProxy,Neos\ContentRepository\Domain\Model $contentObjectProxy | ||
Résultat |
protected int $depth | ||
Résultat | integer |
protected NodeDimension>,Doctrine\Common\Collections\Collection<\Neos\ContentRepository\Domain\Model $dimensions | ||
Résultat | Doctrine\Common\Collections\Collection<\Neos\ContentRepository\Domain\Model\NodeDimension> |
protected string $dimensionsHash | ||
Résultat | string |
protected string $identifier | ||
Résultat | string |
protected int $index | ||
Résultat | integer |
protected DateTime $lastModificationDateTime | ||
Résultat | DateTime |
protected DateTime $lastPublicationDateTime | ||
Résultat | DateTime |
protected NodeData,Neos\ContentRepository\Domain\Model $movedTo | ||
Résultat |
protected string $name | ||
Résultat | string |
protected NodeServiceInterface,Neos\ContentRepository\Domain\Service $nodeService | ||
Résultat | Neos\ContentRepository\Domain\Service\NodeServiceInterface |
protected string $parentPath | ||
Résultat | string |
protected string $parentPathHash | ||
Résultat | string |
protected string $pathHash | ||
Résultat | string |
protected bool $removed | ||
Résultat | boolean |
protected Context,Neos\Flow\Security $securityContext | ||
Résultat |
protected int $version | ||
Résultat | integer |