If NULL or no argument is given then movedTo is nulled and removed is set to FALSE effectively turning this into a normal NodeData.
protected setAsShadowOf ( |
||
$nodeData | ||
return | void |
/** * Create a shadow NodeData at the given path with the same workspace and dimensions as this * * Note: The constructor will already add the new object to the repository * Internal method, do not use outside of the content repository. * * @param string $path The (original) path for the node data * @return NodeData */ public function createShadow($path) { $shadowNode = new NodeData($path, $this->workspace, $this->identifier, $this->dimensionValues); $shadowNode->similarize($this); $shadowNode->setAsShadowOf($this); return $shadowNode; }