SimPCoRe
 
Home
Installation

Working with Nodes



Advanced

Tutorial - Working with Nodes

Retrieving Nodes

If the absolute path to a Node is known, the session can be used to retrieve Nodes as well as Properties:

<?php 
$node = $session->getItem('pcr:root/users/jsmith')->toNode();

//the code above is an alternative to the following:
$node = $session->getRootNode();
$node = $node->getNode('users/jsmith');
?>
 

SimPCoRe
Home | Tutorials and Installation Instructions | Documentation | Download | Contact Us | Google Group