/**
  * Return true if other object is also a group and has same object name
  *  ( value in not taken in account, only object name !! )
  * @param AddressGroup $otherObject
  * @return bool
  */
 public function sameValue(AddressGroup $otherObject)
 {
     if ($this->isTmpAddr() && !$otherObject->isTmpAddr()) {
         return false;
     }
     if ($otherObject->isTmpAddr() && !$this->isTmpAddr()) {
         return false;
     }
     if ($otherObject->count() != $this->count()) {
         return false;
     }
     $diff = $this->getValueDiff($otherObject);
     if (count($diff['plus']) + count($diff['minus']) != 0) {
         return false;
     }
     return true;
 }
 /**
  * @param Address|AddressGroup $s
  * @param bool $rewritexml
  * @param bool $forceAny
  * @return bool
  */
 public function API_remove($s, $rewritexml = true, $forceAny = false)
 {
     $xpath = null;
     if (!$s->isTmpAddr()) {
         $xpath = $s->getXPath();
     }
     $ret = $this->remove($s, $rewritexml, $forceAny);
     if ($ret && !$s->isTmpAddr()) {
         $con = findConnectorOrDie($this);
         $con->sendDeleteRequest($xpath);
     }
     return $ret;
 }