SimPCoRe
 
Home
Installation

Working with Nodes



Advanced

Tutorial - Working with Nodes

Getting the Root Node

In order to access the root node a session needs to be started.

All content added to the PCR will be children Nodes of the Root Node.

The following code assigns the Root Node to the $node variable:

<?php 
$node = $session->getRootNode();

echo $node->getName(); //outputs pcr:root
?>
 

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