SimPCoRe
 
Home
Installation

Working with Nodes



Advanced

Tutorial - Working with Nodes

Moving Nodes

When moving Nodes:

  1. The source path must exist
  2. The destination path must be an absolute path to the parent node of the new location
<?php 
$session->move("pcr:root/users/regular/jsmith", 
               "pcr:root/users/admin");

$node=$session->getItem("pcr:root/users/admin/jsmith")->toNode();

echo $node->getPath(); //outputs pcr:root/users/admin/jsmith
?>
 

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