To prevent unnecessary work to be done a cache is filled to only fetch
nodes once. To reset a node with the data from the backend, use
Node::refresh()
Uses the factory to create a Node object.
public getNodeByPath ( string $absPath, string $class = 'Node', object $object = null ) : PHPCR\NodeInterface | ||
$absPath | string | The absolute path of the node to fetch. |
$class | string | The class of node to get. TODO: Is it sane to fetch data separately for Version and normal Node? |
$object | object | A (prefetched) object (de-serialized json) from the backend only to be used if we get child nodes in one backend call |
return | PHPCR\NodeInterface |