setPath() public method

Set or update the path, depth, name and parent reference
public setPath ( string $path, boolean $move = false )
$path string the new path this item lives at
$move boolean whether this item is being moved in session context and should store the current path until the next save operation.
Example #1
0
 /**
  * In addition to calling parent method, tell all properties
  */
 public function setPath($path, $move = false)
 {
     parent::setPath($path, $move);
     foreach ($this->properties as $property) {
         $property->setPath($path . '/' . $property->getName(), $move);
     }
 }