public getNode ( string $relPath, string $context, string $class = 'Node' ) : PHPCR\NodeInterface | ||
$relPath | string | relative path |
$context | string | context path |
$class | string | optional class name for the factory |
Résultat | PHPCR\NodeInterface | The specified Node. if not available, ItemNotFoundException is thrown |
public function getNode($relPath, $context, $class = 'Node')
{
$path = PathHelper::absolutizePath($relPath, $context);
return $this->getNodeByPath($path, $class);
}
public function current() { $path = $this->key(); if (!isset($path)) { return null; } return $this->objectmanager->getNode($path); }