/** * Return the md5 Hash of the path of this object. * @param I2CE_MagicDataNode $node * @param string $childPath * @param boolean $show_top defaults to true if we are to show the parent * @return string */ public function getChildPath($node, $childPath, $show_top = true) { if ($show_top) { if ($node instanceof I2CE_MagicData) { return $node->getPath(true) . $node->pathDivider() . $childPath; } else { return $node->getPath(true) . '/' . $childPath; } } else { if ($node instanceof I2CE_MagicData) { return '/' . $childPath; } else { return $node->getPath(false) . '/' . $childPath; } } }