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