Ejemplo n.º 1
0
 public function clearParentElementWithHash(IdmlElement $element, $parentHashValue)
 {
     $bCleared = false;
     $parentElement = $element->parentIdmlObject();
     while (!$bCleared && is_object($parentElement)) {
         if (IdmlPxeHelper::getPxeHash($parentElement) == $parentHashValue) {
             IdmlPxeHelper::clearPxeData($parentElement);
             $bCleared = true;
         }
         $parentElement = $parentElement->parentIdmlObject();
     }
     return $bCleared;
 }